UNPKG

@progress/wct-a11y-spec

Version:

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

74 lines (38 loc) 3.17 kB
Out of the box, the {{ site.product }} TreeList provides extensive accessibility support and enables users with disabilities to acquire complete control over its features. The TreeList is compliant with the [Web Content Accessibility Guidelines (WCAG) 2.2 AA](https://www.w3.org/TR/WCAG22/) standards and [Section 508](https://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 and is tested against the most popular screen readers. ## WAI-ARIA This section lists the selectors, attributes, and behavior patterns supported by the component and its composite elements, if any. The TreeList is a composite component that consists of 2 logically separated structural elements: - Toolbar (`role=toolbar`); - Tree Grid (`role=treegrid`); ### TreeList Toolbar TreeList Toolbar follows the specification of the ToolBar component. [ToolBar accessibility specification]({{toolbar_a11y_link}}) | Selector | Attribute | Usage | | -------- | --------- | ----- | | `.k-grid-toolbar` | `role=toolbar` | The toolbar is a collection of command buttons and inputs. | | | `aria-label` | Clarifies the purpose of the toolbar. | | | `aria-controls=.k-grid-aria-root id` | Pointing to the id of the element with `role=treegrid`. | ### Tree Grid The element with `role=treegrid` must not include the ToolBar element as it does not belong to the `role=treegrid` element itself. It implements the ARIA specification for the Grid component with some exceptions listed below. [Grid accessibility specification]({{grid_a11y_link}}) The below table lists the ARIA requirements for the TreeList which are not present in the Grid specification: | Selector | Attribute | Usage | | -------- | --------- | ----- | | `.k-treelist .k-grid-aria-root` | `role=treegrid` | Sets the proper role for the TreeList component. | | `.k-table-tbody .k-table-row` | `aria-expanded=true/false` | Set on the currently expanded row(s). | | `.k-table-tbody .k-i-caret-alt-down,.k-table-tbody .k-i-caret-alt-right,.k-table-tbody .k-svg-i-caret-alt-down,.k-table-tbody .k-svg-i-caret-alt-right` | `aria-hidden=true` | Removes the expand/collapse icon from the accessibility tree. | ## Resources [WAI-ARIA specification for tree grid](https://www.w3.org/TR/wai-aria-1.2/#treegrid) ## Section 508 The TreeList is fully compliant with the [Section 508 requirements](http://www.section508.gov/). ## Testing The TreeList has been extensively tested automatically with [axe-core](https://github.com/dequelabs/axe-core) and manually with the most popular screen readers. > To report any accessibility issues, contact the team through the [Telerik Support System](https://www.telerik.com/account/support-center). ### Screen Readers The TreeList has been tested with the following screen readers and browsers combinations: | Environment | Tool | | ----------- | ---- | | Firefox | NVDA | | Chrome | JAWS | | Microsoft Edge | JAWS |