Skip to content

Commit

Permalink
fix(themer-demo): Fix is_legacy_version (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie authored Nov 22, 2023
1 parent 6bfcef8 commit 56e8bea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

* Fixed the CSS for the `bslib-page-dashboard` class in the Shiny preset to correctly support `page_sidebar(class = "bslib-page-dashboard")` and `page_navbar(nav_panel(class = "bslib-page-dashboard"))`. (#917)

* Fixed a minor bug to allow the themer demo to be run directly, outside of `bs_theme_preview()`. (#918)

# bslib 0.6.0

## Breaking changes
Expand Down
2 changes: 1 addition & 1 deletion inst/themer-demo/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (is_installed("thematic")) {
# Source in ggplot2 examples
source("global.R")

theme <- bs_global_get()
theme <- bs_global_get() %||% bs_theme()
if ("3" %in% theme_version(theme)) {
warning("This example app requires Bootstrap 4 or higher", call. = FALSE)
}
Expand Down

0 comments on commit 56e8bea

Please sign in to comment.