UNPKG

@progress/wct-a11y-spec

Version:

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

292 lines 10.3 kB
[ { "h2": "Accessibility Support" }, { "p": "Out of the box, the Telerik and Kendo UI TimeDurationPicker provides extensive accessibility support and enables users with disabilities to acquire complete control over its features." }, { "p": "The TimeDurationPicker 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": "TimeDurationPicker Wrapping Element" }, { "table": { "headers": [ "Selector", "Attribute", "Usage" ], "rows": [ { "Selector": "`.k-input-inner`", "Attribute": "`role=combobox`", "Usage": "The input element must follow the `combobox` specification." }, { "Selector": "", "Attribute": "`label for` or `aria-label` or `aria-labelledby`", "Usage": "An accessible name must be assigned to the input." }, { "Selector": "", "Attribute": "`aria-expanded=true/false`", "Usage": "Announces whether the Popup is visible or not." }, { "Selector": "", "Attribute": "`aria-haspopup=dialog`", "Usage": "Indicates the component has a Dialog Popup" }, { "Selector": "", "Attribute": "`aria-controls=.k-popup id`", "Usage": " Points to the popup element. Signifies that the `combobox` element controls the `dialog` popup." }, { "Selector": "", "Attribute": "`readonly` or `aria-readonly`", "Usage": "The attribute is rendered only when the DatePicker is readonly." }, { "Selector": "`.k-invalid .k-input-inner,.ng-invalid .k-input-inner`", "Attribute": "`aria-invalid=true`", "Usage": "An attribute is rendered only when the picker is in form and announces the valid state of the component." }, { "Selector": "`.k-disabled .k-input-inner`", "Attribute": "`disabled=disabled` or `aria-disabled=true`", "Usage": "An attribute is rendered only when the DatePicker is disabled." }, { "Selector": "`.k-input-button`", "Attribute": "`aria-hidden=true`", "Usage": "The button element must be hidden from the assistive technologies." }, { "Selector": "", "Attribute": "`tabindex=-1`", "Usage": "The button element must not be focusable." }, { "Selector": "`k-timedurationpicker.k-disabled .k-button`", "Attribute": "`disabled` or `aria-disabled=true`", "Usage": "An attribute is rendered only when the picker is disabled." } ] } }, { "h4": "List Elements in the Popup" }, { "table": { "headers": [ "Selector", "Attribute", "Usage" ], "rows": [ { "Selector": "`.k-time-list`", "Attribute": "`role=listbox`", "Usage": "The timelist elements must have a `listbox` role assigned." }, { "Selector": "", "Attribute": "`aria-label` or `aria-labelledby`", "Usage": "An accessible name must be assigned to the listbox." }, { "Selector": "`.k-time-list .k-reset`", "Attribute": "`role=none/presentation`", "Usage": "The `k-rest` `<ul>` element's semantic meaning must be removed from the accessibility tree." }, { "Selector": "`.k-time-list .k-item`", "Attribute": "`role=option`", "Usage": "The available options in the listbox must be marked as such." }, { "Selector": "", "Attribute": "`aria-selected=true/false`", "Usage": "The selected option must have its `aria-selected` attribute set to `true`." } ] } }, { "h4": "Adaptive Mode" }, { "p": "When the component is in adaptive mode, the popup element follows the specifications of the ActionSheet component." }, { "link": { "title": "ActionSheet accessibility specification", "source": "{{actionsheet_a11y_link}}" } }, { "h3": "Managing the Focus" }, { "p": "Initial focus is on the selected time." }, { "p": "The time dropdown tab sequence is: **hours** part, **minutes** part, **seconds** part, **Cancel** button, **Set** button. The tab key is trapped in the popup." }, { "h3": "Keyboard Shortcuts" }, { "h4": "Actions applied to the input:" }, { "table": { "headers": [ "Shortcut", "Behavior" ], "rows": [ { "Shortcut": "`Esc`", "Behavior": "Closes the popup" }, { "Shortcut": "`Alt/Opt(Mac) + Down`", "Behavior": "Opens the popup" }, { "Shortcut": "`Alt/Opt(Mac) + Up`", "Behavior": "Closes the popup" }, { "Shortcut": "`Up`", "Behavior": "Increases the value of the time segment that is highlighted." }, { "Shortcut": "`Down`", "Behavior": "Decreases the value of the time segment that is highlighted." }, { "Shortcut": "`Left`", "Behavior": "Moves to previous time segment in the input." }, { "Shortcut": "`Right`", "Behavior": "Moves to next time segment in the input." }, { "Shortcut": "`Backspace`", "Behavior": "Deletes value of the time segment." } ] } }, { "h4": "Actions applied to the time list:" }, { "table": { "headers": [ "Shortcut", "Behavior" ], "rows": [ { "Shortcut": "`Esc`", "Behavior": "Closes the popup" }, { "Shortcut": "`Shift + Tab` or `Left`", "Behavior": "Focuses previous carousel." }, { "Shortcut": "`Tab` or `Right`", "Behavior": "Focuses next carousel." }, { "Shortcut": "`Down`", "Behavior": "Selects next value in the carousel." }, { "Shortcut": "`Up`", "Behavior": "Selects previous value in the carousel." } ] } }, { "h4": "ActionSheet Popup" }, { "p": "In adaptive mode, the popup element of the TimeDurationPicker has to implement the keyboard navigation specification for an ActionSheet component." }, { "link": { "title": "ActionSheet specification", "source": "{{actionsheet_kb_link}}" } }, { "h3": "Testing" }, { "p": "The TimeDurationPicker 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 TimeDurationPicker 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": { "title": "WAI-ARIA specification for combobox", "source": "https://www.w3.org/TR/wai-aria-1.2/#combobox" } }, { "link": { "title": "WAI-ARIA specification for listbox", "source": "https://www.w3.org/TR/wai-aria-1.2/#listbox" } } ] } ]