Skip to content

Commit 39b2235

Browse files
committed
fix(material/button-toggle): simplify divider color
1 parent eb9abc3 commit 39b2235

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/material/button-toggle/_m2-button-toggle.scss

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@
2323
@function get-color-tokens($theme) {
2424
$theme-divider-color: inspection.get-theme-color($theme, system, outline);
2525

26-
// By default the theme usually has an rgba color for the dividers, which can
27-
// stack up with the background of a button toggle. This can cause the border
28-
// of a selected toggle to look different from an unselected one. We use a solid
29-
// color to ensure that the border always stays the same.
30-
$divider-color: if(
31-
meta.type-of($theme-divider-color) == color,
32-
theming.private-rgba-to-hex(
33-
$theme-divider-color, inspection.get-theme-color($theme, system, surface)),
34-
$theme-divider-color);
35-
3626
@return (
3727
button-toggle-background-color: inspection.get-theme-color($theme, system, surface),
3828
button-toggle-disabled-selected-state-background-color:
@@ -43,7 +33,7 @@
4333
inspection.get-theme-color($theme, system, surface),
4434
button-toggle-disabled-state-text-color:
4535
inspection.get-theme-color($theme, foreground, disabled-button),
46-
button-toggle-divider-color: $divider-color,
36+
button-toggle-divider-color: inspection.get-theme-color($theme, system, outline),
4737
button-toggle-legacy-disabled-selected-state-background-color:
4838
inspection.get-theme-color($theme, background, selected-disabled-button),
4939
button-toggle-legacy-disabled-state-background-color:

0 commit comments

Comments
 (0)