mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(form-field): blue box inside focused native select on IE (#13187)
Resets the blue box that the user agent draws inside focused `select` elements in IE11.
This commit is contained in:
committed by
vivian-hu
parent
238aef04c3
commit
ab44d50f5f
@@ -152,6 +152,16 @@ select.mat-input-element {
|
||||
&::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
// As a part of its user agent styling, IE11 has a blue box inside each focused
|
||||
// `select` element which we have to reset. Note that this needs to be in its own
|
||||
// selector, because having it together with another one will cause other browsers
|
||||
// to ignore it.
|
||||
&::-ms-value {
|
||||
// We need to reset the `color` as well, because IE sets it to white.
|
||||
color: inherit;
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
|
||||
.mat-form-field-type-mat-native-select {
|
||||
|
||||
Reference in New Issue
Block a user