Skip to content

Commit

Permalink
fix(material/slider): change color of inactive track
Browse files Browse the repository at this point in the history
change color of inactive track to pass 3:1 non text color contrast
ratio

fixes b/286300099
  • Loading branch information
DBowen33 committed Oct 3, 2024
1 parent b777c2d commit 2ce163c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ $_default: (
'hover-state-layer-color': map.get($deps, 'md-sys-color', 'primary'),
'hover-state-layer-opacity':
map.get($deps, 'md-sys-state', 'hover-state-layer-opacity'),
'inactive-track-color': map.get($deps, 'md-sys-color', 'surface-variant'),
'inactive-track-color': map.get($deps, 'md-sys-color', 'outline'),
'inactive-track-height': if($exclude-hardcoded-values, null, 4px),
'inactive-track-shape': map.get($deps, 'md-sys-shape', 'corner-full'),
'label-container-color': map.get($deps, 'md-sys-color', 'primary'),
Expand Down
1 change: 0 additions & 1 deletion src/material/slider/slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ $_mat-slots: (tokens-mat-slider.$prefix, tokens-mat-slider.get-token-slots());
.mdc-slider__track--inactive {
left: 0;
top: 0;
opacity: 0.24;

@include token-utils.use-tokens($_mdc-slots...) {
@include token-utils.create-token-slot(background-color, inactive-track-color);
Expand Down

0 comments on commit 2ce163c

Please sign in to comment.