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

Add pure-CSS Float Label demo #28

Open
tonystar opened this issue Oct 12, 2016 · 2 comments
Open

Add pure-CSS Float Label demo #28

tonystar opened this issue Oct 12, 2016 · 2 comments

Comments

@tonystar
Copy link

A good addition to the YouMightNotNeedJS will be a pure-CSS Float Labels:
https://github.com/tonystar/float-label-css

@robsonsobral
Copy link

Bad accessibility support, since the label of the field has to come after it. This should be flagged.

@tonystar
Copy link
Author

tonystar commented Nov 21, 2017

@robsonsobral there is alternative style which is also supported:

<label class="has-float-label">
  <input type="email" placeholder="email@example.com"/>
  <span>Email</span>
</label>

https://www.w3.org/WAI/tutorials/forms/labels/#associating-labels-implicitly

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

No branches or pull requests

2 participants