We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d28a84 commit 1640305Copy full SHA for 1640305
1 file changed
src/common/scss/_color-functions.scss
@@ -86,7 +86,12 @@
86
* Created to replace them easily for CSS custom properties.
87
*/
88
@function eccgui-color-rgba($color, $alpha) {
89
- @return eccgui-color-mix($color 100% * $alpha, transparent);
+ @if $alpha > 0 {
90
+ @return eccgui-color-mix($color 100% * $alpha, transparent);
91
+ } @else {
92
+ // workaround: we need to prevent `0%` because it will reduced to `0` by some CSS minifiers and leads to invalid color-mix values
93
+ @return eccgui-color-mix($color, transparent 100%);
94
+ }
95
}
96
97
$debug-rgba-values: "yes";
0 commit comments