I need to change the background color with which the pickerInput highlights the on hover option. How can I achieve it?. Below is a minimal example, I have tried changing the style but I can't get it
library(shiny)
shinyApp(
ui = basicPage(
pickerInput("state", "State", split(state.name, state.division),
choicesOpt = list(style = rep(("hover {background: blue; color: black; font-weight: bold}"),100)))
),
server = function(input, output) {}
)
As you can see in the example, the background of the on hover option is light gray and not blue.
Add the following code to your Shiny app UI to change the color of the hovering option in ShinyInput: