Certain ARIA roles require specific child roles to be present

adaptable/aria-required-children · WCAG 1.3.1 · Level A

Certain ARIA roles require specific child roles to be present.

Some ARIA roles represent containers that must contain specific child roles for proper semantics. For example, a list must contain listitems, a menu must contain menuitems. Add the required child elements with appropriate roles, or use native HTML elements that provide these semantics implicitly (e.g., <ul> with <li>).

Scan a page or repo for issues like this · All rules

Introduced in @accesslint/core v0.8.0