Accessibility in React Stepper component
13 Feb 20243 minutes to read
The 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 Stepper component is outlined below.
Accessibility Criteria | Compatibility |
---|---|
WCAG 2.2 Support | |
Section 508 Support | |
Screen Reader Support | |
Right-To-Left Support | |
Color Contrast | |
Mobile Device Support | |
Keyboard Navigation Support | |
Accessibility Checker Validation | |
Axe-core Accessibility Validation |
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 Stepper component’s accessibility levels are ensured through an accessibility-checker and axe-core software tools during automated testing.
The accessibility compliance of the Stepper component is shown in the following sample. Open the sample in a new window to evaluate the accessibility of the Stepper component with accessibility tools.