Skip to content

Commit

Permalink
fix(textfield): autofill filled label not floating correctly
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 322262817
  • Loading branch information
asyncLiz authored and copybara-github committed Jul 21, 2020
1 parent 8df0f51 commit abcdbcf
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/mdc-textfield/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,6 @@
}
}

// stylelint-disable-next-line plugin/selector-bem-pattern
// Move label when text-field gets auto-filled in Chrome.
.mdc-text-field__input:-webkit-autofill + .mdc-floating-label {
@include feature-targeting-mixins.targets($feat-structure) {
transform: translateY(-50%) scale(0.75);
cursor: auto;
}
}

// Variants

.mdc-text-field--filled {
Expand Down Expand Up @@ -2247,11 +2238,6 @@
&:invalid {
box-shadow: none;
}

// Keep Chrome autofill behind the notched outline
&:-webkit-autofill {
z-index: auto !important;
}
}
}

Expand Down

0 comments on commit abcdbcf

Please sign in to comment.