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
#29665)

(cherry picked from commit 90eea1b)
  • Loading branch information
amysorto committed Aug 29, 2024
1 parent 59074f2 commit fe3f30f
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 fe3f30f

Please sign in to comment.