I have an app, similar to below, which I'd like to customize the color of the selected row rendered via DT. My app code looks like below
library(shiny)
library(DT)
bkg_shade <-"#2c3e50"
ui <- fluidPage(
tags$style(HTML(paste0("table.dataTable tr.selected td, table.dataTable td.selected{background-color: ",
bkg_shade," !important;}"))),
fluidRow(dataTableOutput("tbl"))
)
server <- function(input, output){
output$tbl <- renderDataTable({
datatable(mtcars)
})
}
app <- shinyApp(ui = ui, server= server)
runApp(app)
It looks as expected on chrome, the selected row color is what I specified.
However, the selected row color is still the default color in IE.
Have anyone has experienced similar issue before? and how can I fix this so that the selected row color is also customized in IE?