Accessibility in ASP.NET MVC Toolbar
26 Aug 20265 minutes to read
The Toolbar component has been designed, keeping in mind the WAI-ARIA specifications, and applying the WAI-ARIA roles, states, and properties along with keyboard support for people who use assistive devices. WAI-ARIA accessibility support is achieved through attributes like aria-label and aria-orientation. These provide information about elements in a document for assistive technology. The component implements keyboard navigation support by following the WAI-ARIA practices and has been tested in major screen readers.
The accessibility compliance for the Toolbar component is outlined below.
| Accessibility Criteria | Compatibility |
|---|---|
| WCAG 2.2 Support | AA |
| Section 508 Support | ![]() |
| Screen Reader Support | ![]() |
| Right-To-Left Support | ![]() |
| Color Contrast | ![]() |
| Mobile Device Support | ![]() |
| Keyboard Navigation Support | ![]() |
| Accessibility Checker 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.ARIA attributes
Toolbar element is assigned with the role of toolbar.
| Property | Functionalities |
|---|---|
| role=”toolbar” | Attribute is set to the Toolbar element to describe the actual role of the element. |
| aria-orientation | Attribute is set to the Toolbar element to indicate the Toolbar orientation. Default value is horizontal. |
| aria-label | Attribute is set to Toolbar element to describe the purpose of the set of toolbar. |
| aria-expanded | Attribute is set to the Toolbar Popup element to indicate the expanded state of the popup. |
| aria-haspopup | Attribute is set to the popup element to indicate the popup mode of the Toolbar. Default value is false. When popup mode is enabled, attribute value should be changed to true. |
| aria-disabled | Attribute set to the Toolbar element to indicate the disabled state of the Toolbar. |
Keyboard interaction
Keyboard navigation is enabled by default and requires no additional setup or configuration. Possible keys are:
| Key | Description |
|---|---|
| Left | Focuses the previous element. |
| Right | Focuses the next element. |
| Enter | When focused on a toolbar command, activates the toolbar command. When a popup drop-down icon is focused, the popup opens. |
| Esc(Escape) | Closes popup. |
| Down | Focuses the next popup element. |
| Up | Focuses the previous popup element. |
| Home | Moves focus to the first toolbar item. |
| End | Moves focus to the last toolbar item. |
| Tab | Moves focus through the interactive elements. |
| Shift + Tab | Moves focus through the interactive elements in reverse order. |
Ensuring accessibility
The Toolbar component’s accessibility levels are ensured through an accessibility-checker and axe-core software tools during automated testing.
The accessibility compliance of the Toolbar component is shown in the following sample. Open the sample in a new window to evaluate the accessibility of the Toolbar component with accessibility tools.