Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit e718cb2

Browse files
authored
fix(text-field): Reset z-index property of chrome autofill box (#4232)
Screenshot: ![image](https://user-images.githubusercontent.com/47312/50874350-bb2b5e00-13e9-11e9-8ff8-7c63c8266c07.png)
1 parent d4f77e1 commit e718cb2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/mdc-textfield/mdc-text-field.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@
100100
&:invalid {
101101
box-shadow: none;
102102
}
103+
104+
// Keep Chrome autofill behind the notched outline
105+
&:-webkit-autofill {
106+
z-index: auto !important;
107+
}
103108
}
104109
// stylelint-disable-next-line plugin/selector-bem-pattern
105110
// Move label when text-field gets auto-filled in Chrome.

0 commit comments

Comments
 (0)