ant-design/ant-design

Tabs extra content raises an a11y error

Open

#49.502 aperta il 19 giu 2024

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)TypeScript (54.612 fork)batch import
Inactivehelp wantedunconfirmed⌨️ Accessibility

Metriche repository

Star
 (98.031 star)
Metriche merge PR
 (Merge medio 3g 4h) (248 PR mergiate in 30 g)

Descrizione

Reproduction link

Edit on StackBlitz

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

Guida contributor