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 floating label being hidden #2029

Closed
wants to merge 0 commits into from
Closed

Fix floating label being hidden #2029

wants to merge 0 commits into from

Conversation

EnzoMartin
Copy link
Contributor

This fixes the issue with the floating label being hidden when the field is selected by Chrome to be autocompleted as it was rendered under Chrome's yellow background highlight of the field

@@ -229,6 +229,7 @@ const TextField = React.createClass({
top: 38,
bottom: 'none',
opacity: 1,
zIndex: 2,
Copy link
Member

Choose a reason for hiding this comment

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

is zIndex: 1 enough?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, anything above 0 works. I've changed it to 1 now

@oliviertassinari
Copy link
Member

@EnzoMartin Could you give us a screenshot of the issue?

@oliviertassinari oliviertassinari added PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI and removed Review: review-needed labels Nov 3, 2015
@EnzoMartin
Copy link
Contributor Author

Sure

Before:
Before

After:
After

@oliviertassinari
Copy link
Member

@EnzoMartin Looks good to me 👍. I'm gonna just ask you to add a comment on the line to explain why this is here and to squash down the commit (to keep the history clean).

@EnzoMartin EnzoMartin closed this Nov 6, 2015
@EnzoMartin
Copy link
Contributor Author

Hit the wrong command in Git, sorry, made a new PR instead: #2078

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants