diff --git a/R/navbar.R b/R/navbar.R index 9b4300ec0..3a48307df 100644 --- a/R/navbar.R +++ b/R/navbar.R @@ -24,7 +24,7 @@ navbar_style <- function(navbar = list(), theme = "_default", bs_version = 3) { bg <- navbar$bg %||% bootswatch_bg[[theme]] %||% "light" type <- navbar$type %||% if (bg == "light") "light" else "dark" - list(bg = bg, is_dark = type == "dark") + list(bg = bg, type = type) } } diff --git a/inst/BS5/templates/navbar.html b/inst/BS5/templates/navbar.html index 82da65810..3b4c9d09d 100644 --- a/inst/BS5/templates/navbar.html +++ b/inst/BS5/templates/navbar.html @@ -1,5 +1,5 @@ {{#navbar}} -