bslib icon indicating copy to clipboard operation
bslib copied to clipboard

DT: "Darkly", "Cyborg" and "Slate" themes: Column filter's "min" and "max" values not displayed.

Open MadhulikaTanuboddi opened this issue 5 years ago • 1 comments

  1. Run the following example: (uses "darkly" theme, could be replaced with "cyborg" and "slate" themes)
library(shiny)
library(DT)

ui <- fluidPage(
  theme = bslib::bs_theme(
    bootswatch = "darkly"
  ),
  dataTableOutput("x")
)

server <- function(input, output, session) {
  output$x <- renderDataTable({
    datatable(iris, filter = 'top', options = list(
      pageLength = 100, scrollX = TRUE, scrollY = "600px", autoWidth = TRUE
    ))
  })
}

shinyApp(ui, server)
  1. Click on the filters under each column ("All" textbox)
  2. Notice on the slider bar to filter, "min" and "max" values are not shown

Few sample snapshots DARKLY: Screen Shot 2021-02-12 at 5 41 33 PM

CYBORG: DT_cran_cyborg_theme_range_selection_lin_max_values_not_visible

"SLATE" Screen Shot 2021-02-12 at 4 48 03 PM

Side note: With "Superhero" theme, the values are barely visible Screen Shot 2021-02-12 at 4 51 41 PM

MadhulikaTanuboddi avatar Feb 13 '21 01:02 MadhulikaTanuboddi

Hello @MadhulikaTanuboddi ,

I noticed you have a thematic_shiny app and your boxes are all white. Perhaps a solution is to have thematic::thematic_shiny(font="auto") above your shiny ui = fluidPage()

I theme my shiny and Rmarkdown files and always see the variables in my drop down menus, like so in the image below.

Screen Shot 2022-05-02 at 2 23 57 PM

PythonCoderUnicorn avatar May 02 '22 20:05 PythonCoderUnicorn

I have the same problem. With the darkly and cyborg themes, the text on sliders is completely invisible (white on white). With superhero, the text is almost but not quite invisible. With the slate theme, the text on sliders is faint but (barely) legible. The suggestion regarding thematic_shiny does not help in my case.

prubin73 avatar Aug 29 '23 21:08 prubin73

This issue has been automatically locked. If you have found a related problem, please open a new issue (with a reproducible example or feature request) and link to this issue. :raising_hand: Need help? Connect with us on Discord or Posit Community.

github-actions[bot] avatar Nov 06 '23 05:11 github-actions[bot]