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

Chosen remove item X is not accessible #47

Open
juanolalla opened this issue Jul 31, 2023 · 0 comments
Open

Chosen remove item X is not accessible #47

juanolalla opened this issue Jul 31, 2023 · 0 comments

Comments

@juanolalla
Copy link

The chosen module provides a little X next to items that have been selected, but it is not implemented in a way that is accessible.

<button type="button" tabindex="-1" class="search-choice-close" data-option-array-index="2"></button>

Proposed resolution

The button element needs to have some text inside it for screen readers. I recommend the following:

<button type="button" tabindex="-1" class="search-choice-close" data-option-array-index="2"><span class="visually-hidden focusable">Remove selection</span></button>
juanolalla added a commit to juanolalla/chosen that referenced this issue Aug 1, 2023
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