Accessibility in Blazor Stepper component

29 Nov 20243 minutes to read

The Blazor Stepper 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 Stepper 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 Stepper component:

Attributes Purpose
aria-label Attribute provide a descriptive text that labels the interactive element for accessibility.
aria-current Attribute denotes the currently active step in the Stepper.
aria-disabled Indicates when the step is disabled and cannot be interacted.

Keyboard interaction

The following keyboard shortcuts are supported by the Stepper component.

Press To do this
Up Arrow Focuses the previous step in a vertical Stepper.
Down Arrow Focuses the next step in a vertical Stepper.
Left Arrow Focuses the previous step in a horizontal Stepper.
Right Arrow Focuses the next step in a horizontal Stepper.
Home Focuses on the first step of the Stepper.
End Focuses on the last step of the Stepper.
Enter / Space Activates the currently focused step.

Ensuring accessibility

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

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

See also