mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(form-field): reset inputs not being reset on safari (#12413)
Fixes Safari's custom styling for `input[type='search']` not being reset inside of form fields. Fixes #12408.
This commit is contained in:
committed by
Jeremy Elbourn
parent
71886f84ef
commit
4884dacb58
@@ -43,6 +43,15 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
// Clear Safari's decorations for search fields.
|
||||
&,
|
||||
&::-webkit-search-cancel-button,
|
||||
&::-webkit-search-decoration,
|
||||
&::-webkit-search-results-button,
|
||||
&::-webkit-search-results-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
// Also clear Safari's autofill icons. Note that this can't be in the
|
||||
// same selector as the IE ones, otherwise Safari will ignore it.
|
||||
&::-webkit-contacts-auto-fill-button,
|
||||
|
||||
Reference in New Issue
Block a user