File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/material-experimental/mdc-slide-toggle Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1
1
@import ' @material/switch/functions' ;
2
2
@import ' @material/switch/mixins' ;
3
+ @import ' @material/switch/variables' ;
3
4
@import ' @material/form-field/mixins' ;
4
5
@import ' @material/ripple/variables' ;
5
6
@import ' ../mdc-helpers/mdc-helpers' ;
6
7
@import ' ../../material/core/style/layout-common' ;
8
+ @import ' ../../cdk/a11y/a11y' ;
7
9
8
10
@include mdc-switch-without-ripple ($query : $mat-base-styles-query );
9
11
@include mdc-form-field-core-styles ($query : $mat-base-styles-query );
51
53
}
52
54
}
53
55
}
56
+
57
+
58
+ @include cdk-high-contrast {
59
+ .mat-mdc-slide-toggle-focused {
60
+ .mdc-switch__track {
61
+ // Usually 1px would be enough, but MDC reduces the opacity on the
62
+ // element so we need to make this a bit more prominent.
63
+ outline : solid 2px ;
64
+ outline-offset : $mdc-switch-track-height / 2 ;
65
+ }
66
+ }
67
+ }
You can’t perform that action at this time.
0 commit comments