-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Two unlabelled .monaco-status
divs with role=complementary
breaks accessibility compliance
#2448
Comments
@isidorn this was added via microsoft/vscode@3edd0f9 |
I can add the aria-label to distinguish the elements. However these labels will never be read out by the screen reader, IMHO this will make no impact on the user experience. |
After further pondering I will do no action here. Reason is that even if we were to add @casey-speer if there is an exact user scenario with a screen reader that you think could be improved with this issue please let me know and I can reopen this. |
@isidorn Sorry I'm late getting back to you. I'm not positive how assistive technologies across the board will treat this and I see the point of not adding the label since the two divs are a workaround, but FWIW it is breaking the compliance checks. Maybe I'm able to work around it, but would be nice if there was a way to allow the duplicate messages etc and somehow still please |
All screen readers treat this as we want, we tested it out. |
Reading microsoft/vscode@3edd0f9: The issue discussion at microsoft/vscode#99466 seemed to consider setting |
@clintonc what conformance testing and unwanted labelling are you talking about? I am not sure I follow, sorry. |
The latest Monaco editor is triggering accessibility errors in
cypress-axe: 0.12.2
+axe-core: 4.1.4
, specifically thelandmark-unique
rule, due to there being two.monaco-status
divs withrole=complementary
but noaria-label
oraria-labelledby
to distinguish them.Distinguishing the landmarks is required for level A accessibility compliance. See, e.g.
I believe this also causes failures for earlier versions of
axe-core
/cypress-axe
.monaco-editor version: 0.23.0
Browser: Chrome 89.0.4389.128
OS: MacOS 10.15.7
Playground code that reproduces the issue: Run
document.querySelectorAll('.monaco-status[role="complementary"]')
in the browser console on the monaco or vscode. Two div appear with arole="complementary"
but noaria-label
to distinguish them.The text was updated successfully, but these errors were encountered: