Skip to content

a11y: focus sink element needs aria-* or role in treegrid mode #3957

Closed

Description

@fastfrwrd

Describe the bug

When using DataGrid with the treegrid role, the focus sink element is violating https://dequeuniversity.com/rules/axe/4.11/aria-hidden-focus.

Image

To Reproduce

  1. Open the "Grouped rows" demo on the website
  2. Run Lighthouse or Axe

This is only an issue w/ treegrid, since when that role is used, stricter expectations are enforced on the tabbable contents of the grid.

Expected behavior

Clean a11y audit

Link to Minimal Reproducible Example

n/a (see reproduce steps to repro locally)

Environment

  • react-data-grid version: 7.0.0-beta.59
  • react/react-dom version: 19.x

Additional context

Activity

  1. fastfrwrd commented on Feb 13, 2026

    @fastfrwrd
    Author

    I looked into fixing this with an aria-hidden, but I believe that won't work if tabindex="0".

  2. added theissue type on Feb 19, 2026
  3. added 2 commits that reference this issue on Feb 19, 2026
    386a805
    90a8fe8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions