How disable default CSS autocomplete styles
November 21, 2024
If you want to disable the autocomplete default styles on an input you can use the webkit-autofill CSS property.
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
-webkit-background-clip: text;
transition: background-color 5000s ease-in-out 0s;
box-shadow: inset 0 0 20px 20px white; /* Background color */
-webkit-text-fill-color: black; /* Text color */
}