From 9d15f8620fc56052254bef7ec73735c6f1113a2d Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Tue, 10 Jun 2025 14:05:16 +0200 Subject: [PATCH] fix(material/radio): color tokens excluded when passing in variant Fixes that when passing in a variant into the radio button's `get-tokens` function, we were removing the color tokens altogether, because passing in multiple arguments into `map.remove` removes all those keys, rather than removing a nested value. Fixes #31319. --- src/material/radio/_m3-radio.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/material/radio/_m3-radio.scss b/src/material/radio/_m3-radio.scss index 814ada004e1a..fa317bb3ed5c 100644 --- a/src/material/radio/_m3-radio.scss +++ b/src/material/radio/_m3-radio.scss @@ -47,7 +47,7 @@ // Temporary removal where color variants previously did not include the // unselected icon color. Remove this and approve internal screenshot changes. @if $color-variant { - $tokens: map.remove($tokens, color, radio-unselected-icon-color); + $tokens: map.deep-remove($tokens, color, radio-unselected-icon-color); } @return $tokens;