UNPKG

@progress/wct-a11y-spec

Version:

Contains accessibility and keyboard navigation specification of Telerik and Kendo web components.

227 lines 8.25 kB
[ { "h2": "Accessibility Support" }, { "p": "Out of the box, the Telerik and Kendo UI DropDownButton provides extensive accessibility support and enables users with disabilities to acquire complete control over its features." }, { "p": "The DropDownButton 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": "Main Button Element" }, { "p": "The following table summarizes the selectors and attributes supported by the main `button` element of the DropDownButton:" }, { "table": { "headers": [ "Selector", "Attribute", "Usage" ], "rows": [ { "Selector": "`.k-menu-button`", "Attribute": "`role=button` or `nodeName=button`", "Usage": "Omitted if the `<button>` DOM element is used." }, { "Selector": "", "Attribute": "`aria-label`", "Usage": "The attribute must be present when no text is initially visible in the button." }, { "Selector": "", "Attribute": "`aria-expanded=true/false`", "Usage": "Announces the state of the popup visibility." }, { "Selector": "", "Attribute": "`aria-controls=.k-menu-group id`", "Usage": "Points to the popup element. Builds a relationship between the button and the popup." }, { "Selector": "`.k-menu-button.k-disabled`", "Attribute": "`aria-disabled=true`", "Usage": "Rendered only when the button is disabled and the `disabled` attribute cannot be used. Applicable to the `<button>` or `<input type=\"button\">` elements." } ] } }, { "h4": "Popup Menu Element" }, { "p": "The following table summarizes the selectors and attributes supported by the popup `menu` element of the DropDownButton:" }, { "table": { "headers": [ "Selector", "Attribute", "Usage" ], "rows": [ { "Selector": "`.k-menu-group`", "Attribute": "`role=list`", "Usage": "Announces the `list` role of the popup." }, { "Selector": "`.k-menu-item`", "Attribute": "`role=listitem`", "Usage": "Announces the `listitem` role of the popup items." } ] } }, { "h3": "Managing the Focus" }, { "p": "The DropDownButton is a single tab stop component." }, { "h3": "Keyboard Shortcuts" }, { "p": "This section lists the keyboard shortcuts supported by the DropDownButton composite elements." }, { "h4": "Main Button Element" }, { "p": "The following table summarizes the keyboard combinations and input behavior supported by the main DropDownButton `button` element:" }, { "table": { "headers": [ "Shortcut", "Behavior" ], "rows": [ { "Shortcut": "`Alt` + `Down Arrow`", "Behavior": "Opens the DropDownButton popup and moves the focus to its first `menuitem` element." }, { "Shortcut": "`Enter`", "Behavior": "Opens the DropDownButton popup and moves the focus to its first `menuitem` element." }, { "Shortcut": "`Space`", "Behavior": "Opens the DropDownButton popup and moves the focus to its first `menuitem` element." } ] } }, { "h4": "Popup Menu Element" }, { "p": "The following table summarizes the keyboard combinations and input behavior supported by the popup `menu` element of the DropDownButton:" }, { "table": { "headers": [ "Shortcut", "Behavior" ], "rows": [ { "Shortcut": "`Alt` + `Up Arrow`", "Behavior": "Closes the popup and moves the focus back to the main `button` element." }, { "Shortcut": "`Esc`", "Behavior": "Closes the popup and moves the focus back to the main button element." }, { "Shortcut": "`Down Arrow`", "Behavior": "Moves the focus to the next `menuitem` element. If the focus is on the last menu item, moves the focus to the first menu item." }, { "Shortcut": "`Up Arrow`", "Behavior": "Moves the focus to the previous `menuitem` element. If the focus is on the first menu item, moves the focus to the last menu item." }, { "Shortcut": "`Home`", "Behavior": "Moves the focus to the first `menuitem` element." }, { "Shortcut": "`End`", "Behavior": "Moves the focus to the last `menuitem` element." }, { "Shortcut": "`Enter`", "Behavior": "Clicks (activates) the currently active `menuitem` element and closes the popup." }, { "Shortcut": "`Space`", "Behavior": "Clicks (activates) the currently active `menuitem` element and closes the popup." } ] } }, { "h3": "Testing" }, { "p": "The DropDownButton 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 DropDownButton 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/disclosure/", "title": "WAI-ARIA Authoring Practices: Disclosure Pattern" } }, { "link": { "source": "https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/examples/menu-button-links/", "title": "WAI-ARIA Authoring Practices: Navigation Menu Button" } } ] } ]