Skip to content

Commit 3f7d277

Browse files
authored
fix(material/radio): color tokens excluded when passing in variant (#31321)
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.
1 parent 9ce023d commit 3f7d277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/radio/_m3-radio.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
// Temporary removal where color variants previously did not include the
4848
// unselected icon color. Remove this and approve internal screenshot changes.
4949
@if $color-variant {
50-
$tokens: map.remove($tokens, color, radio-unselected-icon-color);
50+
$tokens: map.deep-remove($tokens, color, radio-unselected-icon-color);
5151
}
5252

5353
@return $tokens;

0 commit comments

Comments
 (0)