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

refactor(slider): Add styles for slider tick marks in high-contrast mode #8202

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading