I am looking to change the colour of the actual individual check boxes from the standard shiny blue in checkboxGroupInput.
I have found the following code as an answer to this question Coloring the checkboxGroupInput choices which will change the colour of the font but not the checkbox themselves.
library("shiny")
ui <- fluidPage(
checkboxGroupInput(
inputId = "my_cbgi",
label = "Choose Something",
choiceNames = list(
tags$span("A", style = "color: red;"),
tags$span("B", style = "color: red;"),
tags$span("C", style = "color: blue;"),
tags$span("D", style = "font-weight: bold;")
),
choiceValues = c("A", "B", "C", "D")
)
)
server <- function(input, output) {
}
shinyApp(ui = ui, server = server)
Is there a way to modify this to change the colour of individual checkboxes? Thanks in advance for your help.
