Certain ARIA roles must be contained within specific parent roles

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

Certain ARIA roles must be contained within specific parent roles.

Some ARIA roles represent items that must exist within specific container roles. For example, a listitem must be within a list, a tab must be within a tablist. Wrap the element in the appropriate parent, or use native HTML elements that provide this structure (e.g., <li> inside <ul>).

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

Introduced in @accesslint/core v0.8.0