Skip to content

Commit f1b65b6

Browse files
crisbetojelbourn
authored andcommitted
fix(slider): thumb label blending in with background in high contrast mode (#12606)
Fixes the slider's thumb label not having an outline and blending in with the background in high contrast mode.
1 parent ecf8b0d commit f1b65b6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/lib/slider/slider.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ $mat-slider-focus-ring-size: 30px !default;
142142
transition: transform $swift-ease-out-duration $swift-ease-out-timing-function,
143143
border-radius $swift-ease-out-duration $swift-ease-out-timing-function,
144144
background-color $swift-ease-out-duration $swift-ease-out-timing-function;
145+
146+
@include cdk-high-contrast {
147+
outline: solid 1px;
148+
}
145149
}
146150

147151
.mat-slider-thumb-label-text {
@@ -339,6 +343,13 @@ $mat-slider-focus-ring-size: 30px !default;
339343
.mat-slider-thumb-label {
340344
transform: rotate(45deg);
341345
}
346+
347+
@include cdk-high-contrast {
348+
.mat-slider-thumb-label,
349+
.mat-slider-thumb-label-text {
350+
transform: none;
351+
}
352+
}
342353
}
343354
}
344355

0 commit comments

Comments
 (0)