Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix autofill colors #13164

Merged
merged 3 commits into from
Nov 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
display: none;
}

/* At the time of writing this User Agent styles for autofill inputs in Chrome are not customizable. This hack exploits the fact that
these styles are applied with a transition. Chromium team has labeled this as a WontFix so it seems there's not much else we can do here. */
/* Customizes the background and text colors for autofill inputs in Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
Expand All @@ -59,7 +58,9 @@
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
-webkit-transition-delay: 99999s;
-webkit-background-clip: text;
-webkit-text-fill-color: #ffffff;
caret-color: #ffffff;
}
</style>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
Expand Down