Skip to content

Commit

Permalink
fix(text-field): remove browser autofill style (VIV-1641) (#1634)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelbt authored Mar 14, 2024
1 parent 23924c3 commit a1cf144
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libs/components/src/lib/text-field/text-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,17 @@ $low-ink-color: --_low-ink-color;
) !important; /* 1. sets text fill to current `color` for safari */
}

&::slotted(input:-webkit-autofill),
&:not(slot):-webkit-autofill {
/* stylelint-disable */
-webkit-box-shadow: 0 0 0 1000px
var(#{appearance.get-appearance-token(fill)}) inset;
-webkit-text-fill-color: var(
#{appearance.get-appearance-token(text)}
) !important;
/* stylelint-enable */
}

.has-icon &:not(slot),
.has-icon &::slotted(input) {
padding-inline-start: calc(
Expand Down

0 comments on commit a1cf144

Please sign in to comment.