Skip to content

Commit

Permalink
fix(text-field): Reset z-index property of chrome autofill box (mater…
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiomkar authored and Matt Goo committed Jan 22, 2019
1 parent 7ca7332 commit 9e06b77
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 9e06b77

Please sign in to comment.