Skip to content

Commit 458a17b

Browse files
andrewseguinAndrew Seguin
and
Andrew Seguin
authored
fix(material/checkbox): update tokens to system colors (#31279)
Co-authored-by: Andrew Seguin <[email protected]>
1 parent 4d67427 commit 458a17b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/material/checkbox/_m2-checkbox.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
$system: m2-utils.get-system($theme);
1111

1212
@return (
13-
checkbox-disabled-selected-checkmark-color: #fff,
13+
checkbox-disabled-selected-checkmark-color: map.get($system, surface),
1414
checkbox-selected-focus-state-layer-opacity: map.get($system, focus-state-layer-opacity),
1515
checkbox-selected-hover-state-layer-opacity: map.get($system, hover-state-layer-opacity),
1616
checkbox-selected-pressed-state-layer-opacity: map.get($system, pressed-state-layer-opacity),
@@ -25,7 +25,6 @@
2525
$system: m2-utils.get-system($theme);
2626
$system: m3-utils.replace-colors-with-variant($system, secondary, $color-variant);
2727
$is-dark: inspection.get-theme-type($theme) == dark;
28-
$foreground-base: inspection.get-theme-color($theme, foreground, base);
2928
$disabled: m3-utils.color-with-opacity(map.get($system, on-surface), 38%);
3029

3130
$tokens: (
@@ -46,7 +45,7 @@
4645
checkbox-selected-pressed-state-layer-color: map.get($system, secondary),
4746
checkbox-unselected-focus-state-layer-color: map.get($system, on-surface),
4847
checkbox-unselected-hover-state-layer-color: map.get($system, on-surface),
49-
checkbox-unselected-pressed-state-layer-color: $foreground-base,
48+
checkbox-unselected-pressed-state-layer-color: map.get($system, on-surface),
5049
);
5150

5251
@each $token in $exclude {

0 commit comments

Comments
 (0)