Keyboard operation
End users can operate all Webchat functionality with the keyboard only. Webchat doesn’t use character key shortcuts, and keyboard focus is never trapped except in modal dialogs, which you can always close with Esc.
Screen reader support
The Webchat widget works with screen readers as follows:- All interactive elements have an accessible name. The names are available in English by default and you can translate them. For more information, see Translate aria labels and screen reader texts.
- Every message is announced with the sender and the time, using the texts
You said:,{name} said:, andAt {time}. - Images, audio, video, and file attachments are announced with a short description of the message type, for example,
A video with transcript and captionsorAn image with download option. For images, the alternative text that you provide in the node is announced right after this description and is also used as thealtattribute of the image. For more information, see Create accessible content. - Status changes are announced without moving focus: the number of unread messages on the closed launcher, the teaser message, the typing indicator, the agent notice at the beginning of a conversation, lost and restored connection, file upload results including the failure reason, and the result of deleting conversations.
- Screens that aren’t visible, such as the Home Screen while a chat is open, are hidden from assistive technologies.
- The xApp overlay is a labeled modal dialog.
Visual presentation
Webchat includes the following visual configurations:- The default colors meet the minimum contrast ratio of 4.5:1 for text and 3:1 for UI components and focus indicators. Text on the primary color automatically switches between light and dark to keep the contrast.
- Font sizes are relative, so users can resize text up to 200% in their browser without loss of content or functionality.
- Content reflows at a width of 320 CSS pixels without horizontal scrolling.
- Pointer targets are at least 24 by 24 CSS pixels.
- Focused elements are never hidden behind the header or an overlay.
- The launcher animation, the typing indicator, the text-to-speech toggle, and the xApp overlay respect the Reduce motion setting of the operating system.
- No audio plays automatically. Text-to-speech is inactive until the user or the endpoint configuration enables it.