Skip to content

Commit

Permalink
refactor(mui-stepper): default aria-label and role on Stepper
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmartDOTin committed Jan 14, 2025
1 parent a91a9ed commit 121bd8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/stepper/src/lib/Stepper.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ export const _Stepper: StoryObj<typeof Stepper> = {
</Box>
);
},
args: {
'aria-label': 'stepper example',
},
};

export const _StepperScrollButtons: StoryObj<typeof Stepper> = {
Expand Down
4 changes: 4 additions & 0 deletions packages/stepper/src/lib/Stepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export const Stepper = ({ children, connector, orientation, scrollButtons, ...re
</ScrollIconContainer>

<MuiStepper
aria-label="multi-step process"
role="region"
{...rest}
connector={connector}
orientation={orientation}
Expand Down Expand Up @@ -99,6 +101,8 @@ export const Stepper = ({ children, connector, orientation, scrollButtons, ...re
</Grid>
) : (
<MuiStepper
aria-label="multi-step process"
role="region"
{...rest}
connector={connector}
orientation={orientation}
Expand Down

0 comments on commit 121bd8b

Please sign in to comment.