-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Dropdown needs accessibility improvements #1147
Comments
Also, I have seen this component used in other ways that the component may not have anticipated:
You may want to provide similar, but different, components for those use cases. |
We will be having the prototype mentioned here #1589 (comment) done this week and the remaining work within the next couple of sprints. |
We've marked this issue as stale because there hasn't been any activity for a couple of weeks. If there's no further activity on this issue in the next three days then we'll close it. Thanks for your contributions. |
Circling back on this and confirming certain screen reader issues still exist post v10 Tested using NVDA on Windows 10 in Firefox latest
|
@joshblack |
@dakahn is this issue for React or Vanilla? We will be working on dropdown in the next week or so and would prefer to make updates directly to Carbon instead of overwriting in our system. I could spare some time and pick this up if so. |
@dakahn we'll be working on Vanilla dropdown in the next couple of sprints if you want to assign this to me I can work on it. |
Related issue: #2600 |
I'm planning on breaking this issue up in to multiple PRs just to keep the size of the changes easier for reviewing. The first PR will have HTML/styles (with minor JS changes just to keep it "working") and the second PR will contain more robust JS changes for complete a11y updates. |
Thanks for the update, @elizabethsjudd! |
I combined the two PRs because the JavaScript wasn't as big of updates as anticipated. This PR should close this issue as the first 2 items were already fixed so I focused on the screen reader experience updates. |
The Dropdown component (I only tried the first one on the code page) has several accessibility problems:
<label>
(which doesn't work here) or hook up a span with aria-labelledby. Fixing this "disappearing label" problem may involve a slight redesign. :)<ul>
and the 2<li>
into divs (or give them role="presentation").Some aria may be needed to make this more understandable (maybe aria-haspopup="listbox" and aria-expanded="true/false"). Please read the "menu button" pattern and the "combobox" pattern in the ARIA Authoring Practices Guide to see what makes the most sense. They are both similar to what you are trying to achieve, I think.
The text was updated successfully, but these errors were encountered: