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

[Input component] Floating's label behavior is different when placeholder is not set or empty #1811

Closed
imagoiq opened this issue Aug 16, 2023 · 1 comment
Labels
wontfix This will not be worked on

Comments

@imagoiq
Copy link
Contributor

imagoiq commented Aug 16, 2023

Without placeholder attribute

image

With empty placeholder attribute
image

@gfellerph
Copy link
Member

@imagoiq, this is a known limitation. The :placeholder-shown pseudo selector does not work if there is no placeholder specified. An empty placeholder also ensures that assistive technology does not read it twice (with the label). If you agree, you can close the ticket as won't do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
Development

No branches or pull requests

2 participants