We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think we should revert b787f37
Using aria-labelledby in this way is no longer recommended by Bootstrap https://getbootstrap.com/docs/5.3/components/accordion/ (removed in twbs/bootstrap#37766)
Siteimprove is flagging this for us:
aria-label does not work on <div> nor <span>. A <div> and <span> are neither landmarks nor interactive content. An aria-label will not be read by a screen reader (and rightly so).
aria-label does not work on <div> nor <span>.
<div>
<span>
A <div> and <span> are neither landmarks nor interactive content. An aria-label will not be read by a screen reader (and rightly so).
https://stackoverflow.com/a/42682268/162852
Another possibility is adding role="group"
role="group"
The text was updated successfully, but these errors were encountered:
I need to dig a bit more on this, because I use this site a lot for aria guidance - https://www.w3.org/WAI/WCAG21/Techniques/#aria, and I found this (with an alert that their example still needs additional testing) - https://www.w3.org/WAI/ARIA/apg/patterns/accordion/examples/accordion/ where they are using aria-labelledby in the exact same way as we are. Yet, I see how SiteImprove is picking this up as an error too.
Sorry, something went wrong.
@dbranchini it looks like the accordion example there uses role="region", which seems like a reasonable solution if you agree.
role="region"
Yes, that sounds like a good solution.
Successfully merging a pull request may close this issue.
I think we should revert b787f37
Using aria-labelledby in this way is no longer recommended by Bootstrap https://getbootstrap.com/docs/5.3/components/accordion/ (removed in twbs/bootstrap#37766)
Siteimprove is flagging this for us:
https://stackoverflow.com/a/42682268/162852
Another possibility is adding
role="group"
The text was updated successfully, but these errors were encountered: