2

I'm building an RShiny-App and now I'm formatting some parts, so they are more readable. I use pickerInput() and want to make the headingsDE and AT bold. I'm using the following R-code:

 pickerInput(inputId = "ma3DVariables", label = "Select 2 Interesting Variables", 
             choices = list('DE' = c("Munich", "Berin", "Hamburg"),
                            'AT' = c("Vienna", "Graz", "Salzburg")), 
             multiple = TRUE)

This gives me at the moment the following:

enter image description here

How can I make the headings bold? Any suggestions?

SFR
  • 106
  • 11
MikiK
  • 398
  • 6
  • 19

1 Answers1

3

You can add custom style to a Shiny app:

tags$head(tags$style(HTML(".dropdown-header .text { font-weight: bold }")))

enter image description here

Bas
  • 4,628
  • 1
  • 14
  • 16
  • Oh wow, great thank you that's working. Would it be also possible to get a bigger font size for the headers? – MikiK Nov 27 '20 at 12:18
  • Yes, you can add stuff like `font-size: large;` to the CSS, right after the `font-weight: bold`. I think you need to separate the two with `;`. – Bas Nov 27 '20 at 14:28