Accessibility in React Dropdown Tree
24 Sep 20266 minutes to read
The React Dropdown Tree component follows the accessibility guidelines and standards, including ADA, Section 508, WCAG 2.2 standards, and WCAG roles that are commonly used to evaluate accessibility.
The accessibility compliance for the React Dropdown Tree component is outlined below.
| Accessibility Criteria | Compatibility |
|---|---|
| WCAG 2.2 Support | ![]() |
| Section 508 Support | ![]() |
| Screen Reader Support | ![]() |
| Right-To-Left Support | ![]() |
| Color Contrast | ![]() |
| Mobile Device Support | ![]() |
| Keyboard Navigation Support | ![]() |
| Accessibility Checker Validation | ![]() |
| Axe-core Accessibility Validation | ![]() |
- All features of the component meet the requirement.
- Some features of the component do not meet the requirement.
- The component does not meet the requirement.WAI-ARIA attributes
The React Dropdown Tree component follows the WAI-ARIA patterns to meet accessibility requirements. The following ARIA attributes are used in the React Dropdown Tree component:
| Attributes | Purpose |
|---|---|
aria-disabled |
Indicates the element is perceivable but disabled. |
aria-owns |
Contains the ID of the popup list to indicate the popup is a child of the input. |
aria-haspopup |
Indicates whether the React Dropdown Tree input element has a popup list or not. |
aria-expanded |
Indicates the state of the popup list for React Dropdown Tree and the parent node’s expansion status for TreeView. |
aria-activedescendant |
Contains the ID of the currently active descendant element within the widget. |
aria-labelledby |
This attribute points to the element(s) labeling the element it’s applied to. |
aria-describedby |
This attribute points to the element(s) describing the one it’s set on. |
role=tree |
All tree nodes are contained within the element. |
role=treeitem |
Specifies the role of each tree node in a selectable TreeView and its containment within the tree. |
role=group |
Specifies the role of each parent node container in the TreeView. |
role=checkbox |
Indicates checkbox control along with treeitem element. |
aria-multiselectable |
Indicates whether the TreeView enables multiple selection or not. |
aria-selected |
Indicates the selected node. |
aria-level |
Indicates the level of node in TreeView. |
aria-checked |
Indicates the current checked state of TreeView checkbox. |
aria-label |
Indicates the contextual message for the TreeView checkbox and React Dropdown Tree. |
Keyboard interaction
The React Dropdown Tree component follows the keyboard interaction guidelines, making it accessible for users who rely on assistive technologies and keyboard navigation. The following keyboard shortcuts are supported by the React Dropdown Tree component.
| Interaction Keys | Description |
|---|---|
| Alt + Down | Opens the popup. |
| Alt + Up | Closes the popup. |
| Esc (Escape) | Closes the popup when it is in an open state. |
| Arrow Up | Moves focus to the previous item in the popup. |
| Arrow Down | Moves focus to the next item in the popup. |
| Arrow Right | Expands the current item in the popup. |
| Arrow Left | Collapses the current item in the popup. |
| Home | Moves focus to the first item in the popup. |
| End | Moves focus to the last item in the popup. |
| Enter | Selects the focused item in the popup. |
| Space | Toggles checkbox state when checkboxes are enabled; otherwise selects the focused item. |
Ensuring accessibility
The accessibility compliance of the React Dropdown Tree component is verified using accessibility-checker and axe-core software tools during automated testing.
The accessibility compliance of the React Dropdown Tree component is demonstrated in the following sample. Open the sample in a new window to evaluate the accessibility of the React Dropdown Tree component with accessibility tools.