Repository navigation
Fix accessibility regression from react-virtualized 9.22.6 upgrade - #22228
Merged
tidy-dev merged 1 commit intoJun 1, 2026
Merged
Conversation
react-virtualized 9.22.6 introduced automatic role="gridcell" injection on cells that don't have an explicit role prop (upstream PR #1624). Since our ListRow components were not passed an explicit role prop in listbox mode, the injected "gridcell" role overrode the intended "option" role, producing an invalid ARIA tree (listbox > gridcell) that NVDA cannot navigate. Fix by always passing the correct role explicitly to ListRow so that react-virtualized's defaultCellRangeRenderer skips the injection. Fixes #22219, fixes #22203 Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Restores correct ARIA semantics for virtualized listbox-style lists after the react-virtualized 9.22.6 change that auto-injects role="gridcell" when a cell has no explicit role, which broke NVDA navigation due to an invalid listbox > gridcell structure.
Changes:
- Explicitly passes
role="option"toListRowinSectionListso react-virtualized does not injectgridcell. - Updates
Listto always pass an explicitListRowrole:listitemwhenrole="list", otherwiseoption.
Show a summary per file
| File | Description |
|---|---|
| app/src/ui/lib/list/section-list.tsx | Ensures sectioned virtualized listbox rows keep role="option" to prevent upstream role injection. |
| app/src/ui/lib/list/list.tsx | Ensures single-section virtualized lists set explicit row roles (listitem vs option) consistent with the list container role. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 0
niik
approved these changes
Jun 1, 2026
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #22219, fixes #22203
Description
react-virtualized 9.22.6 introduced automatic role="gridcell" injection on cells that don't have an explicit role prop (upstream PR #1624). Since our ListRow components were not passed an explicit role prop in listbox mode, the injected "gridcell" role overrode the intended "option" role, producing an invalid ARIA tree (listbox > gridcell) that NVDA cannot navigate.
Fix by always passing the correct role explicitly to ListRow so that react-virtualized's defaultCellRangeRenderer skips the injection.
Screenshots
Release notes
Notes: [Fixed] Restore screen reader accessibility for lists (branches, changed files) broken by react-virtualized upgrade