Replies: 2 comments 5 replies
-
Hello @palmem29,
Is it an issue spotted by a tool (or a human) while analyzing the markup statically, or is it causing any issues for end-users while they navigate, for instance with screen readers? I checked in the history of the repo, this was integrated a while ago, included in #30936 following actions and discussions in #30755 if it can help to understand why it was done like this. |
Beta Was this translation helpful? Give feedback.
-
Yes it's an issue reported by a tool that is just scanning markup. I'm sure it works perfectly as intended when actually put to use by a user that benefits from these conformance standards. When faced with those issues we can either a) contribute some code to make them go away or b) we can declare the issue to be a false positive. With option a: of course we'd love it if we didn't have to tack on to bootstrap just to appease the conformance crawler. With option b: lawyers can use such a crawler to drum up business and even if it's not a valid conformance concern: cost a client some $ after we've declared "false positive". We hope to have out clients' sites free of as many false positives as possible for this reason. I don't exactly follow the conversation justifying the adding of the role attribute dynamically instead of including it statically in the markup. Could you elaborate? |
Beta Was this translation helpful? Give feedback.
-
Bootstrap adds a role of dialog to both modal and offcanvas elements. The documentation alludes to including aria-labelledby or aria-labels on these elements. I understand that role probably isn't needed until the user engages with the element but this does create a conformance issue in the markup.
Can somone help me understand why bootstrap went this route? If I were to add a role to the markup, closing the element would just remove it. I'd have to add an event to all modal and offcanvas elements and that feels a bit sloppy.
Our goal is to eliminate all conformance issues and this - for years - is one that we have to leave in our reports and the explain away. It doesn't stop lawyers from harassing our clients though.
Beta Was this translation helpful? Give feedback.
All reactions