dequelabs / dequelabs/axe-core

False positive for "Certain ARIA roles must contain particular children"

Open
#4,419 6 comments 1 reaction 0 assignees View on GitHub
info needed
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

### Product

axe-core

### Product Version

Extension: v4.78.1 axe-core: v4.8.4

### Latest Version

- [X] I have tested the issue with the latest version of the product

### Issue Description

#### Expectation
Valid use of presentation within role="grid" should not be flagged as an invalid child

#### Actual
role="presentation" is flagged as an invalid child

#### How to Reproduce

1. Go to MUI X documentation page for Data Grid https://mui.com/x/react-data-grid/column-dimensions/#column-width
2. Run the chrome plugin scan (also fails in jest-axe and storybook plugin)
3. See the error regarding "Certain ARIA roles must container particular children"

#### Additional context
There is another message about aria-busy but can't find any issues there either. Am I missing something or is this a bug?

I have traced all the role=presentation and none of them have aria-hidden so it does not seem to be the case that they are ignored.

Screenshot 2024-04-19 at 10 18 53 AM

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.