rstudio / shinydashboard

Shiny Dashboarding framework

Home Page:https://rstudio.github.io/shinydashboard/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change dashboard Header colors

HeleneRoyo opened this issue · comments

I want to change my dashboard header colors without using themes (because I am using a banner, a customized style for my shiny dashboard etc.). Currently my dashboard header is a thin empty one, still useful to hide or show the sidebar menu.

Example of code and header that needs customized colors:

dashboardHeader(
      titleWidth = 260, 
      tags$li(class = "dropdown",
              tags$style(".main-header {max-height: 20px}"),
              tags$style(".main-header .logo {height: 20px;}"),
              tags$style(".sidebar-toggle {height: 20px; padding-top: 1px !important;}"),
              tags$style(".navbar {min-height:20px !important}")
      )
      )

image

Would it be useful to have a color and background.color argument in the dashboardHeader function?

Is this what you want?

tags$style(".skin-blue .main-header .navbar {background-color: green;}")

Check library(fresh).