Skip to content

Commit

Permalink
fix(progress bar): non visual alternative
Browse files Browse the repository at this point in the history
added aria role of progress bar for better compatibility across browsers

#721
  • Loading branch information
Gabss405 committed Aug 31, 2021
1 parent 8b03370 commit aa0bc38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/molecules/Progress/Progress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ const Progress: React.FC<ProgressProps> = ({ totalSteps, currentStep, withStep =
return (
<ProgressWrapper>
<ProgressBar
aria-label={withStep ? 'Progress Bar' : `Progress Bar showing step ${currentStep} of ${totalSteps}`}
tabIndex={-1}
aria-label={`Progress Bar showing step ${currentStep} of ${totalSteps}`}
role="progressbar"
{...rest}
>
{renderPoints()}
Expand Down

0 comments on commit aa0bc38

Please sign in to comment.