Skip to content

Commit 2869265

Browse files
committed
add check for transparent color
1 parent e34081d commit 2869265

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/configuration/_palettes.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@
100100
// value is SASS color value, we use SASS color functionality
101101
$alphacolor: color.change($color, $alpha: $alpha);
102102

103+
@if $color == transparent {
104+
$alphacolor: transparent;
105+
}
106+
103107
@debug "Color value $color is not defined by CSS custom property: rgba(#{$color}, #{$alpha}) -> #{$alphacolor}";
104108
@return $alphacolor;
105109
} @else {

0 commit comments

Comments
 (0)