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

💄 Search: Override Chrome autofill background #2160

Merged
merged 2 commits into from
Apr 20, 2022

Conversation

oddvernes
Copy link
Collaborator

resolves #2138

@@ -117,6 +117,12 @@ const SearchInput = styled(Input)(({ theme, disabled }) => {
&:focus {
outline: none;
}
&:-webkit-autofill {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did it work without the vendor prefix? I thingk styled-components has built in autoprefixer 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not. The non-prefixed alone does not work, and does not get autoprefixed, so this is more of a future-proofing (css-tricks recommmended including it)

Copy link
Contributor

@mimarz mimarz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@oddvernes oddvernes merged commit c6e5da7 into develop Apr 20, 2022
@oddvernes oddvernes deleted the fix/OOE-2138-search-chrome-autofill branch April 20, 2022 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search component AutoComplete blue color
2 participants