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(select): don't move label on focus/active #89

Merged
merged 2 commits into from
May 15, 2019
Merged

Conversation

i8ramin
Copy link
Contributor

@i8ramin i8ramin commented May 12, 2019

fix #88

The current Select focus/active implementation moves the label up when a select is activated, but if no selection is made (and user clicks off of the select), then the label remains "activated" and only returns back to normal when the select completely loses focus. This change makes it so that the label only moves up if a selection is made.

Current behavior

Screen Recording 2019-05-12 at 10 24 AM

New proposed behavior

Screen Recording 2019-05-12 at 10 26 AM

cmugla
cmugla previously approved these changes May 12, 2019
Copy link

@cmugla cmugla left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Contributor

@adamraider adamraider left a comment

Choose a reason for hiding this comment

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

This breaks Chrome+Windows

image

@i8ramin
Copy link
Contributor Author

i8ramin commented May 13, 2019

This breaks Chrome+Windows

it sure does. that placeholder does complicate things. do we really need it?

@i8ramin
Copy link
Contributor Author

i8ramin commented May 13, 2019

Attempt at fixing placeholder mode across browsers -- 5aa321b

@i8ramin i8ramin requested review from cmugla and adamraider May 13, 2019 18:31
Copy link
Contributor

@adamraider adamraider left a comment

Choose a reason for hiding this comment

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

Nice

@adamraider adamraider merged commit ebfd737 into master May 15, 2019
@delete-merged-branch delete-merged-branch bot deleted the rb-blurfix branch May 15, 2019 18:13
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.

Select - label placement on active
3 participants