rstudio / bslib

Tools for theming Shiny and R Markdown via Bootstrap 3, 4, or 5.
https://rstudio.github.io/bslib/
Other
475 stars 57 forks source link

Bootstrap navbar variables not working in bslib 0.6.1 but working in 0.5 #978

Open zross opened 8 months ago

zross commented 8 months ago

@gadenbuie and @cpsievert asked me to report this bug so I'm not following the guidelines :)

I'm finding that the bootstrap 5 navbar variables are not working for me using bslib version 0.6.1.

Note that the bootstrap variable body-bg works in both versions.

# This shows a red nav bar in bslib 0.5 but not in 0.6.1
library(shiny)
library(bslib)

ui <- page_navbar(
  theme = bs_theme(version = 5, "navbar-bg" = "red"),
  title = "My App",
  nav_panel(title = "One", p("First page content.")),
)

server <- function(...) { }

shinyApp(ui, server)