PromptBox Accessibility
The PromptBox is accessible by screen readers and provides WAI-ARIA, Section 508, WCAG 2.2, and keyboard support.
For more information, refer to Accessibility in Kendo UI for jQuery.
Out of the box, the Kendo UI for jQuery PromptBox provides extensive accessibility support and enables users with disabilities to acquire complete control over its features.
The PromptBox is compliant with the Web Content Accessibility Guidelines (WCAG) 2.2 AA standards and Section 508 requirements, follows the Web Accessibility Initiative - Accessible Rich Internet Applications (WAI-ARIA) best practices for implementing the keyboard navigation for its component role, provides options for managing its focus and is tested against the most popular screen readers.
WAI-ARIA
This section lists the selectors, attributes, and behavior patterns supported by the component and its composite elements, if any.
The PromptBox is an input component designed for AI-assisted interactions. It supports single-line and multi-line text input modes, and integrates with the Speech-to-Text Button component.
Single-line Input
| Selector | Attribute | Usage |
|---|---|---|
.k-prompt-box-singleline .k-prompt-box-input | nodeName=input | Ensures the input field has the proper textbox role. |
aria-label or aria-labelledby | Provides an accessible label for the input. Use aria-label or associate with a visible label via aria-labelledby. | |
placeholder | Provides a short hint to the user about the expected input. Should not replace proper labeling. |
Multi-line Input
| Selector | Attribute | Usage |
|---|---|---|
.k-prompt-box-multiline .k-prompt-box-textarea | nodeName=textarea | Ensures the textarea has the proper textbox role. |
aria-label or aria-labelledby | Provides an accessible label for the textarea. Use aria-label or associate with a visible label via aria-labelledby. | |
placeholder | Provides a short hint to the user about the expected input. Should not replace proper labeling. | |
aria-multiline=true | Indicates the textarea supports multiple lines of text. |
Affix Buttons
The PromptBox can have prefix and suffix elements containing buttons and icons.
| Selector | Attribute | Usage |
|---|---|---|
.k-prompt-box-affix .k-button | role=button or nodeName=button | Buttons in affixes must have appropriate role. |
aria-label | Affix buttons must be properly labelled to describe their function. |
Send/Stop Button
The primary action button for submitting the prompt or stopping generation.
| Selector | Attribute | Usage |
|---|---|---|
.k-prompt-box-affix .k-button:has(.k-svg-i-arrow-up-outline), .k-prompt-box-affix .k-button:has(.k-svg-i-stop-sm) | aria-live=polite | The send button renders the aria-live attribute to announce the change in status. |
aria-label | The send button is labelled to indicate its current action (e.g., 'Send prompt' or 'Stop generating'). |
SpeechToTextButton accessibility specification
Section 508
The PromptBox is fully compliant with the Section 508 requirements.
Testing
The PromptBox has been extensively tested automatically with axe-core and manually with the most popular screen readers.
To report any accessibility issues, contact the team through the Telerik Support System.
Screen Readers
The PromptBox has been tested with the following screen readers and browsers combinations:
| Environment | Tool |
|---|---|
| Firefox | NVDA |
| Chrome | JAWS |
| Microsoft Edge | JAWS |
Automated Testing
The PromptBox has been tested with axe-core.
Test Example
A live test example of the PromptBox component could be found here: https://demos.telerik.com/kendo-ui/accessibility/promptbox