[
    {
        "h2": "Accessibility Support"
    },
    {
        "p": "Out of the box, the Telerik and Kendo UI Calendar provides extensive accessibility support and enables users with disabilities to acquire complete control over its features."
    },
    {
        "p": "The Calendar is compliant with the [Web Content Accessibility Guidelines (WCAG) 2.2 standards](https://www.w3.org/TR/WCAG22/) and [Section 508](http://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](#keyboard-navigation) for its `component` role, provides options for [managing its focus](#managing-the-focus) and is tested against the most popular [screen readers](#screen-readers)."
    },
    {
        "h3": "WAI-ARIA"
    },
    {
        "p": "This section lists the selectors, attributes, and behavior patterns supported by the component and its composite elements, if any."
    },
    {
        "h4": "Calendar Grid Element"
    },
    {
        "p": "The Calendar Grid should follow the requirements for the `grid` role (https://www.w3.org/TR/wai-aria-1.2/#grid). It is a single-tab-stop component. All the button actions available for mouse users are also available via keyboard shortcuts."
    },
    {
        "table": {
            "headers": [
                "Selector",
                "Attribute",
                "Usage"
            ],
            "rows": [
                {
                    "Selector": "`.k-calendar:not(.k-calendar-infinite):not(.k-calendar-range) .k-calendar-table`",
                    "Attribute": "`role=grid`",
                    "Usage": "Specifies the role of the Calendar dates table."
                },
                {
                    "Selector": "",
                    "Attribute": "`aria-labelledby=.k-nav-fast id`",
                    "Usage": "Pointing to the current view label (e.g. `March 2022` or `2020-2029`)."
                },
                {
                    "Selector": "",
                    "Attribute": "`aria-activedescendant=.k-calendar-td.k-focus id`",
                    "Usage": "Pointing to the currently active (focused) date/month/year/decade in the table."
                },
                {
                    "Selector": "",
                    "Attribute": "`tabindex=0`",
                    "Usage": "Makes the grid focusable."
                },
                {
                    "Selector": "`.k-calendar-thead`",
                    "Attribute": "`role=rowgroup`",
                    "Usage": "There must be `<thead>` element or an element with `role=\"rowgroup\"`. That group of rows must contain the header row of cells."
                },
                {
                    "Selector": "`.k-calendar-tbody`",
                    "Attribute": "`role=rowgroup`",
                    "Usage": "There must be `<tbody>` element or an element with `role=\"rowgroup\"`. That group of rows must contain the rows with date/month/tear/decade cells."
                },
                {
                    "Selector": "`.k-calendar-tr`",
                    "Attribute": "`role=row`",
                    "Usage": "The `thead` and the `tbody` elements must contain `<tr>` elements or elements with `role=\"row\"`."
                },
                {
                    "Selector": "`.k-content:nth-child(1) .k-calendar-th`",
                    "Attribute": "`scope=col`",
                    "Usage": "Specifies that the header is applied to a column."
                },
                {
                    "Selector": "",
                    "Attribute": "`aria-label`",
                    "Usage": "Specifies the full name of the day of the week (the column header)."
                },
                {
                    "Selector": "",
                    "Attribute": "`role=columnheader` or `nodeName=th`",
                    "Usage": "The row in the `<thead>` must contain `<th>` elements or elements with `role=\"columnheader\"`."
                },
                {
                    "Selector": "`.k-calendar-td`",
                    "Attribute": "`role=gridcell`",
                    "Usage": "The rows in the `<tbody>` must contain `<td>` elements or elements with `role=\"gridcell\"`."
                },
                {
                    "Selector": "`.k-calendar-td.k-selected`",
                    "Attribute": "`aria-selected=true`",
                    "Usage": "Specifies whether the date is selected or not."
                },
                {
                    "Selector": "`.k-calendar-td.k-disabled`",
                    "Attribute": "`aria-disabled=true`",
                    "Usage": "When a date is not available for selection, its gridcell element must have the attribute set to `true`."
                },
                {
                    "Selector": "`.k-year .k-calendar-td`",
                    "Attribute": "`aria-label`",
                    "Usage": "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."
                }
            ]
        }
    },
    {
        "h4": "Calendar Links and Buttons"
    },
    {
        "table": {
            "headers": [
                "Selector",
                "Attribute",
                "Usage"
            ],
            "rows": [
                {
                    "Selector": "`.k-nav-next,.k-nav-prev`",
                    "Attribute": "`role=button` or `nodeName=button`",
                    "Usage": "Previous / Next buttons must either be `<button>` elements or have the appropriate role."
                },
                {
                    "Selector": "",
                    "Attribute": "`aria-label` or `title`",
                    "Usage": "Previous and Next buttons must have descriptive text set as they contain only an icon (no text)."
                },
                {
                    "Selector": "",
                    "Attribute": "`tabindex=-1`",
                    "Usage": "The buttons must not be focusable."
                },
                {
                    "Selector": "`.k-nav-next.k-disabled,.k-nav-prev.k-disabled`",
                    "Attribute": "`aria-disabled=true`",
                    "Usage": "When navigation is not allowed outside the current month/year/decade the Previous and Next buttons should have this attribute set to `true`."
                },
                {
                    "Selector": "`.k-nav-fast`",
                    "Attribute": "`role=button` or `nodeName=button`",
                    "Usage": "Go to parent view button must either be a `<button>` element or must have the appropriate role."
                },
                {
                    "Selector": "",
                    "Attribute": "`aria-label` or `title`",
                    "Usage": "Go to parent view button must have descriptive text set explaining its purpose."
                },
                {
                    "Selector": "",
                    "Attribute": "`tabindex=-1`",
                    "Usage": "The buttons must not be focusable."
                },
                {
                    "Selector": "`.k-nav-fast.k-disabled`",
                    "Attribute": "`aria-disabled`",
                    "Usage": "When navigation is not allowed outside the current view the button should have this attribute set to `true`."
                },
                {
                    "Selector": "`.k-nav-today`",
                    "Attribute": "`role=link` or `nodeName=a`",
                    "Usage": "Today link must either be `<a>` element or must have the appropriate role."
                },
                {
                    "Selector": "",
                    "Attribute": "`tabindex=-1`",
                    "Usage": "The link must not be focusable."
                }
            ]
        }
    },
    {
        "h3": "Managing the Focus"
    },
    {
        "p": "The component is a single tab stop with focusable `<table>` (the element with `role=\"grid\"`). It uses `aria-activedescendant` to keep the info for the currently focused date cell."
    },
    {
        "h3": "Keyboard Shortcuts"
    },
    {
        "p": "The Calendar implements the same keyboard navigation as the **InfiniteCalendar** component."
    },
    {
        "link": {
            "title": "InfiniteCalendar  specification",
            "source": "{{infinitecalendar_kb_link}}"
        }
    },
    {
        "p": "In addition to that it also implements the following shortcuts:"
    },
    {
        "table": {
            "headers": [
                "Shortcut",
                "Behavior"
            ],
            "rows": [
                {
                    "Shortcut": "`Ctrl/Cmd(Mac) + Right Arrow`",
                    "Behavior": "Navigates to the next period."
                },
                {
                    "Shortcut": "`Ctrl/Cmd(Mac) + Left Arrow`",
                    "Behavior": "Navigates to the previous period."
                }
            ]
        }
    },
    {
        "h3": "Testing"
    },
    {
        "p": "The Calendar has been extensively tested automatically with [axe-core](https://github.com/dequelabs/axe-core) and manually with the most popular screen readers."
    },
    {
        "h3": "Screen Readers"
    },
    {
        "p": "The Calendar has been tested with the following screen readers and browsers combinations:"
    },
    {
        "table": {
            "headers": [
                "Environment",
                "Tool"
            ],
            "rows": [
                [
                    "Firefox",
                    "NVDA"
                ],
                [
                    "Chrome",
                    "JAWS"
                ],
                [
                    "Microsoft Edge",
                    "JAWS"
                ]
            ]
        }
    },
    {
        "h3": "Resources"
    },
    {
        "ul": [
            {
                "link": {
                    "source": "https://www.w3.org/WAI/ARIA/apg/example-index/dialog-modal/datepicker-dialog.html",
                    "title": "ARIA practices Date Picker Dialog Example"
                }
            },
            {
                "link": {
                    "source": "https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/examples/datepicker-dialog/#kbd_label_5",
                    "title": "ARIA Authoring Practices: Date Picker Dialog: Date Grid"
                }
            }
        ]
    }
]