Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Progress bar UI and accessibility issue #1681
Comments
|
for the first issue, it is really up to the user to provide logical and reasonable values. But I suppose it is fairly easy to constrain/bound/clamp the value to
For the second issue, we do not spread the rest of the props on the bar (we do it on the wrapper). I am not sure if other attributes would need to be added to the bar or not, but we should map even with |
|
my fix is |
|
According to documentation:
If you want a more friendly or detailed read out, instead of using aria-valuetext you could consider having an aria-labelledby attribute that references a hidden (or visible) element on the page with more a detailed description. For example:
|
Yeah I think you are right. Maybe we can add aria-valuetext and screenreadertext as two optional props? |
|
|
Hello everyone, I see that this is labeled as a "good first issue", but I was wondering if I could work on this, as I have a task that needed the a11y feature. Thanks! |


progress#8.1.1Issue1.
What is happening?
When value is greater than 100 (or less than 0), width will become greater than 100%(or negative).
https://github.com/reactstrap/reactstrap/blob/8.1.1/src/Progress.js#L68
What should be happening?
Think we should set the max-width to be 100%. And fallback width to 0 if value is negative.
Issue2.
What is happening?
No screenreader text for progress.
What should be happening?
Should add screenreader text for progress.
I added
aria-valuetext={screenreaderText}with aria-valuemin, aria-valuemax and aria-valuenow but it is not read aria-valuetext.After I removed aria-valuemin, aria-valuemax and aria-valuenow then aria-valuetext gets read out. Not sure why.