Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navbar stays keeps white background, even when dark mode is selected/toggled. #293

Closed
JJohnson-DA opened this issue Jun 20, 2022 · 1 comment
Labels
fixed-in-dev Fixed in development version

Comments

@JJohnson-DA
Copy link

JJohnson-DA commented Jun 20, 2022

I have started transitioning to bs4dash from shinydashboard (because it rocks) but am having quiet the time with this issue. No matter what I have tried I cannot get the main navbar background color to toggle between light and dark mode. It either stays white on both, or stays whatever other color I set it as. Even on a minimal example from the package docs I am having this issue.

Any advice or help is much appreciated! Package is most recent version 2.1.0, downloaded 2022-06-19.

library(bs4Dash)
ui <- dashboardPage(
    dashboardHeader(title = "Basic dashboard"),
    dashboardSidebar(),
    dashboardBody(
        # Boxes need to be put in a row (or column)
        fluidRow(
            box(plotOutput("plot1", height = 250)),
            box(
                title = "Controls",
                sliderInput("slider", "Number of observations:", 1, 100, 50)
            )
        )
    )
)
server <- function(input, output) {
    set.seed(122)
    histdata <- rnorm(500)
    output$plot1 <- renderPlot({
        data <- histdata[seq_len(input$slider)]
        hist(data)
    })
}
shinyApp(ui, server)

image
image

@DivadNojnarg DivadNojnarg added the bug Something isn't working label Jun 22, 2022
@DivadNojnarg
Copy link
Member

Related to #281 (comment)

@DivadNojnarg DivadNojnarg added fixed-in-dev Fixed in development version and removed bug Something isn't working labels Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed-in-dev Fixed in development version
Projects
None yet
Development

No branches or pull requests

2 participants