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

Support custom attributes #37

Open
kimisgold opened this issue Nov 5, 2020 · 1 comment
Open

Support custom attributes #37

kimisgold opened this issue Nov 5, 2020 · 1 comment

Comments

@kimisgold
Copy link

I'm looking to provide aria labels for chosen's text inputs to satisfy WCAG accessibility requirements, like in this issue in the original repository.

Steps to reproduce

  1. Install the WAVE extension for Firefox or Chrome.

  2. Run the extension on the Chosen demo page.

  3. You should see all the form elements that require labels.

Expected behavior

I would love for an aria label applied to the original select carry over to the text input. Alternatively, I could pass a specific string to the Chosen call to label the text input, i.e. "Find options via autocomplete".

@Doogal666
Copy link

Me too. Some way to add an aria label would be great. It looks like it is currently making some effort to copy across aria-label. If I set it on the select, the input has aria-label="[object Attr]" added, so it's trying to do something, just not quite getting it right. But the ul also needs an aria-label and, perhaps more problematic, the ul should have children

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