File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
src/material-experimental/mdc-slider Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 1
1
@import ' @material/slider/mixins' ;
2
2
@import ' ../mdc-helpers/mdc-helpers' ;
3
+ @import ' ../../cdk/a11y/a11y' ;
3
4
4
5
$mat-slider-min-size : 128px !default ;
5
6
$mat-slider-horizontal-margin : 8px !default ;
@@ -24,6 +25,21 @@ $mat-slider-horizontal-margin: 8px !default;
24
25
// the slider to automatically expand horizontally for backwards compatibility.
25
26
width : auto ;
26
27
min-width : $mat-slider-min-size - (2 * $mat-slider-horizontal-margin );
28
+
29
+ @include cdk-high-contrast {
30
+ // The slider track isn't visible in high contrast mode so we work
31
+ // around it by setting an outline and removing the height to make it look solid.
32
+ .mdc-slider__track-container {
33
+ height : 0 ;
34
+ outline : solid 2px ;
35
+ margin-top : 1px ;
36
+ }
37
+
38
+ // Adds an outline around the thumb label so it doesn't just float on top of the slider.
39
+ .mdc-slider__pin-value-marker {
40
+ outline : solid 1px ;
41
+ }
42
+ }
27
43
}
28
44
29
45
// In order to make it possible for developers to disable animations for a slider,
You can’t perform that action at this time.
0 commit comments