R shinyDashboard customize box status color

后端 未结 3 1945
野性不改
野性不改 2020-12-24 15:11

I would like to customize the color of the box status of my shiny app. I find a css way to change the box background color of these box but not to customize the status colo

3条回答
  •  被撕碎了的回忆
    2020-12-24 15:41

    As I was trying to change the status color for hours now, I think I'd share my solution here, if anyone ever runs into the same problem again.

    I was trying to edit the CSS code in a dedicated CSS file but that was not working. But when I added the CSS code directly into the shiny app file via tags$style (like the solutions provided by Charlotte Sirot and Michelle Ross) it worked.

    Could have something to do with prioritizing the source of CSS style code, and directly adding the code with tags$style overrides all other sources.

提交回复
热议问题