-
Notifications
You must be signed in to change notification settings - Fork 153
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
shinyWidgets::switchInput under bs_theme(version="3") vs NULL #528
Comments
This assumption does not seem to be correct shinyWidgets/inst/assets/bootstrap-switch/bootstrap-switch-3.4/bootstrap-switch.scss Lines 14 to 16 in 3f886ea
as for bslib::bs_theme(version="3") it will be not inherited with proper sass color variables. |
Thanks for rreporting. It seems related to SCSS variable shinyWidgets/inst/assets/bootstrap-switch/bootstrap-switch-3.4/bootstrap-switch.scss Line 69 in 3f886ea
I think it will be sufficient to create the variable here with the other Line 307 in 3f886ea
"secondary" = "$gray-base" (default to gray).
|
That's fixed, re-install from GitHub : remotes::install_github("dreamRs/shinyWidgets") |
Not sure who is responsible so I create a similar issue in the bslib.
So bs_theme(version="3") should work the same as NULL for the theme argument in the shiny::fluidPage.
Unfortunately shinyWidgets::switchInput is crashing the shiny app when bs_theme(version="3") is used, and not when NULL is used.
minimal example:
Error message:
sessionInfo:
The text was updated successfully, but these errors were encountered: