Skip to content

Commit e593ae4

Browse files
authored
fix(input-group): ensure that the autofill background from the user agent stylesheet is not visible (#1697)
1 parent 0a65b77 commit e593ae4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/components/input/themes/input.base.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@
3030
outline-style: none;
3131
font-family: var(--ig-font-family);
3232
z-index: 1;
33+
34+
// This is a hack that removes the autofill background and it's essential,
35+
// otherwise the background is on top of the floating label in material theme.
36+
// The !important flag is because themes that defin transition delay on that element are overriding the transition delay hack
37+
&:-webkit-autofill,
38+
&:-webkit-autofill:hover,
39+
&:-webkit-autofill:focus,
40+
&:-webkit-autofill:active,
41+
&:autofill,
42+
&:autofill:hover,
43+
&:autofill:focus,
44+
&:autofill:active{
45+
transition-delay: 99999s !important;
46+
}
3347
}
3448

3549
[part^='container'] {

0 commit comments

Comments
 (0)