selectInput Window gets dark when within a "page_sidebar"+"nav_panel"

Why gets the selectInput Window dark when within a "page_sidebar"+"nav_panel"?
I can prevent this with an extra line theme = bs_theme(bootswatch = "darkly"), but is that the right way to do it?

# selectInput Window gets dark when within a "page_sidebar"+"nav_panel" 

library(bslib)  # version 0.6.1

ui <- page_navbar(
  title = "My App",
  theme = bs_theme(bootswatch = "darkly", version = 5),
    title = "Page 1",
     # theme = bs_theme(bootswatch = "darkly"),  # <---- prevents the selectInput Window to get dark
      title = "My dashboard",
      sidebar = sidebar(
                    label = "Select data",
                    choices = c("a", "b", "c", "d"))
      "Main content area"
    title = "Page 2",
    "Page 2 content area"
shinyApp(ui, function(input, output) {})

If it works, it works. For what it's worth, you can add the argument selectize = FALSE to selectInput to get a white background in the control.

Thanks for the reply :slight_smile: Then I will go for the extra line ´theme = bs_theme(bootswatch = "darkly")´, to keep the functionality from selectize.js (´selectize = TRUE´).