Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
refactor(slider): Add styles for slider tick marks in high-contrast mode
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 671827375
  • Loading branch information
material-web-copybara authored and copybara-github committed Sep 6, 2024
1 parent bf41f57 commit f5b61a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/mdc-slider/_slider-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,10 @@ $light-theme: (
@include _set-tick-mark-active-color($_disabled-color, $opacity, $query);
}
}

@media (forced-colors: active) {
@include _set-tick-mark-active-color(Canvas, 1, $query);
}
}

@mixin _set-tick-mark-active-color($color, $opacity, $query) {
Expand Down Expand Up @@ -451,6 +455,10 @@ $light-theme: (
);
}
}

@media (forced-colors: active) {
@include _set-tick-mark-inactive-color(CanvasText, 1, $query);
}
}

@mixin _set-tick-mark-inactive-color($color, $opacity, $query) {
Expand Down

0 comments on commit f5b61a9

Please sign in to comment.