File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 27
27
padding-right : $mat-menu-side-padding * 2 ;
28
28
}
29
29
}
30
+
31
+ @include cdk-high-contrast {
32
+ $high-contrast-border-width : 1px ;
33
+
34
+ // Add a margin to offset the border that we're adding to active option, in order
35
+ // to avoid the options shifting as the user is moving through the list.
36
+ margin : 0 $high-contrast-border-width ;
37
+
38
+ & .mat-active {
39
+ // We use a border here, rather than an outline, because the outline will be cut off
40
+ // by the `overflow: hidden` on the panel wrapping the options, whereas a border
41
+ // will push the element inwards. This could be done using `outline-offset: -1px`,
42
+ // however the property isn't supported on IE11.
43
+ border : solid $high-contrast-border-width currentColor ;
44
+ margin : 0 ;
45
+ }
46
+ }
30
47
}
31
48
32
49
// Collapses unwanted whitespace created by newlines in code like the following:
You can’t perform that action at this time.
0 commit comments