Accessibility in Blazor Split Button
27 Aug 20264 minutes to read
The Blazor Split Button component follows 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 Split Button component is outlined below.
| Accessibility Criteria | Compatibility |
|---|---|
| WCAG 2.2 Support | AA |
| Section 508 Support | ![]() |
| Screen Reader Support | ![]() |
| Right-To-Left Support | Not Applicable |
| 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 Split Button component applies WAI-ARIA patterns to meet accessibility requirements. The following ARIA attributes are used in the Blazor Split Button component:
| Attributes | Purpose |
|---|---|
role |
Identifies the Blazor Split Button as a button, the Blazor Split Button popup as a menu, and popup action items as menuitem. |
aria-haspopup |
Indicates that the button opens an interactive Blazor Split Button popup (menu). |
aria-expanded |
Reflects whether the Blazor Split Button popup is currently expanded or collapsed. |
aria-owns |
Associates elements to define a parent/child relationship when it cannot be represented in the DOM hierarchy. |
aria-disabled |
Indicates that the element is perceivable but disabled and not operable. |
Keyboard interaction
The Blazor Split Button component follows keyboard interaction guidelines, making it usable for people who rely on assistive technologies (AT) and keyboard navigation. The following keyboard shortcuts are supported:
| Windows | Mac | Actions |
|---|---|---|
| Esc | Esc | Closes the opened popup. |
| Enter | Enter | Opens the popup, or activates the highlighted item and closes the popup. |
| Space | Space | Opens the popup. |
| ↑ | ↑ | Navigates up to the previous action item. |
| ↓ | ↓ | Navigates down to the next action item. |
| Alt + ↑ | ⌥ + ↑ | Closes the popup. |
| Alt + ↓ | ⌥ + ↓ | Opens the popup. |
Ensuring accessibility
The Blazor Split Button component’s accessibility is validated using axe-core with Playwright tests.
The accessibility compliance of the Blazor Split Button component is shown in the following sample. Open the sample in a new window to evaluate the accessibility of the Blazor Split Button component with accessibility tools.