fix: a11y: add aria-posinset
for virtualized
#4660
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For
react-virtualized
lists.From MDN:
TODO:
See TODO comment.
Would applying
role="none"
to<li>
s androle="listitem"
to buttons work? I tried it, and the announcer starts announcing "three of eleven" as I focus between the items. But I am not sure if this is the right way. Doesn't this take away the "button" role from the buttons then?There is this example of a "Menu Button Pattern" where they set
role="none"
on<li>
s, so this sounds close to truth.Another idea is to make these list items "tabs", as we do for "gallery" tabs.
I guess let's wait for the audit results.
<li
s.