UNPKG

@progress/wct-a11y-spec

Version:

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

165 lines 6.35 kB
[ { "h2": "Accessibility Support" }, { "p": "Out of the box, the Telerik and Kendo UI NumericTextBox provides extensive accessibility support and enables users with disabilities to acquire complete control over its features." }, { "p": "The NumericTextBox 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-input-inner`", "Attribute": "`role=spinbutton`", "Usage": "Announces the spin button capabilities of the NumericTextBox." }, { "Selector": "", "Attribute": "`label for` or `aria-label` or `aria-labelledby`", "Usage": "The input requires an accessible name that will be assigned to it." }, { "Selector": "", "Attribute": "`aria-required=true`", "Usage": "The attribute is rendered only when the NumericTextBox is in a `form` HTML element and announces the required state of the component." }, { "Selector": "", "Attribute": "`aria-describedby=.k-form-hint id/.k-form-error id`", "Usage": "Points to the hint for the input, or if the input is invalid, to the error message. This attribute should only be present when a hint is set or when the input is invalid." }, { "Selector": "", "Attribute": "`aria-valuemnow`", "Usage": "Announces the value for the component." }, { "Selector": "", "Attribute": "`aria-valuemin`", "Usage": "Announces the minimum value allowed for the component." }, { "Selector": "", "Attribute": "`aria-valuemax`", "Usage": "Announces the maximum value allowed for the component." }, { "Selector": "", "Attribute": "`aria-invalid=true`", "Usage": "The attribute is rendered only when the NumericTextBox is in a form and announces the valid state of the component." }, { "Selector": "`.k-disabled .k-input-inner`", "Attribute": "`disabled=disabled` or `aria-disabled=true`", "Usage": "The attribute is rendered only when the NumericTextBox is disabled." }, { "Selector": "`.k-spin-button>.k-button`", "Attribute": "`role=button` or `nodeName=button`", "Usage": "Announces the spin button capabilities of the NumericTextBox." }, { "Selector": "", "Attribute": "`aria-label`", "Usage": "The button element must have discernible text." }, { "Selector": "`.k-numerictextbox.k-disabled .k-spin-button>.k-button`", "Attribute": "`disabled` or `aria-disabled`", "Usage": "Attribute is rendered only when the picker is disabled." } ] } }, { "h3": "Managing the Focus" }, { "p": "The NumericTextBox provides a standard focusable input." }, { "h3": "Keyboard Shortcuts" }, { "p": "The MaskedTextBox supports the default input cursor navigation with the `Left Arrow` and `Right Arrow` keys." }, { "table": { "headers": [ "Shortcut", "Behavior" ], "rows": [ { "Shortcut": "`Up Arrow`", "Behavior": "Increases the value of the focused NumericTextBox with the step." }, { "Shortcut": "`Down Arrow`", "Behavior": "Decreases the value of the focused NumericTextBox with the step." } ] } }, { "h3": "Testing" }, { "p": "The NumericTextBox 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 NumericTextBox 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/spinbutton/", "title": "WAI-ARIA Authoring Practices: Spinbutton Pattern" } } ] } ]