dequelabs / dequelabs/axe-core
False positive for "Certain ARIA roles must contain particular children"
- 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.
Contributor guide
Assessment
This issue has not been assessed yet.