Skip to content

Commit 1b9061a

Browse files
authored
fix(material/core): fix sass deprecation warning (#31390)
Fixes a Sass deprecation warning in the 19.2.x branch. Fixes #31385.
1 parent 3174b4f commit 1b9061a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/material/core/tokens/_token-definition.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ $_system-fallbacks: null;
228228
// Calculate the luminance for a color.
229229
// See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
230230
@function _luminance($color) {
231-
$red: _linear-channel-value(color.red($color));
232-
$green: _linear-channel-value(color.green($color));
233-
$blue: _linear-channel-value(color.blue($color));
231+
$red: _linear-channel-value(color.channel($color, 'red', $space: rgb));
232+
$green: _linear-channel-value(color.channel($color, 'green', $space: rgb));
233+
$blue: _linear-channel-value(color.channel($color, 'blue', $space: rgb));
234234

235235
@return 0.2126 * $red + 0.7152 * $green + 0.0722 * $blue;
236236
}

0 commit comments

Comments
 (0)