Skip to content

Commit

Permalink
Further reduce chance of breaking changes; provide a singular entry p…
Browse files Browse the repository at this point in the history
…oint for 'global' bslib rules
  • Loading branch information
cpsievert committed Jul 10, 2023
1 parent 062c492 commit 9097581
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
8 changes: 2 additions & 6 deletions R/bs-theme.R
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,8 @@ bootstrap_bundle <- function(version) {
# 2. Allow Bootstrap 3 & 4 to use color-contrast() in variable definitions
# 3. Allow Bootstrap 3 & 4 to use bs_get_contrast()
sass_layer(
functions = sass_file(path_inst("bslib-scss", "color-contrast.scss")),
rules = list(
sass_file(path_inst("bslib-scss", "tab-fill.scss")),
# TODO: could component-ize this?
sass_file(path_inst("bslib-scss", "spacer.scss"))
)
functions = sass_file(path_inst("sass-utils/color-contrast.scss")),
rules = sass_file(path_inst("bslib-scss", "bslib.scss"))
)
)
}
Expand Down
2 changes: 2 additions & 0 deletions inst/bslib-scss/bslib.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import "spacer";
@import "tab-fill";
File renamed without changes.

0 comments on commit 9097581

Please sign in to comment.