From f5b61a9a8b32775db1b1b3e8cdfecf5a591ae19f Mon Sep 17 00:00:00 2001 From: Material Web Team Date: Fri, 6 Sep 2024 11:02:51 -0700 Subject: [PATCH] refactor(slider): Add styles for slider tick marks in high-contrast mode PiperOrigin-RevId: 671827375 --- packages/mdc-slider/_slider-theme.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/mdc-slider/_slider-theme.scss b/packages/mdc-slider/_slider-theme.scss index 8e1f2ac5b3b..65a8df337ee 100644 --- a/packages/mdc-slider/_slider-theme.scss +++ b/packages/mdc-slider/_slider-theme.scss @@ -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) { @@ -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) {