-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Legend on form radio button group not accessible to screen reader #5918
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
Comments
@jackmu95 Thank you for taking a look at this so quickly! Can I ask what the reason for removing the bug label was? I have practically zero experience with accessibility/screen readers, so I apologize if there's something I'm missing. It appears to me that bootstrap-vue's current accessibility markup for radio button groups is invalid--is that understanding correct? Thank you for your time. |
A possible solution: Add <div tabindex="-1" role="group" class="bv-no-focus-ring"> to <div tabindex="-1" role="group" class="bv-no-focus-ring" aria-labelledby="__BVID__753__BV_label_"> |
@ccsaposs Can you please confirm that the issue is fixed in this deployment preview of the fix: |
Looks good! Thank you for fixing this! |
@jackmu95 I'm running into the same issue when adding a description to a radio button group. I believe the solution would be the same as the solution for the label--the only difference would be adding |
@ccsaposs Can you please create another issue for that. |
Describe the bug
The label for a b-form-group containing a b-form-radio-group is not accessible to the ChromeVox screen reader. Instead of reading the label, ChromeVox reads "Radio button group".
Steps to reproduce the bug
Expected behavior
ChromeVox should have read "Toggle this custom radio, radio button selected; 1 of 4; Radios using options"
Versions
Libraries:
Live bootstrap-vue.org website
Environment:
Demo link
https://bootstrap-vue.org/docs/components/form-radio#grouped-radios
Additional context
Here's the relevant HTML of the bootstrap-vue website:
I believe the issue is with the first div with
role="group"
and the second div withrole="radiogroup"
Here's an example that works correctly: https://www.last-child.com/legend-aria-describedby/
The text was updated successfully, but these errors were encountered: