Skip to content

Commit

Permalink
Follow up to #308: get theme: bootstrap working again
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Apr 26, 2021
1 parent c032871 commit e057adc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions R/flex_dashboard.R
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,9 @@ html_dependencies_flexdb <- function(theme) {
version <- packageVersion("flexdashboard")

if (is.character(theme)) {
if (identical(theme, "default")) {
theme <- "bootstrap"
}
dep <- htmlDependency(
name = name, version = version,
src = "www/flex_dashboard",
Expand Down
4 changes: 3 additions & 1 deletion R/valuebox.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ valueBoxCoreDependencies <- function(icon) {

valueBoxStaticAccentCSS <- function(theme) {
if (!is.character(theme)) return(NULL)

if (identical(theme, "default")) {
theme <- "bootstrap"
}
htmltools::htmlDependency(
name = "value-box-accent-static",
version = packageVersion("flexdashboard"),
Expand Down

0 comments on commit e057adc

Please sign in to comment.