1 |
|
2 | The Telerik UI for Blazor DatePicker component is [WCAG 2.1 AAA](https://www.w3.org/TR/WCAG21/) and [Section 508](http://www.section508.gov/) compliant. The component also follows the [WAI-ARIA best practices](https://www.w3.org/WAI/ARIA/apg/) for implementing the keyboard navigation for its component role, and is tested against the popular screen readers.
|
3 |
|
4 | ## Wai-Aria
|
5 |
|
6 | ### DatePicker wrapper
|
7 |
|
8 | | Selector | Attribute | Usage |
|
9 | | -------- | --------- | ----- |
|
10 | | .k-input-inner | `role=combobox` | The input element should follow the `combobox` specification. |
|
11 | | | `label for=` or `aria-label` or `aria-labelledby` | The input needs an accessible name to be assigned to it. |
|
12 | | | `aria-haspopup=grid` | Indicates the component has a Calendar Popup that implements `role="grid"`. |
|
13 | | | `aria-expanded=true/false` | Announces whether the Popup is visible or not. |
|
14 | | | `aria-controls=.k-animation-container id` | Points to the popup element. Signifies that the `combobox` element controls the Calendar `grid`. |
|
15 | | | `aria-activedescendent=.k-calendar-td id` | Points to the focused item (date/month/year) in the Calendar Popup. Should only be present when the Popup is open. |
|
16 | | | `disabled` or `aria-disabled` | Attribute is rendered only when the DatePicker is disabled. |
|
17 | | | `readonly` or `aria-readonly` | Attribute is rendered only when the DatePicker is readonly. |
|
18 | | | `aria-invalid=true` | Attribute is rendered only when the combobox is in form and announces the valid state of the component. |
|
19 | | | `tabindex=0` | The element must be focusable. |
|
20 | | .k-input-button | `role=button` or `nodeName=button` | The element should either be a `<button>` element or should have `role="button"` assigned. |
|
21 | | | `aria-label` | The button needs an accessible name to be assigned to it. |
|
22 | | | `tabindex=-1` | Button element should not be focusable. |
|
23 |
|
24 | ### Calendar Popup
|
25 |
|
26 |
|
27 | The Calendar in the Popup element of the component should implement the specification for the **Calendar** component.
|
28 |
|
29 | [Calendar accessibility specification]({{calendar_a11y_link}})
|
30 |
|
31 | ## Resources
|
32 |
|
33 | [WAI ARIA specification for combobox](https://www.w3.org/TR/wai-aria-1.2/#combobox)
|
34 |
|
35 | [ARIA practices Date Picker Dialog Example](https://www.w3.org/WAI/ARIA/apg/example-index/dialog-modal/datepicker-dialog.html)
|
36 |
|
37 | ## Section 508
|
38 |
|
39 |
|
40 | The DatePicker is compliant with the [Section 508](http://www.section508.gov/) requirements
|
41 |
|
42 | ## Testing
|
43 |
|
44 |
|
45 | The component has been extensively tested automatically with static code analyzers and manually with the most popular screen readers.
|
46 |
|
47 | > Any Accessibility Issues could be reported in [Telerik Support System](https://www.telerik.com/account/support-center).
|
48 |
|
49 | ### Screen Readers
|
50 |
|
51 | | Environment | Tool |
|
52 | | ----------- | ---- |
|
53 | | Firefox | NVDA |
|
54 | | Chrome | JAWS |
|
55 | | Microsoft Edge | JAWS |
|