How to fix: aria widgets missing their child roles
WCAG 2.2 success criterion 1.3.1 (level A)
Why it matters
A list, menu or tab list without the right children confuses screen readers.
How to fix
Give role="list" children with role="listitem", role="tablist" children with role="tab", and so on.
<div role="tablist"><button role="tab">Info</button></div>
Test it yourself
- Inspect elements with role="list", "menu", "tablist" or "listbox": their direct children must have the matching child role (listitem, menuitem, tab, option).
Common mistakes
- role="tablist" around plain buttons without role="tab".
- role="menu" on a navigation list whose items are ordinary links.
Check your own site
Find this and other problems on your website in 30 seconds, free.