Stepper Accessibility Testing
This page demonstrates the Stepper component for Lighthouse accessibility auditing. Multiple stepper configurations are shown to test various accessibility features.
import Stepper from '../../../Stepper/Stepper' import { StepperType, StepState } from '../../../Stepper/types' const StepperLightHouse = () => { // Example step data for different scenarios const horizontalSteps = [ { id: 1, title: 'Step 1', status: StepState.COMPLETED, }, { id: 2, title: 'Step 2', status: StepState.CURRENT, }, { id: 3, title: 'Step 3', status: StepState.PENDING, }, ] const verticalSteps = [ { id: 1, title: 'Step 1', status: StepState.COMPLETED, description: 'First step description', }, { id: 2, title: 'Step 2', status: StepState.CURRENT, description: 'Second step description', }, { id: 3, title: 'Step 3', status: StepState.PENDING, }, ] const stepsWithSubsteps = [ { id: 1, title: 'Step 1', status: StepState.COMPLETED, substeps: [ { id: 1, title: 'Substep 1.1' }, { id: 2, title: 'Substep 1.2' }, ], isExpanded: true, }, { id: 2, title: 'Step 2', status: StepState.CURRENT, }, ] const clickableSteps = [ { id: 1, title: 'Step 1', status: StepState.COMPLETED, }, { id: 2, title: 'Step 2', status: StepState.CURRENT, }, { id: 3, title: 'Step 3', status: StepState.PENDING, }, ] const stepsWithDisabled = [ { id: 1, title: 'Step 1', status: StepState.COMPLETED, }, { id: 2, title: 'Step 2', status: StepState.DISABLED, disabled: true, }, { id: 3, title: 'Step 3', status: StepState.PENDING, }, ] return (
This page demonstrates the Stepper component for Lighthouse accessibility auditing. Multiple stepper configurations are shown to test various accessibility features.
Basic horizontal stepper with three steps showing completed, current, and pending states. All steps have proper ARIA attributes and keyboard navigation support.
Vertical stepper with step descriptions. Steps have proper semantic structure, ARIA attributes, and accessible names with status information.
Vertical stepper with expandable substeps. Substeps are properly grouped with role="group" and have proper ARIA attributes (aria-expanded, aria-controls). Keyboard navigation supports moving into and out of substeps.
Clickable horizontal stepper. Steps have role="button" and are keyboard accessible. Arrow keys navigate between steps, Enter/Space activate steps. All interactive elements meet minimum touch target size requirements.
Stepper with disabled steps. Disabled steps have aria-disabled="true" and are not focusable (tabIndex="-1"). Screen readers properly announce disabled state.