Forked from coltenkrauter/html-input-remove-chrome-autofill-background.css
Created
January 18, 2022 14:53
-
-
Save calebeaires/765594940d2a851f28e1ae918af8acdc 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 hidden or 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment