Accessibility in Blazor Toolbar

14 Aug 20264 minutes to read

The Blazor Toolbar component is designed with WAI-ARIA specifications, applying WAI-ARIA roles, states, and properties, along with keyboard support for assistive devices. WAI-ARIA accessibility support, achieved through attributes like aria-label and aria-orientation, provides information about elements in a document for assistive technology. The component implements keyboard navigation support by following WAI-ARIA practices, and has been tested in major screen readers.

The Blazor Toolbar component adheres to accessibility guidelines and standards, including ADA, Section 508, WCAG 2.2 standards, and WCAG roles commonly used for accessibility evaluation.

The accessibility compliance for the Blazor Toolbar component is outlined below.

Accessibility Criteria Compatibility
WCAG 2.2 Support AA
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.
Partial - Some features of the component do not meet the requirement.
No - The component does not meet the requirement.

WAI-ARIA Attributes

The Blazor Toolbar component is designed considering the WAI-ARIA standard. ARIA Accessibility support ensures the Toolbar is accessible by screen readers and other assistive technology devices.

The following list of attributes is added to the Toolbar.

Attributes Purpose
role=”toolbar” Attribute is set to the ToolBar element and describes its actual role.
aria-orientation Attribute is set to the ToolBar element to indicate the ToolBar orientation. Default value is horizontal.
aria-label Attribute is set to the ToolBar element and describes the purpose of the toolbar.
aria-expanded Attribute is set to the ToolBar Popup element to indicate the expanded state of the popup.
aria-haspopup Attribute is set to the popup element to indicate the popup mode of the Toolbar. Default value is false. When popup mode is enabled, the attribute value is changed to true.
aria-disabled Attribute is set to the Toolbar item to indicate the disabled state of that item.

Keyboard Interaction

Keyboard navigation is enabled, by default. Possible keys are:

Windows Mac Actions
Focuses the previous element.
Focuses the next element.
Enter Enter When focused on a ToolBar Item, clicking the key triggers the click of Toolbar element. When popup drop-down icon is focused, the popup opens.
Esc Esc Closes popup.
Focuses the next popup element.
Focuses the previous popup element.

Ensuring Accessibility

The accessibility levels of the Blazor Toolbar component are ensured through automated testing using the axe-core software tool.

The accessibility compliance of the Toolbar component is shown in the following sample. Open the sample in a new window to evaluate the accessibility of the Toolbar component with accessibility tools.

See Also