Skip to content

fix: omit aria-level on non-treegrid table rows - #11084

Open
reyunj wants to merge 1 commit into
adobe:mainfrom
reyunj:fix/table-aria-level-non-treegrid
Open

reyunj wants to merge 1 commit into
adobe:mainfrom
reyunj:fix/table-aria-level-non-treegrid

Conversation

@reyunj

@reyunj reyunj commented Dec 4, 2026

Copy link
Copy Markdown

Description

Fixes an accessibility issue where Table loading-more and drop-indicator rows receive aria-level even when the Table is not configured as a treegrid.

Changes

  • Conditionally render aria-level on drop-indicator rows only when state.treeColumn is set.
  • Apply the same condition to loading-more rows.
  • Preserve data-level for styling.
  • Add regression assertions covering standard Table drop-indicator and loading-more rows.

Testing

  • yarn.cmd jest packages/react-aria-components/test/Table.test.js --runInBand
  • Result: 186 passed, 1 skipped.

Resolves #11080

@reyunj

reyunj commented Dec 4, 2026

Copy link
Copy Markdown
Author

Hi maintainers! The CI workflows appear to be awaiting approval because this PR comes from a fork. Could someone please approve the pending workflows so the checks can run? Thank you!

@reidbarber

Copy link
Copy Markdown
Member

The change looks good. You'll need to sign the CLA, then close and re-open the PR for the build to pass.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Table: loading-more and drop indicator rows set aria-level outside a treegrid

3 participants