Shiny preset masks `$bslib-sidebar-bg` with a custom property in dashboard mode
Closed this issue · 0 comments
gadenbuie commented
The Shiny preset sets --bslib-sidebar-bg
bslib/inst/builtin/bs5/shiny/_rules.scss
Line 138 in 85b0428
but this masks $bslib-sidebar-bg
if set
because .bslib-sidebar-layout
will always consult the CSS variable before falling back to the default color
bslib/inst/components/scss/sidebar.scss
Line 17 in 85b0428
Generally speaking the Shiny preset _rules.scss
comes before sidebar.scss
(or even in a separate Sass compilation), but I think we can safely assume that if $bslib-sidebar-bg
exists we should use that value instead of our default.