Skip to content

filterInputStyle option in reactiveTheme() does not work #186

@jnhyeon

Description

@jnhyeon

Hello.
Thanks for making such a nice package.
I'm enjoying and using the packages you've created.

I found one problem while using it.
Among the many options of reactiveTheme(), the filterInputStyle option didn't work.

Below is the example code.

thank you.

--------------- example code -------------
library(shiny)
library(dplyr)
library(reactable)

data(iris)

dark_theme <- reactableTheme(
color = 'white',
backgroundColor = 'rgb(52, 58, 64)',
borderColor = 'rgb(69, 77, 85)',
stripedColor = 'rgb(69, 77, 85)',
highlightColor = 'rgb(69, 77, 85)',
inputStyle = list(backgroundColor = 'rgb(52, 58, 64)'),
filterInputStyle = list(color = 'white', # <- not working
backgroundColor = 'rgb(69, 77, 85)'),
selectStyle = list(backgroundColor = 'rgb(52, 58, 64)'),
pageButtonHoverStyle = list(backgroundColor = 'rgb(69, 77, 85)'),
pageButtonActiveStyle = list(backgroundColor = 'rgb(69, 77, 85)')
)

ui <- fluidPage(
checkboxInput('dark_mode', 'Dark mode', value = FALSE),
reactableOutput('table')
)

server <- function(input, output, session) {
output$table <- renderReactable({
if (input$dark_mode) {
iris %>%
reactable(filterable = TRUE,
theme = dark_theme)
} else {
iris %>%
reactable(filterable = TRUE)
}
})
}

shinyApp(ui, server)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions