Accessibility Support
Out of the box, the Telerik and Kendo UI Otp provides extensive accessibility support and enables users with disabilities to acquire complete control over its features.
The Otp is compliant with the Web Content Accessibility Guidelines (WCAG) 2.2 standards and Section 508 requirements, follows the Web Accessibility Initiative - Accessible Rich Internet Applications (WAI-ARIA) best practices for implementing the keyboard navigation and provides options for managing its focus and is tested against the most popular screen readers.
OneTimePassword
ARIA Attributes
| Attribute | Description |
|---|---|
role="group" | Sets the proper role for the OTP. |
type="hidden" | The hidden input holding the OTP inputs value. |
aria-hidden="true" | Hides the hidden input from assistive technologies. |
Keyboard Navigation
| Trigger | Behavior |
|---|---|
Typing in the input | Sets the value in the input and moves the focus to the next focusable input in the OTP. (if any) |
Tab | Focuses the next input in the OTP. If the focus is on the last input, focuses the next focusable element on the page. |
Shift + Tab | Focuses the previous input in the OTP. If the focus is on the first input, focuses the previous focusable element before the OTP. |
ArrowRight | Moves the focus to the next focusable input in the OTP. (if any) |
ArrowLeft | Moves the focus to the previous focusable input in the OTP. (if any) |
Backspace | Deletes the value of the focused input and moves the focus on the previous input. (if any). |
Delete | Deletes the value of the focused input. |
UX Behavior
| Feature | Description |
|---|---|
| Auto-advance | Focus moves to the next input automatically after each character is entered. |
| Paste | Pasting a code string fills all inputs at once. |
| Separator | Groups of inputs can be visually separated by divider characters. |
| Masked | Characters can be hidden like a password field. |
OneTimePasswordInput
Testing
The Otp has been extensively tested automatically with axe-core and manually with the most popular screen readers.
Screen Readers
The Otp has been tested with the following screen readers and browsers combinations:
| Environment | Tool |
|---|---|
| Firefox | NVDA |
| Chrome | JAWS |
| Microsoft Edge | JAWS |