Skip to content

Instantly share code, notes, and snippets.

@vinaynb
Created January 5, 2016 10:44
Show Gist options
  • Save vinaynb/bad0b45d96d5f122dc17 to your computer and use it in GitHub Desktop.
Save vinaynb/bad0b45d96d5f122dc17 to your computer and use it in GitHub Desktop.
CSS Snippet to override chrome autocomplete styling of input text
/* used to override pale yellow color that chrome uses when user chooses an item from
its autocomplete list */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
transition: background-color 5000s ease-in-out 0s;
}
input:-webkit-autofill {
-webkit-text-fill-color: #fff;
}
input:-webkit-autofill:focus {
-webkit-text-fill-color: #fff;
}
@MohamedAhmed112008
Copy link

thank you very much

@gpradotech
Copy link

Thanks, guy!! 👏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment