ant-design/ant-design

Tabs extra content raises an a11y error

Offen

#49.502 geöffnet am 19.06.2024

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (54.612 Forks)batch import
Inactivehelp wantedunconfirmed⌨️ Accessibility

Repository-Metriken

Stars
 (98.031 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide