Skip to content

Commit

Permalink
fixup! fix(material/slide-toggle): use css var for disabled label color
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnermaciel committed Jan 23, 2024
1 parent 636de5f commit 33e9d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material/slide-toggle/slide-toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@include mdc-switch.static-styles-without-ripple();

// TODO(wagnermaciel): Use our custom token system to emit this css rule.
.mat-mdc-slide-toggle:has(.mdc-switch--disabled) label {
.mdc-switch--disabled + label {
color: var(--mdc-switch-disabled-label-text-color);
}

Expand Down

0 comments on commit 33e9d3b

Please sign in to comment.