# ToolBar Accessibility

Out of the box, the Telerik UI for ASP.NET MVC ToolBar provides extensive accessibility support and enables users with disabilities to acquire complete control over its features.

The ToolBar is compliant with the [Web Content Accessibility Guidelines (WCAG) 2.2 AA](https://www.w3.org/TR/WCAG22/) standards and [Section 508](https://www.section508.gov/) requirements, follows the [Web Accessibility Initiative - Accessible Rich Internet Applications (WAI-ARIA)](https://www.w3.org/WAI/ARIA/apg/) best practices for implementing the [keyboard navigation](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/navigation/toolbar/accessibility/overview#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.

| Selector                                                              | Attribute                                                                                | Usage                                                                                                               |
| --------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `.k-toolbar`                                                          | `role=toolbar`                                                                           | The component role.                                                                                                 |
|                                                                       | `aria-label` or `aria-labelledby`                                                        | Must be supplied on each toolbar only when the application contains more than one toolbars.                         |
| `.k-toolbar .k-toolbar-overflow-button:has(.k-svg-i-more-vertical)`   | `aria-haspopup=menu`                                                                     | The value of the `aria-haspopup` attribute of the button that opens the overflow popup.                             |
|                                                                       | `aria-expanded=true/false`                                                               | The value of the `aria-expanded` attribute of the button that opens the overflow popup.                             |
|                                                                       | `aria-controls=.k-toolbar-popup .k-menu-group id`                                        | Indicates the connection between the toggle button and the content it controls.                                     |
|                                                                       | `aria-label` or `title`                                                                  | The button that opens the overflow popup must have a descriptive text set, as it contains only an icon (no text).   |
| `.k-toolbar-popup .k-menu-group`                                      | `role=menu`                                                                              | The role of the tools wrapper in the overflow section.                                                              |
|                                                                       | `aria-labelledby=.k-toolbar .k-toolbar-overflow-button:has(.k-svg-i-more-vertical) id`   | Associates the title of the menu toggle button.                                                                     |
| `.k-toolbar .k-toolbar-overflow-button:has(.k-svg-i-more-horizontal)` | `aria-expanded=true/false`                                                               | The value of the `aria-expanded` attribute of the button that opens the overflow section.                           |
|                                                                       | `aria-label` or `title`                                                                  | The button that opens the overflow section must have a descriptive text set, as it contains only an icon (no text). |
|                                                                       | `aria-controls=.k-toolbar-popup .k-toolbar-items-list id`                                | Indicates the connection between the toggle button and the content it controls.                                     |
| `.k-toolbar-popup .k-toolbar-items-list`                              | `role=toolbar`                                                                           | The role of the tools wrapper in the overflow section.                                                              |
|                                                                       | `aria-labelledby=.k-toolbar .k-toolbar-overflow-button:has(.k-svg-i-more-horizontal) id` | Associates the title of the section toggle button.                                                                  |

## Resources

[WAI-ARIA Specification for the ToolBar](https://www.w3.org/TR/wai-aria-1.2/#toolbar)

## Section 508

The ToolBar is fully compliant with the [Section 508 requirements](http://www.section508.gov/).

## Testing

The ToolBar has been extensively tested automatically with [axe-core](https://github.com/dequelabs/axe-core) and manually with the most popular screen readers.

> To report any accessibility issues, contact the team through the [Telerik Support System](https://www.telerik.com/account/support-center).

### Screen Readers

The ToolBar has been tested with the following screen readers and browsers combinations:

| Environment    | Tool |
| -------------- | ---- |
| Firefox        | NVDA |
| Chrome         | JAWS |
| Microsoft Edge | JAWS |

### Test Example

To test the ToolBar component, refer to the [ToolBar Accessibility Demo](https://demos.telerik.com/aspnet-mvc/accessibility/toolbar).

## Keyboard Navigation

For details on how the ToolBar keyboard navigation works, refer to the [ToolBar Keyboard Navigation Demo](https://demos.telerik.com/aspnet-mvc/toolbar/keyboard-navigation).

## See Also

* [Keyboard Navigation by the ToolBar for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/toolbar/keyboard-navigation)
* [Accessibility in Telerik UI for ASP.NET MVC](https://www.telerik.com/aspnet-mvc/documentation/accessibility/overview)
