UNPKG

@progress/wct-a11y-spec

Version:

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

153 lines 5.75 kB
[ { "h2": "Accessibility Support" }, { "p": "Out of the box, the Telerik and Kendo UI ChipList provides extensive accessibility support and enables users with disabilities to acquire complete control over its features." }, { "p": "The ChipList 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-chip-list`", "Attribute": "`role=listbox`", "Usage": "Announces the list role of the chip list." }, { "Selector": "", "Attribute": "`aria-label` or `aria-labelledby`", "Usage": "Adds label to the ChipList element. ListBox element requires an accessible name attached to it." }, { "Selector": "", "Attribute": "`aria-orientation=horizontal`", "Usage": "Specifies the horizontal orientation of the chiplist that gives context about the navigation shortcuts." }, { "Selector": "", "Attribute": "`aria-multiselectable=true`", "Usage": "Announces the multiple selection ability of the chiplist. Only when the selection mode is set to multiple." }, { "Selector": "`.k-chip`", "Attribute": "`role=option`", "Usage": "Announces the chip is an option inner component of the chip list." }, { "Selector": "`.k-chip.k-selected`", "Attribute": "`aria-selected=true`", "Usage": "Announces the chip is selected." }, { "Selector": "`.k-chip:not(.k-selected)`", "Attribute": "`aria-selected=false`", "Usage": "Announces the chip is not selected." }, { "Selector": "`.k-chip:has(.k-i-x-circle),.k-chip:has(.k-svg-i-x-circle)`", "Attribute": "`aria-keyshortcuts=Enter Delete`", "Usage": "Announces the Delete action along with the default Enter key used for selection/click action." } ] } }, { "p": "When selection is disabled in the ChipList, it should not have its role set to `listbox`. Instead, the attribute should either be omitted, or its value should be set to `none`. In that case the `role` of the Chip elements should remain `button` as per the Chip component specification." }, { "h3": "Managing the Focus" }, { "p": "The ChipList is a single tab-stop component and implements roving tabindex strategy. " }, { "h3": "Keyboard Shortcuts" }, { "table": { "headers": [ "Shortcut", "Behavior" ], "rows": [ { "Shortcut": "`RightArrow`", "Behavior": "Focuses the next chip in the chiplist." }, { "Shortcut": "`LeftArrow`", "Behavior": "Focuses to the previous chip in the group." }, { "Shortcut": "`Enter/Space`", "Behavior": "Triggers a click action on the chip." }, { "Shortcut": "`Delete/Backspace`", "Behavior": "Removes the chip when delete action is configured." } ] } }, { "h3": "Testing" }, { "p": "The ChipList 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 ChipList 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/listbox/", "title": "ARIA practices list pattern" } } ] } ]