24 Jan 20245 minutes to read
The accessibility compliance for the TreeView component is outlined below.
|WCAG 2.2 Support
|Section 508 Support
|Screen Reader Support
|Mobile Device Support
|Keyboard Navigation Support
|Accessibility Checker Validation
|Axe-core Accessibility Validation
The TreeView component followed the WAI-ARIA patterns to meet the accessibility. The following ARIA attributes are used in the TreeView component:
|All tree nodes are contained within the element.
|Specifies the role of each tree node in a selectable TreeView and its containment within the tree.
|Specifies the role of each parent node container.
|Indicates checkbox control along with treeitem element.
|Indicates whether the TreeView enables multiple selection or not.
|Indicates whether the parent node has expanded or not.
|Indicates the selected node.
|Indicates the selected state on drag-and-drop of node.
|Indicates the level of node in TreeView.
|Indicates the current checked state of TreeView checkbox.
|Indicates the contextual message for the TreeView checkbox.
|Identifies the currently active element when focusing on the TreeView.
|Indicates element is perceivable but disabled.
The TreeView component followed the keyboard interaction guideline, making it easy for people who use assistive technologies (AT) and those who completely rely on keyboard navigation. The following keyboard shortcuts are supported by the TreeView component.
|Goes to the previous node.
|Goes to the next node.
|Expands the current node.
|Collapses the current node.
|Goes to the first node.
|Goes to the last node.
|Edits the focused node.
|Focuses out the edit state without saving the edited text.
|Selects the focused node/saves the edited text.
|Checks the current node.
|Ctrl + A
|Selects all nodes.
The accessibility compliance of the TreeView component is shown in the following sample. Open the sample in a new window to evaluate the accessibility of the TreeView component with accessibility tools.