Skip to content

Commit

Permalink
fix: prevent chrome default autocomplete colors
Browse files Browse the repository at this point in the history
  • Loading branch information
felixw committed Jan 4, 2024
1 parent 12d48df commit d5e4efb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/components/src/components/text-field/text-field.css
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
color-scheme: dark;
/* hack to remove autocomplete colors in chrome, as they conflict with scale dark/light mode styles https://stackoverflow.com/a/68240841 */
transition: background-color 0s 600000s, color 0s 600000s;
}

@media screen and (forced-colors: active), (-ms-high-contrast: active) {
Expand Down

0 comments on commit d5e4efb

Please sign in to comment.