Skip to content

dashboardSidebar text colors change when using  #19

@sjhues

Description

@sjhues

When I use the dashboardSidebar arguments
minified = TRUE
expandOnHover = TRUE

dashboardSidebar(
    ,minified = TRUE
    ,expandOnHover = TRUE
, ...

The color of the menuitems and submenuItems change from the theme I created for the sidebar when I expand on hover.
The white text I expect fades to this:
image

When the sidebar is expanded without the use of expand on hover, the colors are as expected:
image

I am using the following theme setup in my UI above all of the code.

my_theme <- create_theme(
  bs4dash_color(
    blue = "#00617F"  , #bdarkblue
    lightblue = "#00BCFF" , #blightblue
    navy = "#10384F", #bmidblue
    cyan = "#0091DF", #bmedblue
    teal = "#ad91b2" , #bmidpurp
    olive = "#2B6636" , #bmidgreen
    green = "#004422", #bdarkgreen
    lime = "#89D329", #blightgreen
    orange = "#D30f4B" , #bcranberry
    yellow = "#FFCC00", #byellow
    fuchsia = "#FF3162", #bppink
    purple = "#443247", #bdarkpurple
    maroon = "#624963", #blightpurp
    red = "#CC0000"
  )
  ,bs4dash_vars(
    navbar_light_color = "#CC0000", #bmidblue,
    navbar_light_bg = "#10384F" , #blightblue
    navbar_light_active_color = "#D30f4B" , #blightblue
    navbar_light_hover_color = "#D30f4B"  #bcranberry
    ,body_bg = "#CC0000"
  
  )
  
  ,bs4dash_status(primary = "#00617F"
                  ,secondary = "#10384F"
                  , success = "#D30f4B"  #bcranberry
                  # , warning
                  # , danger
                  # , white
                  , light = "#FFF" #bmidblue,
                  #, dark = "#443247", #bdarkpurple
                  # , transparent
  )
  ,bs4dash_sidebar_light(
    bg ="#10384F",
    hover_bg = "#00BCFF",
    color = "#FFF",
    hover_color = "#FFF",
    active_color = "#0091DF",
    submenu_bg = "#10384F",
    submenu_color = "#FFF",
    submenu_hover_color = "#FFF",
    submenu_hover_bg = "#00BCFF",
    submenu_active_color = "#0091DF",
    submenu_active_bg = "#10384F",
    header_color = NULL
  )
  ,bs4dash_sidebar_dark(
    bg ="#10384F",
    hover_bg = "#00BCFF",
    color = "#FFF",
    hover_color = "#FFF",
    active_color = "#0091DF",
    submenu_bg = "#10384F",
    submenu_color = "#FFF",
    submenu_hover_color = "#FFF",
    submenu_hover_bg = "#00BCFF",
    submenu_active_color = "#0091DF",
    submenu_active_bg = "#10384F",
    header_color = NULL
  )
  ,bs4dash_yiq(contrasted_threshold = 10, text_dark = "#FFF", text_light = "#272c30")
)

Am I missing something? Again, if I set
minified = FALSE
expandOnHover = FALSE
I get the theme I expect. Any help would be greatly appreciated...Great package!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions