Accessibility in Blazor AI AssistView component

29 Nov 20244 minutes to read

The Blazor AI AssistView component followed the accessibility guidelines and standards, including ADA, Section 508, WCAG 2.2 standards, and WCAG roles that are commonly used to evaluate accessibility.

The accessibility compliance for the Blazor AI AssistView component is outlined below.

Accessibility Criteria Compatibility
WCAG 2.2 Support Yes
Section 508 Support Yes
Screen Reader Support Yes
Right-To-Left Support Yes
Color Contrast Yes
Mobile Device Support Yes
Keyboard Navigation Support Yes
Axe-core Accessibility Validation Yes
Yes - All features of the component meet the requirement.
Intermediate - Some features of the component do not meet the requirement.
No - The component does not meet the requirement.

WAI-ARIA attributes

The following ARIA attributes are used in the AI AssistView component:

Attributes Purpose
role=button Indicates that the element is clickable and triggers an action when activated by the user.
role=toolbar Specifies that the element is a toolbar.
aria-label Defines a string value that labels an interactive element for accessibility.
aria-orientation Specifies the orientation of the toolbar.
aria-disabled Indicates whether the toolbar or element is currently disabled and not interactive.
aria-multiline Indicates that a textbox accepts multiple lines of input or only a single line.

Keyboard interaction

The following keyboard shortcuts are supported by the AI AssistView component.

Press To do this
Enter Select the focused item.
Tab Moves focus forward through the interactive elements.
Shift + Tab Moves focus backward through the interactive elements.
AI AssistView Toolbars  
Left Arrow Focuses the previous toolbar element.
Right Arrow Focuses the next toolbar element.
Enter / Space Select the focused item or activate the selected option.
Home Moves focus to the first toolbar element.
End Moves focus to the last toolbar element.

Ensuring accessibility

The Blazor AI AssistView component’s accessibility levels are ensured through an axe-core with playwright tests.

See also