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

[bug]: Textfield label incorrectly positioned if placeholder is not present #200

Open
wuweiweiwu opened this issue Aug 15, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@wuweiweiwu
Copy link
Contributor

If the placeholder attribute is not specified on the <input/> than the label immediately is pull to the top left by the :not(:placeholder-shown) rule

Resulting is a weird gap of space even when the field doesn't have focus (my assumption is that the label will always take up the space when not in focus)

codepen

Screen Shot 2019-08-15 at 1 19 33 AM

@wuweiweiwu wuweiweiwu added the bug Something isn't working label Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant