Skip to content

Commit

Permalink
fix(text-field): Reset z-index property of chrome autofill box (#4232)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiomkar authored Jan 10, 2019
1 parent d4f77e1 commit e718cb2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/mdc-textfield/mdc-text-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@
&:invalid {
box-shadow: none;
}

// Keep Chrome autofill behind the notched outline
&:-webkit-autofill {
z-index: auto !important;
}
}
// stylelint-disable-next-line plugin/selector-bem-pattern
// Move label when text-field gets auto-filled in Chrome.
Expand Down

0 comments on commit e718cb2

Please sign in to comment.