File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/material-experimental/mdc-core/option Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 56
56
}
57
57
}
58
58
}
59
+
60
+ .mat-mdc-option-active {
61
+ @include cdk-high-contrast (active , off) {
62
+ // A pseudo element is used here, because the active indication gets moved between options
63
+ // and we don't want the border from below to shift the layout around as it's added and removed.
64
+ & ::before {
65
+ content : ' ' ;
66
+ position : absolute ;
67
+ top : 0 ;
68
+ bottom : 0 ;
69
+ left : 0 ;
70
+ right : 0 ;
71
+ pointer-events : none ;
72
+
73
+ // We use a border here, rather than an outline, because the outline will be cut off
74
+ // by the `overflow: hidden` on the panel wrapping the options, whereas a border
75
+ // will push the element inwards. This could be done using `outline-offset: -1px`,
76
+ // however the property isn't supported on IE11.
77
+ border : solid 1px currentColor ;
78
+ }
79
+ }
80
+ }
You can’t perform that action at this time.
0 commit comments