Blazor ListBox Accessibility
Out of the box, the Telerik UI for Blazor ListBox provides extensive accessibility support and enables users with disabilities to acquire complete control over its features.
The ListBox is compliant with the Web Content Accessibility Guidelines (WCAG) 2.2 AA standards and Section 508 requirements, follows the Web Accessibility Initiative - Accessible Rich Internet Applications (WAI-ARIA) best practices for implementing the keyboard navigation for its component
role, provides options for managing its focus and is tested against the most popular screen readers.
WAI-ARIA
This section lists the selectors, attributes, and behavior patterns supported by the component and its composite elements, if any.
ListBox List
Selector | Attribute | Usage |
---|---|---|
.k-list-ul | role=listbox | Specifies the role of the ListBox ul element. |
aria-label or aria-labelledby | Adds a label to the ul element of the ListBox. | |
aria-multiselectable=true | Signifies that the ListBox allows multiple selection. Present only when the multiple selection of the component is enabled. | |
.k-list-item | role=option | Specifies the role of the ListBox item element. |
aria-selected=true/false | Set to true if the item is selected. | |
tabindex=0 | The focused listbox item should have tabindex 0, while all others -1. |
ListBox Toolbar
The ListBox toolbar follows the specification of the ToolBar component.
ToolBar accessibility specification
Selector | Attribute | Usage |
---|---|---|
.k-listbox-actions | role=toolbar | The toolbar is a collection of command buttons. |
aria-label | Clarifies the purpose of the toolbar. | |
aria-controls=.k-list-ul id | Points to the ids of the role=listbox elements that are being controlled by the ToolBar. | |
.k-listbox-actions .k-button | aria-label or title | All buttons in the ToolBar must have lables, so that their purpose is clear. |
Resources
WAI-ARIA Authoring Practices: ListBox Pattern
Section 508
The ListBox is fully compliant with the Section 508 requirements.
Testing
The ListBox has been extensively tested automatically with axe-core and manually with the most popular screen readers.
To report any accessibility issues, contact the team through the Telerik Support System.
Screen Readers
The ListBox has been tested with the following screen readers and browsers combinations:
Environment | Tool |
---|---|
Firefox | NVDA |
Chrome | JAWS |
Microsoft Edge | JAWS |
Keyboard Navigation
For details on how the ListBox keyboard navigation works, refer to the Blazor ListBox Accessibility and Keyboard Navigation Demo.