@progress/wct-a11y-spec
Version:
Contains accessibility and keyboard navigation specification of Telerik and Kendo web components.
125 lines • 4.6 kB
JSON
[
{
"h2": "Accessibility Support"
},
{
"p": "Out of the box, the Telerik and Kendo UI Drawer provides extensive accessibility support and enables users with disabilities to acquire complete control over its features."
},
{
"p": "The Drawer 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."
},
{
"p": "The Drawer component allows rendering a whole template inside of it. Thus, the accessibility roles are applied only when the built-in data-binding is used."
},
{
"table": {
"headers": [
"Selector",
"Attribute",
"Usage"
],
"rows": [
{
"Selector": "`.k-drawer ul`",
"Attribute": "`role=menubar`",
"Usage": "Indicates that the list of drawer items is a menubar."
},
{
"Selector": "",
"Attribute": "`aria-orientation=vertical`",
"Usage": "Indicates that the orientation of the drawer is vertical."
},
{
"Selector": "`.k-drawer-item:not(.k-drawer-separator)`",
"Attribute": "`role=menuitem`",
"Usage": "Indicates that the item of a drawer serves as a menuitem."
},
{
"Selector": "",
"Attribute": "`aria-label`",
"Usage": "The drawer item requires an \"aria-label\" attribute when in mini mode and no content is rendered in the item. The \"aria-label\" points to the text field value of the item."
},
{
"Selector": "`.k-drawer-item.k-drawer-separator`",
"Attribute": "`role=separator`",
"Usage": "Indicates that the item of a drawer serves as a separator."
}
]
}
},
{
"h3": "Managing the Focus"
},
{
"ul": [
"Initial focus - First item in the drawer",
"Removing TabIndex components Practice for managing the focus",
"Persist only the last focused element with TabIndex = 0"
]
},
{
"h3": "Keyboard Shortcuts"
},
{
"table": {
"headers": [
"Shortcut",
"Behavior"
],
"rows": [
{
"Shortcut": "`Enter`",
"Behavior": "Execute the item action"
},
{
"Shortcut": "`Arrow Up`",
"Behavior": "Goes to the previous item. Focus is moved to the prev item and its tabindex is set to 0."
},
{
"Shortcut": "`Arrow Down`",
"Behavior": "Goes to the next item. Focus is moved to the next item and its tabindex is set to 0."
}
]
}
},
{
"h3": "Testing"
},
{
"p": "The Drawer 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 Drawer has been tested with the following screen readers and browsers combinations:"
},
{
"table": {
"headers": [
"Environment",
"Tool"
],
"rows": [
[
"Firefox",
"NVDA"
],
[
"Chrome",
"JAWS"
],
[
"Microsoft Edge",
"JAWS"
]
]
}
}
]