Skip to content

Commit

Permalink
fix(material/core): Allow system variables to be formatted for opacity (
Browse files Browse the repository at this point in the history
  • Loading branch information
amysorto authored Aug 29, 2024
1 parent 3d9992f commit 90eea1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/material/core/style/_sass-utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ $use-system-typography-variables: false;
$opacity: ($opacity * 100) + '%';
}

@if (is-css-var-name($opacity)) {
$opacity: calc(var($opacity) * 100%);
}

@if (is-css-var-name($color)) {
$color: var($color);
}
Expand Down

0 comments on commit 90eea1b

Please sign in to comment.