# MultiViewCalendar Accessibility

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

The MultiViewCalendar 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/scheduling/multiviewcalendar/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.

### MultiViewCalendar Grid

The element wrapping the tables in the component should follow the requirements for the `grid` role (<https://www.w3.org/TR/wai-aria-1.2/#grid>).

| Selector                              | Attribute                                         | Usage                                                                                                                                                                           |
| ------------------------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `.k-calendar-view`                    | `role=grid`                                       | Specifies the role of the Calendar dates table.                                                                                                                                 |
|                                       | `aria-labelledby`                                 | Pointing to the `k-calendar-title` element (e.g. `March 2022 - April 2022`).                                                                                                    |
|                                       | `aria-activedescendant=.k-calendar-td.k-focus id` | Pointing to the currently active (focused) date/month/year/decade cell in the table.                                                                                            |
|                                       | `tabindex=0`                                      | Makes the grid focusable.                                                                                                                                                       |
| `.k-calendar-table`                   | `role=none`                                       | All `k-calendar-table` elements must have their role set to `none`. That is because their content must be made belonging to a single `grid` component.                          |
| `.k-calendar-thead`                   | `role=rowgroup`                                   | The `k-calendar-thead` elements must explicitly have their roles set to `rowgroup` as their semantics have been removed while setting their `<table>` elements role to `none`.  |
| `.k-calendar-tbody`                   | `role=rowgroup`                                   | The `k-calendar-tbody` elements must explicitly have their roles set to `rowgroup` as their semantics have been removed while setting their `<table>` elements role to `none`.  |
| `.k-calendar-tr`                      | `role=row`                                        | The `k-calendar-tr` elements must explicitly have their roles set to `row` as their semantics have been removed while setting their `<table>` elements role to `none`.          |
| `.k-calendar-th`                      | `role=columnheader`                               | The `k-calendar-th` elements must explicitly have their roles set to `columnheader` as their semantics have been removed while setting their `<table>` elements role to `none`. |
|                                       | `scope=col`                                       | Specifies that the header is applied to a column.                                                                                                                               |
|                                       | `aria-label`                                      | Specifies the full name of the day of the week (the column header).                                                                                                             |
| `.k-calendar-td:not(.k-out-of-range)` | `role=gridcell`                                   | The cells must explicitly have their roles set to `gridcell` as their semantics have been removed while setting their `<table>` elements role to `none`.                        |
|                                       | `aria-label ` or `title`                          | Applicable in year view - for better context contains the full name of the month. May also be applied in month view to specify the full text for a date.                        |
| `.k-calendar-td.k-selected`           | `aria-selected`                                   | Specifies whether the date is selected or not.                                                                                                                                  |
| `.k-calendar-td.k-disabled`           | `aria-disabled`                                   | When a date is not available for selection, its gridcell element must have the attribute set to `true`.                                                                         |

### Button and Link elements

| Selector                                    | Attribute     | Usage                              |
| ------------------------------------------- | ------------- | ---------------------------------- |
| `.k-calendar-nav-prev,.k-calendar-nav-next` | `tabindex=-1` | The buttons must not be focusable. |
| `.k-calendar-title`                         | `tabindex=-1` | The button must not be focusable.  |
| `.k-calendar-nav-today`                     | `tabindex=-1` | The link must not be focusable.    |

## Resources

[ARIA practices Date Picker Dialog Example](https://www.w3.org/WAI/ARIA/apg/example-index/dialog-modal/datepicker-dialog.html)

## Section 508

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

## Testing

The MultiViewCalendar 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 MultiViewCalendar 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 MultiViewCalendar component, refer to the [MultiViewCalendar Accessibility Demo](https://demos.telerik.com/aspnet-mvc/accessibility/multiviewcalendar).

## Keyboard Navigation

For details on how the MultiViewCalendar keyboard navigation works, refer to the [MultiViewCalendar Keyboard Navigation](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/scheduling/multiviewcalendar/accessibility/keyboard-navigation) article.

## See Also

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