[
    {
        "h2": "Accessibility Support"
    },
    {
        "p": "Out of the box, the Telerik and Kendo UI Menu provides extensive accessibility support and enables users with disabilities to acquire complete control over its features."
    },
    {
        "p": "The Menu 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."
    },
    {
        "table": {
            "headers": [
                "Selector",
                "Attribute",
                "Usage"
            ],
            "rows": [
                {
                    "Selector": "`.k-menu:not(.k-context-menu)`",
                    "Attribute": "`role=menubar`",
                    "Usage": "Announces the Menu menubar role"
                },
                {
                    "Selector": "`.k-menu.k-menu-vertical`",
                    "Attribute": "`aria-orientation=vertical`",
                    "Usage": "Announces the Menu orientation when vertical."
                },
                {
                    "Selector": "`.k-menu-item`",
                    "Attribute": "`role=menuitem`",
                    "Usage": "Announces the Menu item role."
                },
                {
                    "Selector": "",
                    "Attribute": "`tabindex=0/-1`",
                    "Usage": "The focused item has tabindex '0', the rest - '-1'"
                },
                {
                    "Selector": "`.k-menu-item[aria-expanded]`",
                    "Attribute": "`aria-haspopup=true`",
                    "Usage": "Indicates that there is a popup, associated with the item. Applicable to expandable items only."
                },
                {
                    "Selector": "`.k-menu-item[aria-haspopup]`",
                    "Attribute": "`aria-controls=ul.k-menu-group id`",
                    "Usage": "Indicates that there is a popup, associated with the item. Applicable to expandable items only."
                },
                {
                    "Selector": "`.k-menu-item[aria-haspopup]`",
                    "Attribute": "`aria-expanded=true/false`",
                    "Usage": "Indicates whether the item is expanded."
                },
                {
                    "Selector": "`.k-menu-item.k-disabled`",
                    "Attribute": "`aria-disabled=true`",
                    "Usage": "Informs assistive technologies that a Menu item is disabled."
                },
                {
                    "Selector": "`.k-menu-expand-arrow`",
                    "Attribute": "`aria-hidden=true`",
                    "Usage": "The Menu item expand arrow elements are hidden from the assistive technologies."
                },
                {
                    "Selector": "`.k-menu-popup .k-menu-group`",
                    "Attribute": "`role=menu`",
                    "Usage": "The role of the nested (not root-level) menu displayed in a popup."
                },
                {
                    "Selector": "",
                    "Attribute": "`id`",
                    "Usage": "Each nested menu has a deterministic id attribute that is linked to the aria-controls attribute ot its parent."
                }
            ]
        }
    },
    {
        "h3": "Managing the Focus"
    },
    {
        "p": "Roving tab index components strategy implemented. Meaning that only one node has tabindex in the menu. Interaction on a `menuitem` should focus it."
    },
    {
        "h3": "Keyboard Shortcuts"
    },
    {
        "h4": "Actions applied to the Horizontal Menu:"
    },
    {
        "table": {
            "headers": [
                "Shortcut",
                "Behavior"
            ],
            "rows": [
                {
                    "Shortcut": "`Up Arrow`",
                    "Behavior": "<ul><li>(For root items) Opens the item and focuses the last child.</li> <li>(For child items) Focuses the previous item.</li></ul>"
                },
                {
                    "Shortcut": "`Down Arrow`",
                    "Behavior": "<ul><li>(For root items) Opens the item and focuses the first child.</li> <li>(For child items) Focuses the next item.</li></ul>"
                },
                {
                    "Shortcut": "`Left Arrow`",
                    "Behavior": "<ul><li>(For root items) Focuses the previous item.</li> <li>(For child items) For direct children of a root item, focuses and opens the previous root item. Otherwise, closes and focuses the parent.</li></ul>"
                },
                {
                    "Shortcut": "`Right Arrow`",
                    "Behavior": "<ul><li>(For root items) Focuses the next item.</li> <li>(For child items) If the item has children, opens the item and focuses the first child. Otherwise, focuses and opens the next root item.</li></ul>"
                },
                {
                    "Shortcut": "`Home`",
                    "Behavior": "Focuses the first item."
                },
                {
                    "Shortcut": "`End`",
                    "Behavior": "Focuses the last item."
                },
                {
                    "Shortcut": "`Enter`",
                    "Behavior": "Selects the focused item. If the item has children, opens the item and focuses the first child. If the item does not have children and has a URL, navigates to the specified URL."
                },
                {
                    "Shortcut": "`Space`",
                    "Behavior": "Selects the focused item. If the item has children, opens the item and focuses the first child. If the item does not have children and has a URL, navigates to the specified URL."
                },
                {
                    "Shortcut": "`Escape`",
                    "Behavior": "(For child items) Closes and focuses the parent."
                },
                {
                    "Shortcut": "`Alphanumeric character`",
                    "Behavior": "Focuses the next item with text starting with the character."
                }
            ]
        }
    },
    {
        "h4": "If the Menu is vertical, the arrow keys perform the following actions:"
    },
    {
        "table": {
            "headers": [
                "Shortcut",
                "Behavior"
            ],
            "rows": [
                {
                    "Shortcut": "`Up Arrow`",
                    "Behavior": "Focuses the previous item."
                },
                {
                    "Shortcut": "`Down Arrow`",
                    "Behavior": "Focuses the next item."
                },
                {
                    "Shortcut": "`Left Arrow`",
                    "Behavior": "<ul><li>(For root items) opens the item and focuses the last child.</li> <li>(For child items) closes and focuses the parent.</li></ul>"
                },
                {
                    "Shortcut": "`Right Arrow`",
                    "Behavior": "If the item has children, opens the item and focuses the first child. For child items without children, focuses and opens the next root item."
                }
            ]
        }
    },
    {
        "h3": "Testing"
    },
    {
        "p": "The Menu 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 Menu 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/patterns/menu/",
                    "title": "ARIA patterns Menu"
                }
            },
            {
                "link": {
                    "source": "https://www.w3.org/WAI/ARIA/apg/patterns/menubar/",
                    "title": "ARIA Authoring Practices: Menu Pattern"
                }
            },
            {
                "link": {
                    "source": "https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/",
                    "title": "ARIA Authoring Practices: Developing a Keyboard Interface"
                }
            }
        ]
    }
]