Skip to content

Commit

Permalink
fix(progress-bar): non visual alternative
Browse files Browse the repository at this point in the history
added aria-label

fix #721
  • Loading branch information
Gabss405 committed Aug 26, 2021
1 parent 1fe8d89 commit 4dc5142
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/molecules/Progress/Progress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ const Progress: React.FC<ProgressProps> = ({ totalSteps, currentStep, withStep =

return (
<ProgressWrapper>
<ProgressBar {...rest}>
<ProgressBar
aria-label={withStep ? 'Progress Bar' : `Progress Bar showing step ${currentStep} of ${totalSteps}`}
tabIndex={-1}
{...rest}
>
{renderPoints()}
<Progression position={getStepPosition(totalSteps, currentStep - 0.5)} progressColor={progressColor}>
{withStep && (
Expand Down

0 comments on commit 4dc5142

Please sign in to comment.