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

Commit f5b61a9

Browse files
refactor(slider): Add styles for slider tick marks in high-contrast mode
PiperOrigin-RevId: 671827375
1 parent bf41f57 commit f5b61a9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/mdc-slider/_slider-theme.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,10 @@ $light-theme: (
407407
@include _set-tick-mark-active-color($_disabled-color, $opacity, $query);
408408
}
409409
}
410+
411+
@media (forced-colors: active) {
412+
@include _set-tick-mark-active-color(Canvas, 1, $query);
413+
}
410414
}
411415

412416
@mixin _set-tick-mark-active-color($color, $opacity, $query) {
@@ -451,6 +455,10 @@ $light-theme: (
451455
);
452456
}
453457
}
458+
459+
@media (forced-colors: active) {
460+
@include _set-tick-mark-inactive-color(CanvasText, 1, $query);
461+
}
454462
}
455463

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

0 commit comments

Comments
 (0)