I'd like to style particular radio buttons while using bslib
themes, but they are unaffected by my rules. Why is this?
For example,
library(shiny)
library(bslib)
library(shinyWidgets)
theme = bs_theme(version = 5, bootswatch = "minty")
ui = page_fluid(theme = theme,
tags$head(
tags$style(".btn-default background-color: #7a6bd1;"),
tags$style(".btn-default.active background-color: #eb4034;")
),
radioGroupButtons("radio",
label = NULL,
choices = c("Left", "Right"),
selected = "Left")
)
server = function(input, output)
{
}
shinyApp(ui, server)
Targeting buttons based on specific divs would be best, something like,
tags$style("#radio .btn background-color: #eb4034")
but this doesn't work either.