From c61773cd0ba6a53bba902d93700dd0aff08f9aa1 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Sat, 21 Jun 2025 09:00:50 +0200 Subject: [PATCH] fix(material/core): fix sass deprecation warning Fixes a Sass deprecation warning in the 19.2.x branch. Fixes #31385. --- src/material/core/tokens/_token-definition.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/material/core/tokens/_token-definition.scss b/src/material/core/tokens/_token-definition.scss index aa4803556ca6..acf94d859056 100644 --- a/src/material/core/tokens/_token-definition.scss +++ b/src/material/core/tokens/_token-definition.scss @@ -228,9 +228,9 @@ $_system-fallbacks: null; // Calculate the luminance for a color. // See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests @function _luminance($color) { - $red: _linear-channel-value(color.red($color)); - $green: _linear-channel-value(color.green($color)); - $blue: _linear-channel-value(color.blue($color)); + $red: _linear-channel-value(color.channel($color, 'red', $space: rgb)); + $green: _linear-channel-value(color.channel($color, 'green', $space: rgb)); + $blue: _linear-channel-value(color.channel($color, 'blue', $space: rgb)); @return 0.2126 * $red + 0.7152 * $green + 0.0722 * $blue; }