Last active
August 2, 2024 02:46
-
-
Save coltenkrauter/34ca748828ffd351930aaf34aaef6c72 to your computer and use it in GitHub Desktop.
Remove Chrome's autofill background color on HTML inputs. This unique solution makes the background color to transparent rather then a solid color.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remove chrome autofill color from inputs | |
input:-webkit-autofill, | |
input:-webkit-autofill:hover, | |
input:-webkit-autofill:focus, | |
input:-webkit-autofill:active { | |
transition: background-color 5000000s ease-in-out 0s; | |
} | |
# Credit: https://stackoverflow.com/questions/2781549/removing-input-background-colour-for-chrome-autocomplete#answer-29350537 |
Works for me.
Work with Chrome 108.0.5359.125 in React app. Thanks
Thanks worked for me
It works. Thank you!
Worked for me. Thank you!
best trick I ever seen 🤪
Thank you!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doesn't work in latest Chrome.