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

Shiny Dashboard Box Title's Colour Set With box_bg #14

Open
MShields1986 opened this issue Nov 27, 2022 · 0 comments
Open

Shiny Dashboard Box Title's Colour Set With box_bg #14

MShields1986 opened this issue Nov 27, 2022 · 0 comments

Comments

@MShields1986
Copy link

When using adminlte_global's box_bg arguement it sets the colour for every boxes title test to be the same as the background, rendering them undreadable.

Theme that will hide titles

my_theme <- create_theme(
    adminlte_color(
        light_blue = "#1e232b"
    ),
    adminlte_sidebar(
        width = "400px",
        dark_bg = "#1e232b",
        dark_hover_bg = "#1e232b",
        dark_color = "#1e232b"
    ),
    adminlte_global(
        content_bg = "#1e232b",
        box_bg = "#363e4d",
        info_box_bg = "#9ebeff"
    )
)

Theme that will not hide titles but retains the default box background colour

my_theme <- create_theme(
    adminlte_color(
        light_blue = "#1e232b"
    ),
    adminlte_sidebar(
        width = "400px",
        dark_bg = "#1e232b",
        dark_hover_bg = "#1e232b",
        dark_color = "#1e232b"
    ),
    adminlte_global(
        content_bg = "#1e232b",
        #box_bg = "#363e4d",
        info_box_bg = "#9ebeff"
    )
)

Example use

    dashboardBody(use_theme(my_theme),
        fluidRow(
            box(
                title = "I Change Colour", status = "primary", solidHeader = FALSE,
                collapsible = TRUE, width=12,
                valueBoxOutput("some_value_box", width=6)
            )
        )
    )
@MShields1986 MShields1986 changed the title Shiny Dashboard Box Titles Colour Set With box_bg Shiny Dashboard Box Title's Colour Set With box_bg Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant