Accessibility in Blazor MultiSelect Dropdown Component
4 Nov 20256 minutes to read
The Blazor MultiSelect Dropdown component is designed in accordance with WAI-ARIA specifications and applies appropriate roles, states, and properties along with full keyboard support. It offers complete keyboard interaction and ARIA support to ensure usability for people who use assistive technologies or rely on keyboard navigation.
The Blazor MultiSelect Dropdown 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 MultiSelect Dropdown 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 | ![]() |
| 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 Blazor MultiSelect Dropdown component follows the Listbox role, and each list item has an option role. The following ARIA attributes denotes the MultiSelect state:
| Properties | Functionalities |
|---|---|
| aria-haspopup | Indicates that the input has a popup listbox. |
| aria-expanded | Indicates whether the popup list is expanded. |
| aria-selected | Indicates the selected option. |
| aria-readonly | Indicates the read-only state of the MultiSelect element. |
| aria-disabled | Indicates whether the MultiSelect component is disabled. |
| aria-activedescendant | Holds the ID of the active list item to expose the focused descendant. |
| aria-owns | Contains the ID of the popup list to reference it as a child when it is not a DOM descendant. |
Keyboard interaction
Use the following key shortcuts to access the Blazor MultiSelect Dropdown without interruptions:
| Windows | Mac | Actions |
|---|---|---|
| ↓ | ↓ | Sets focus to the first item when no item is selected; otherwise moves focus to the next item. |
| ↑ | ↑ | Moves focus to the previous item. |
| Page Down | Page Down | Scrolls down one page and sets focus to the first visible item when the popup is open. |
| Page Up | Page Up | Scrolls up one page and sets focus to the first visible item when the popup is open. |
| Enter | Enter | Selects the focused item; when closed, opens the popup list. |
| Tab | Tab | Moves focus to the next element in the tab order when the popup is closed; otherwise closes the popup and retains focus on the component. |
| Shift + Tab | ⇧ + Tab | Moves focus to the previous element in the tab order when the popup is closed; otherwise closes the popup and retains focus on the component. |
| Alt + ↓ | ⌥ + ↓ | Opens the popup list. |
| Alt + ↑ | ⌥ + ↑ | Closes the popup list. |
| Escape | Escape | Closes the popup list when open; the current selection remains unchanged. |
| Home | Home | Sets focus to the first item. |
| End | End | Sets focus to the last item. |
Ensuring accessibility
The Blazor MultiSelect Dropdown component’s accessibility levels are validated using the axe-core tool during automated testing.
The accessibility compliance of the MultiSelect Dropdown component is shown in the following sample. Open the sample in a new window to evaluate the accessibility of the MultiSelect Dropdown component with accessibility tools.