- Defaults for the following Bootstrap 5 Sass variables were changed to
$accordion-icon-active-color. To restore the old behavior, do
bs_add_variables(theme, "accordion-button-active-bg" = "tint-color($component-active-bg, 90%)", "accordion-button-active-color" = "shade-color($primary, 10%)", "accordion-icon-active-color" = "$accordion-button-active-color", .where = "declarations"). (#475)
CRAN release: 2022-12-16
CRAN release: 2022-11-02
CRAN release: 2022-07-16
bs_theme()now defaults to
version = 5(i.e., Bootstrap 5). If this change happens to break an existing app, consider specifying
bs_theme(version = 4)to revert the change in the Bootstrap version. (#374)
- The default coloring on some Bootswatch 4+ theme’s
.navbar-inverseclass has changed slightly to better match their Bootswatch 3 coloring. Also, since this coloring is now based solely on
$navbar-*variables, Bootswatch themes now work better in combination with custom
bs_theme("navbar-bg" = ...)can be used to provide the background color, and foreground colors will automatically contrast appropriately). (#392)
- Closed #393: Bootstrap 5’s
$form-check-label-*variables now work as expected with
- Closed #382: Various fixes for using
bs_theme(version = 5, bootswatch = "sketchy"). (#385)
- Closed #377: make sure
shiny::tabsetPanel(type = "hidden")(i.e.,
bslib::navs_hidden()) stays hidden when used with
- Closed #424: fixed an issue with
nav_menu()appearing first in a
navs_*()container with Bootstrap 4+.
- Closed #431: Bootstrap 5 navbars no longer have an unwanted “Toggle Navigation” label when collapsed. (#432)
- Closed #400:
nav_menu(align="right")now works with Bootstrap 5. (#401)
- Closed #390: using
bs_theme(bootswatch = "paper", version = 5)or
bs_theme(bootswatch = "readable", version = 5)no longer errors. (#391)
CRAN release: 2021-10-06
- Upgraded Bootstrap 5 (i.e.,
bs_theme(version = 5)) from 5.0.2 to 5.1.0 (#365)
CRAN release: 2021-09-02
- Closed #82: Added support for Bootstrap 5 (via
bs_theme(version = 5)). Bootstrap 4 remains the default in this release, but the next release, the default will likely change to Bootstrap 5.
CRAN release: 2021-05-12
- Closed #251: New
navbar-dark-bg) for more easily customizing the navbar’s background (and foreground) color (#253, #271).
- Closed #281: New
font_scale) for easier scaling of the base font size (#288).
- Closed #256 and #282: Font file importers (
font_face()) are now re-exported from the sass package. As a result, they may now be used with any Sass variable (e.g.,
bs_theme("input-font-family" = font_google("Pacifico"))) as well as inside Rmd yaml without
input-font-family: google: Pacifico– see #256 for more details). A new
font_collection()function was also added for a more convenient way to specify font fallbacks (#291).
- Closed #255:
bs_themer()now emits sensible
yamlfront matter when used within an Rmd document (#288).
- Closed #227:
bs_themer()now overlays a spinner during Sass compilation (#243).
- Closed #278: bslib now includes
rmarkdown::html_documenttemplates demonstrating example usage with bslib and thematic (#288).
- Closed #231: Upgraded from Bootstrap 4.5.3 to 4.6.0 (#254).
- Closed #237:
<blockquote>tags now have border-left/padding styles with
version = 4(to mirror the
version = 3behavior) (#239).
- Closed #279: Warnings about low color contrasts are now suppressed by default, unless
shiny::devmode()is enabled. To enable/disable these warnings, set the new
options(bslib.color_contrast_warnings = )to
bs_theme_dependencies()now includes Sass source maps when
shiny::devmode()is enabled (#312).
- Added new
sass::sass_layer()’s new ability to place
defaults. As a result, variable definitions may now use functions defined with
CRAN release: 2021-01-25
- Initial release of the package, see https://rstudio.github.io/bslib/