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

style(experience): remove autofill style from input component #6261

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
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@
transition: opacity 0.2s ease-out;
opacity: 0%;
}

&:-webkit-autofill,
&:-webkit-autofill:hover,
&:-webkit-autofill:focus {
-webkit-text-fill-color: var(--color-type-primary);
/*
* Create an extremely long (about 11.57 days) transition for background-color
* This is a "hack" to prevent the browser from applying its default autofill background color
*/
transition: background-color 999999s ease-in-out 0s;
xiaoyijun marked this conversation as resolved.
Show resolved Hide resolved
background-color: transparent;
}
}

.suffix {
Expand Down
Loading