Skip to content

Fix accessibility regression from react-virtualized 9.22.6 upgrade - #22228

Merged
tidy-dev merged 1 commit into
developmentfrom
tidy-dev/fix-react-virtualized-aria-role-injectio
Jun 1, 2026
Merged

tidy-dev merged 1 commit into
developmentfrom
tidy-dev/fix-react-virtualized-aria-role-injectio

Conversation

@tidy-dev

@tidy-dev tidy-dev commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

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

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]>
Copilot AI review requested due to automatic review settings June 1, 2026 15:52
@tidy-dev
tidy-dev requested a review from a team as a code owner June 1, 2026 15:52
@tidy-dev
tidy-dev requested review from niik and sergiou87 June 1, 2026 15:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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" to ListRow in SectionList so react-virtualized does not inject gridcell.
  • Updates List to always pass an explicit ListRow role: listitem when role="list", otherwise option.
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

@tidy-dev
tidy-dev enabled auto-merge June 1, 2026 15:58
@tidy-dev
tidy-dev merged commit a22c278 into development Jun 1, 2026
18 checks passed
@tidy-dev
tidy-dev deleted the tidy-dev/fix-react-virtualized-aria-role-injectio branch June 1, 2026 16:07
@niik niik mentioned this pull request Jun 1, 2026
3 tasks done
@chiyratnxathsni-ctrl

This comment has been minimized.

1 similar comment
@chiyratnxathsni-ctrl

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants