Accessibility Support
Out of the box, the Telerik and Kendo UI AI Prompt provides extensive accessibility support and enables users with disabilities to acquire complete control over its features.
The AI Prompt 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 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.
AI Prompt
The AI Prompt component is a composite one and integrates the accessibility of the Toolbar, TextArea, Card, Chip and FloatingActionButton.
TextArea Component
TextArea Adornments
Selector | Attribute | Usage |
---|---|---|
.k-textarea-prefix>.k-button | role=button or nodeName=button | The buttons must have appropriate role. |
aria-label or title | The buttons must be properly labelled. | |
.k-textarea-suffix>.k-button | role=button or nodeName=button | The buttons must have appropriate role. |
aria-label or title | The buttons must be properly labelled. | |
.k-textarea-suffix>.k-prompt-send.k-disabled | aria-disabled=true | Announces send action as disabled if necessary. |
Suggestion Component
The Suggestion list implements roving tabindex navigation. Meaning that only one suggestion has tabindex=0. The display of the suggestion list is controlled by the expand button.
Selector | Attribute | Usage |
---|---|---|
.k-prompt-expander .k-button | aria-controls=.k-prompt-expander-content id | Points to the controlled element based on the given id . |
aria-expanded=true/false | Indicates the expanded state of the prompt expander content. | |
.k-prompt-expander .k-suggestion-group | role=group | Indicates that the suggestion container element is a group. |
.k-prompt-expander .k-suggestion | role=button | Indicates that the suggestion element is a button. |
aria-label or title | The suggestion elements must be properly labelled. | |
tabindex=0 | The suggestion element should be focusable. |
Button Component
Adaptive Mode
When the AI Prompt component is in adaptive mode, the popup element follows the specifications of the ActionSheet component.
Toolbar Component
Card List Container
Card Component
Chip Component
ChipList Component
ContextMenu Component
FloatingActionButton Component
SpeechToTextButton Component
More Actions View - PanelBar Component
Keyboard Shortcuts
This section lists the keyboard shortcuts supported by the AI Prompt composite component.
Shortcut | Behavior |
---|---|
Escape | If generating, stops the generation process. |
Prompt Suggestion Component
The expand header button and the suggestion group elements are included in the tab sequence.
Shortcut | Behavior |
---|---|
Enter/Space | Triggers a click action. |
Button Component
Toolbar Component
Card List Container
Card Component
FloatingActionButton Component
Chip Component
ChipList Component
ContextMenu Component
SpeechToTextButton Component
More Actions View - PanelBar Component
Keyboard Shortcuts applicable to the Inline AI Prompt
Shortcut | Behavior |
---|---|
Escape | If generating, stops the generation process. If not - closes the Inline AI Prompt popup. |
Keyboard Shortcuts applicable to the Inline AI Prompt k-input-inner
element
Shortcut | Behavior |
---|---|
Enter | Sends the message. |
Shift + Enter | Start a new line in the textarea message box. |
Testing
The AI Prompt has been extensively tested automatically with axe-core and manually with the most popular screen readers.
Screen Readers
The AI Prompt has been tested with the following screen readers and browsers combinations:
Environment | Tool |
---|---|
Firefox | NVDA |
Chrome | JAWS |
Microsoft Edge | JAWS |