New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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! |
Is this issue still not resolved, if not , i am interested in it :-) |
Based on PR #1787, I believe this has been resolved |
progress
#8.1.1
Issue1.
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.
The text was updated successfully, but these errors were encountered: