File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 2727 padding-right : $mat-menu-side-padding * 2 ;
2828 }
2929 }
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 the 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+ }
3047}
3148
3249// Collapses unwanted whitespace created by newlines in code like the following:
You can’t perform that action at this time.
0 commit comments