Skip to content

Commit 82b4493

Browse files
committed
chore: set black/white to brand black white if not set
1 parent cf103d8 commit 82b4493

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

shiny/ui/_theme_brand.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -466,16 +466,10 @@ def _add_sass_brand_grays(self):
466466
@if variable-exists(brand--foreground) and variable-exists(brand--background) {
467467
$brand-white-black: brand-choose-white-black($brand--foreground, $brand--background);
468468
@if $white == null {
469-
$brand-white: map-get($brand-white-black, "white");
470-
@if $brand-white != null {
471-
$white: $brand-white !default;
472-
}
469+
$white: map-get($brand-white-black, "white") !default;
473470
}
474471
@if $black == null {
475-
$brand-black: map-get($brand-white-black, "black");
476-
@if $brand-black != null {
477-
$black: $brand-black !default;
478-
}
472+
$black: map-get($brand-white-black, "black") !default;
479473
}
480474
}
481475
@if $white != null and $black != null {

0 commit comments

Comments
 (0)