Open asbates opened 1 year ago
Also note the histogram and labels in the filter panel https://github.com/insightsengineering/teal.slice/pull/164#discussion_r1073787170
Bootstrap 3 doesn't have variables. So we would either need to
For 2, we could for example define CSS variables for bootstrap 3 ourselves and use those or not depending on the version.
Bootstrap uses hex for colors. If we wanted to use primary in the slider histogram for example, we would likely use different different opacity for filtered vs. unfiltered. There's not a direct way to do this in CSS unfortunately.
But luckily, it looks to be fairly easy to do this with JavaScript. We could do the following.
Conversion: https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb.
Updating variables: https://www.w3schools.com/css/css3_variables_javascript.asp and https://css-tricks.com/updating-a-css-variable-with-javascript/.
Just found that Bootstrap 5 also has variables for the colors in rgb.
Switching to bslib
even more relevant with this item
Feature description
It would be nice to have everything in the app to have the same look and feel if I use anything other than the Shiny default theme. For example if I want to use Bootswatch's Minty theme, I would like the sparklines in the
tm_variable_browser
table to match.Code of Conduct
Contribution Guidelines
Security Policy