ant-design/ant-design
Ver no GitHubTabs extra content raises an a11y error
Open
#49.502 aberto em 19 de jun. de 2024
Inactivehelp wantedunconfirmed⌨️ Accessibility
Métricas do repositório
- Stars
- (98.031 stars)
- Métricas de merge de PR
- (Mesclagem média 3d 4h) (248 fundiu PRs em 30d)
Description
Reproduction link
Steps to reproduce
Run Lighthouse or any other a11y tool inside your browser
What is expected?
No a11y errors
What is actually happening?
It raises an ARIA error: "Elements with an ARIA [role] that require children to contain a specific [role] are missing some or all of those required children."
The error is caused by the tabs' extra content
Same for the Remove and Add Tab buttons: https://ant.design/~demos/tabs-demo-editable-card
| Environment | Info |
|---|---|
| antd | 5.18.3 |
| React | 18.3.1 |
| System | N/A |
| Browser | Edge |