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

Adds label property to improve accessibility #172

Closed
wants to merge 3 commits into from

Conversation

jsantanders
Copy link

the label property is used by screen readers, a configurable label would improve the right characterization of the toggle.

@thom-nic
Copy link

I know this is an old PR but we are also using this component and I'm presently looking at similar accessibility aspects to assist with Cypress testing. That being said, I don't believe <input> supports the label attribute: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attributes

Note that aria-label is supported already.

@jsantanders
Copy link
Author

Right, so I guess this PR is no longer needed.

@jsantanders jsantanders closed this by deleting the head repository Jan 13, 2025
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.

2 participants