Accessibility in Blazor Dropdown Tree Component

10 Jun 20245 minutes to read

The Blazor Dropdown Tree component has been designed, keeping in mind the WAI-ARIA specifications, and applied the WAI-ARIA roles, states, and properties along with keyboard support. This component is characterized by complete keyboard interaction support and ARIA accessibility support that makes it easy for people who use assistive technologies (AT) or those who completely rely on keyboard navigation.

The Blazor DropDown Tree component followed 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 Blazor Dropdown Tree component is outlined below.

Accessibility Criteria Compatibility
WCAG 2.2 Support Partial
Section 508 Support Partial
Screen Reader Support Yes
Right-To-Left Support Yes
Color Contrast Yes
Mobile Device Support Yes
Keyboard Navigation Support Yes
Axe-core Accessibility Validation Yes
Yes - All features of the component meet the requirement.
Partial - Some features of the component do not meet the requirement.
No - The component does not meet the requirement.

WAI-ARIA attributes

The Blazor Dropdown Tree component followed the WAI-ARIA patterns to meet the accessibility. The following ARIA attributes are used in the Dropdown Tree component:

Attributes Purpose
aria-haspopup Indicates the availability and type of interactive popup element
aria-expanded Indicates whether the popup list has expanded or not.
aria-selected Indicates the selected tree item.
aria-disabled Indicates whether the Dropdown Tree component is in a disabled state or not.
aria-controls This attribute contains the ID of the popup list to indicate this element is controlled by the popup list element

Keyboard interaction

You can use the following key shortcuts to access the Dropdown Tree without interruptions:

Keyboard shortcuts Actions
Input Navigation  
Alt + Down arrow Opens the popup and move focus to TreeView.
Alt + Up arrow Closes the popup.
Tab Focuses on the next TabIndex element on the page when the popup is closed. Otherwise, closes the popup list and remains the focus of the component.
Shift + tab Focuses on the previous TabIndex element on the page when the popup is closed. Otherwise, closes the popup list and remains the focus of the component.
Popup Navigation  
Esc(Escape) Closes the popup when it is in an open state.
Arrow Up Goes to the previous item in the popup.
Arrow Down Goes to the next item in the popup.
Arrow Right Expands the current item.
Arrow Left Collapses the current item in the popup.
Home Goes to the first item in the popup.
End Goes to the last item in the popup.
Enter Selects the focused item in the popup.
Space Checks the current item in the popup.
Over All Checkbox  
Space Checks all the items in popup

Ensuring accessibility

The Blazor Dropdown Tree component’s accessibility levels are ensured through an axe-core software tool during automated testing.

The accessibility compliance of the Dropdown Tree component is shown in the following sample. Open the sample in a new window to evaluate the accessibility of the Dropdown Tree component with accessibility tools.

See also