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(text-field): Reset z-index property of chrome autofill box #4232

Merged
merged 14 commits into from
Jan 10, 2019

Conversation

abhiomkar
Copy link
Collaborator

@abhiomkar abhiomkar commented Jan 7, 2019

This change force reset the z-index value of chrome autofill using -webkit-autofill CSS property to keep it behind notched outline and floating label.

Screenshot:

image

Fixes #2802

Copy link
Contributor

@acdvorak acdvorak left a comment

Choose a reason for hiding this comment

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

LGTM, but could you possibly include a screenshot of what it looks like now? (Both in the PR description and squash/merge commit message.) Thanks!

Copy link
Contributor

@acdvorak acdvorak left a comment

Choose a reason for hiding this comment

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

Some of the comments on #2802 (comment) include :hover and :focus pseudo-classes in the selector:

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    z-index: auto !important;
}

Did you test hover/focus states? Are those additional selectors not necessary?

@mdc-web-bot
Copy link
Collaborator

All 758 screenshot tests passed for commit dca2a04 vs. master! 💯🎉

@abhiomkar
Copy link
Collaborator Author

Above styles are inherited to :hover and :focus state so it is not necessary to apply for each state.

@acdvorak
Copy link
Contributor

acdvorak commented Jan 9, 2019

LGTM! Thanks for the screenshot and clarifications!

@jamesmfriedman jamesmfriedman mentioned this pull request Feb 5, 2019
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants