bs_theme()now defaults toversion = 5(i.e., Bootstrap 5). If this change happens to break an existing app, consider specifyingbs_theme(version = 4)to revert the change in the Bootstrap version. (#374)- The default coloring on some Bootswatch 4+ theme's
.navbar-default/.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$navbar-*values (e.g.,bs_theme("navbar-bg" = ...)can be used to provide the background color, and foreground colors will automatically contrast appropriately). (#392)
- Upgraded Bootstrap 5 (i.e.,
bs_theme(version = 5)) from 5.1.0 to 5.1.3 (#378) - Closed #369:
bs_dependency_defer()now memoisesfunc(by default), reducing the time required to render multiple instances of the same dynamically themable widget. (#405)
- Closed #393: Bootstrap 5's
$form-check-label-*variables now work as expected withshiny::radioButtons(),shiny::checkboxInput(), andshiny::checkboxGroupInput(). (#395) - Closed #382: Various fixes for using
shiny::checkboxInput(),shiny::checkboxGroupInput(), andshiny::radioButton()withbs_theme(version = 5, bootswatch = "sketchy"). (#385) - Closed #377: make sure
shiny::tabsetPanel(type = "hidden")(i.e.,bslib::navs_hidden()) stays hidden when used withbs_theme(). (#379) - Closed #400:
nav_menu(align="right")now works with Bootstrap 5. (#401) - Closed #390: using
bs_theme(bootswatch = "paper", version = 5)orbs_theme(bootswatch = "readable", version = 5)no longer errors. (#391)
- Upgraded Bootstrap 5 (i.e.,
bs_theme(version = 5)) from 5.0.2 to 5.1.0 (#365)
- Closed rstudio/shiny#3519:
nav_menu()(i.e.,shiny::navbarMenu()) wasn't producing an.activeclass on it's.dropdowncontainer properly. (#372)
- Closed rstudio/rmarkdown#2154:
{magrittr}'s pipe operator (%>%) is no longer re-exported by{bslib}. Eitherlibrary(magrittr)to make%>%available and/or use use R 4.1's pipe operator (|>).
- 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.
- Closed #6: rmarkdown's .tabset-fade class now works with Bootstrap 4+ since legacy use of .nav .fade is now officially supported in Bootstrap 4+. (#325)
Small patch release to fix failing test on Solaris.
- Closed #251: New
bs_theme()options (navbar-bg,navbar-light-bg, andnavbar-dark-bg) for more easily customizing the navbar's background (and foreground) color (#253, #271). - Closed #281: New
bs_theme()argument (font_scale) for easier scaling of the base font size (#288). - Closed #256 and #282: Font file importers (
font_google(),font_link(), andfont_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!expr(e.g.,input-font-family: google: Pacifico-- see #256 for more details). A newfont_collection()function was also added for a more convenient way to specify font fallbacks (#291). - Closed #255:
bs_themer()now emits sensibleyamlfront matter when used within an Rmd document (#288). - Closed #227:
bs_themer()now overlays a spinner during Sass compilation (#243). - Closed #278:
{bslib}now includesrmarkdown::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 withversion = 4(to mirror theversion = 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 newoptions(bslib.color_contrast_warnings = )toTRUE/FALSE(#287). bs_theme_dependencies()now includes Sass source maps whenshiny::devmode()is enabled (#312).- Added new
bs_add_functions()/bs_add_mixins()and deprecatedbs_add_declarations()to reflectsass::sass_layer()'s new ability to placefunctionsbefore variabledefaults. As a result, variable definitions may now use functions defined withbs_add_functions(). (#311)
- Closed #236, #230, #242, #187, #215, #250: Addressed various cosmetic issues with CSS (#249).
- Closed #289: collapsed navbar toggle now correctly floats to the right (#290).
- Closed rstudio/flexdashboard#316: fixed an issue with navbar nav spacing/alignment (#286).
- Initial release of the package, see https://rstudio.github.io/bslib/