Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better color constrasting in sliderInput() #3366

Merged
merged 3 commits into from Jun 14, 2021
Merged

Conversation

cpsievert
Copy link
Collaborator

Closes rstudio/bslib#228

Testing notes

Install remotes::install_github("rstudio/shiny") then run the app and choice different Bootswatch themes. Make sure the text and grid line colors on the slider provide a good level of contrast from their background color

library(shiny)

ui <- fluidPage(
    theme = bslib::bs_theme(version = 4),
    sliderInput("slider", "", min = 0, max = 100, value = 50, step = 1)
)

server <- function(input, output, session) {
    bs_themer()
}

shinyApp(ui, server)

@cpsievert cpsievert added this to the 1.7 milestone May 4, 2021
@cpsievert
Copy link
Collaborator Author

cpsievert commented Jun 14, 2021

615c404 is a consequence of rstudio/bslib#304

@cpsievert
Copy link
Collaborator Author

Pretty sure the 3.4 failure is a false positive, merging.

@cpsievert cpsievert merged commit dc9c6ae into master Jun 14, 2021
@cpsievert cpsievert deleted the sliderInputContrast branch June 14, 2021 17:48
schloerke added a commit that referenced this pull request Jun 15, 2021
* master:
  Move `./srcts` configs to top level to support types installation from GitHub (#3425)
  insertTab() now handles position correctly when target is NULL (#3404)
  yarn add node-gyp; yarn build (#3424)
  Export TypeScript type definitions to local folder (#3418)
  TypeScript: Remove `any` types / improve type definitions (#3414)
  Better color constrasting in sliderInput() (#3366)
  Use ggplot2::get_alt_text() if available to provide better default alt text (#3398)
  Set selectize dropdownParent to "body" to prevent clipping
@cpsievert cpsievert mentioned this pull request Jun 15, 2021
cpsievert added a commit that referenced this pull request Jun 15, 2021
* Follow up to #3366: don't change sliderInput()'s default accent color

* Update news

* nav_append not tab_append 🤦

* bslib no longer tries to mark a non-tabPanel as active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sliderInput() grid text should have higher contrast on some bootswatch dark mode themes
1 participant