UNPKG

@progress/wct-a11y-spec

Version:

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

158 lines 5.94 kB
[ { "h2": "Accessibility Support" }, { "p": "Out of the box, the Telerik and Kendo UI ColorPalette provides extensive accessibility support and enables users with disabilities to acquire complete control over its features." }, { "p": "The ColorPalette 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-colorpalette`", "Attribute": "`role=grid`", "Usage": "The focusable wrapper of the component should announce its role as a `grid`." }, { "Selector": "", "Attribute": "`aria-label` or `aria-labelledby`", "Usage": "The component needs an accessible name to be assigned to it. Must also include the currently selected value in the component." }, { "Selector": "", "Attribute": "`aria-activedescendant=.k-colorpalette-tile.k-focus id`", "Usage": "Points to the focused cell in the table. The focused cell is changed via keyboard navigation." }, { "Selector": "", "Attribute": "`tabindex=0`", "Usage": "The element must be focusable." }, { "Selector": "`.k-colorpalette.k-disabled`", "Attribute": "`aria-disabled=true`", "Usage": "Attribute is rendered only when the ColorPalette is disabled." }, { "Selector": "`.k-colorpalette-table`", "Attribute": "`role=none/presentation`", "Usage": "Negates the default role of the element, as it is wrapped within a `role=\"grid\"` element." }, { "Selector": "`.k-colorpalette-table>tbody>tr`", "Attribute": "`role=row`", "Usage": "Required as the semantic role of its parent `<table>` has been removed." }, { "Selector": "`.k-colorpalette-tile`", "Attribute": "`role=gridcell`", "Usage": "Required as the semantic role of its parent `<table>` has been removed." }, { "Selector": "", "Attribute": "`aria-label` or `title`", "Usage": "The text representation of the color value for the current cell." }, { "Selector": "`.k-colorpalette-tile.k-selected`", "Attribute": "`aria-selected=true`", "Usage": "Present on the currently selected cell in the component." } ] } }, { "h3": "Keyboard Shortcuts" }, { "table": { "headers": [ "Shortcut", "Behavior" ], "rows": [ { "Shortcut": "`Down Arrow`", "Behavior": "Focuses the next cell below." }, { "Shortcut": "`Up Arrow`", "Behavior": "Focuses the next cell above." }, { "Shortcut": "`Right Arrow`", "Behavior": "Focuses the next cell on the right." }, { "Shortcut": "`Left Arrow`", "Behavior": "Focuses the next cell on the left." }, { "Shortcut": "`Enter`", "Behavior": "Selects the color from the currently focused cell." } ] } }, { "h3": "Testing" }, { "p": "The ColorPalette 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 ColorPalette 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/grid/examples/data-grids/", "title": "ARIA Authoring Practices: Data Grid" } } ] } ]