Suggestion
Ensure ARIA roles, states, and properties are valid. Many ARIA attributes can only be used on certain elements. Some can only be used in combination with other attributes. Additionally, if an attribute references an ID, that ID must be present in the page.
This seems like an invalid issue due to testing, closing per internal discussions on the component's role and state. We can reopen if others identify an issue.
Violation:
Ensure ARIA roles, states, and properties are valid
WCAG Reference:
Severity:
5
Media Type:
ARIA
Areas for Remediation:
Title: Tree and Tree Item - Ensure ARIA roles, states, and properties are valid - (2036570419)
Module: Tree and Tree Item Issue There are elements with invalid ARIA role treeitem. Examples include:
Child 1
Child 2
Child 3
Grandchild 1
Grandchild 2, etc.
User Impact Assistive technologies may be unable to parse this content.
Code Reference
Suggestion Ensure ARIA roles, states, and properties are valid. Many ARIA attributes can only be used on certain elements. Some can only be used in combination with other attributes. Additionally, if an attribute references an ID, that ID must be present in the page.
To detect many of these errors automatically, use the Nu Html Checker: https://validator.w3.org/nu/
Compliant Code Example
Additional Resources: