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

dashboardSidebar text colors change when using #19

Open
sjhues opened this issue Sep 20, 2024 · 0 comments
Open

dashboardSidebar text colors change when using #19

sjhues opened this issue Sep 20, 2024 · 0 comments

Comments

@sjhues
Copy link

sjhues commented Sep 20, 2024

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!

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