Skip to content

Commit 90eea1b

Browse files
authored
fix(material/core): Allow system variables to be formatted for opacity (angular#29665)
1 parent 3d9992f commit 90eea1b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/material/core/style/_sass-utils.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ $use-system-typography-variables: false;
7777
$opacity: ($opacity * 100) + '%';
7878
}
7979

80+
@if (is-css-var-name($opacity)) {
81+
$opacity: calc(var($opacity) * 100%);
82+
}
83+
8084
@if (is-css-var-name($color)) {
8185
$color: var($color);
8286
}

0 commit comments

Comments
 (0)