Certain ARIA roles must be contained by particular parent roles in order for the necessary accessibility functions to be performed.
Elements that contain ARIA role values but are missing the required parent element role values will not allow assistive technology to function as needed.
When conveying context to the user of assistive technology in the form of a hierarchy, and the hierarchy is not the same as the code structure or DOM tree, relationship information cannot be provided without the use of ARIA role parent elements.
Ensure that all ARIA roles are contained by their required parent element, if any.
The relationship properties available in ARIA are the following:
For more examples, visit the W3C’s GitHub’s ATC Rules library.