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

Accessibility and Labeling #81

Open
mikeldn opened this issue Mar 17, 2020 · 0 comments
Open

Accessibility and Labeling #81

mikeldn opened this issue Mar 17, 2020 · 0 comments

Comments

@mikeldn
Copy link

mikeldn commented Mar 17, 2020

Hi,

Would it be possible/make sense to allow the binding of labels to inputs for accessibility ... I'm not sure, given the fact that the input is actually hidden if that would be the wrong approach or not?

Anyway, if it's possible, then something like:
Do you like cheese?

as per: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label

My suggestion is, that if you add an id tag your markup, it should get carried through into the attribute?

On that page, they also talk about implicit association between label & input, like this:
Do you like peas?

Any thoughts, suggestions or upgrades would be appreciated!

P.S. Should add, I'm using the library via the Vue version: https://hamed-ehtesham.github.io/pretty-checkbox-vue/#more

Thanks!

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

1 participant