Daily Accessibility ReviewModal Dialogs Missing Accessible Name (aria-label/aria-labelledby) #17837
Unanswered
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
The
AppModal.vuecomponent renders arole="dialog"element without an accessible name (aria-labeloraria-labelledby). This means screen reader users are not informed of the dialog's purpose when focus moves into it.WCAG 2.2 Reference
role="dialog") must have an accessible name provided viaaria-labeloraria-labelledbyso that assistive technologies can announce the dialog's purpose to users.Affected File
shell/components/AppModal.vue(lines 198–210):Note: the
<div>hasrole="dialog"andaria-modal="true", but noaria-labeloraria-labelledby.Impact
When a modal opens, screen readers announce "dialog" without any context about what the dialog contains or its purpose. Users relying on assistive technologies cannot determine the purpose of the modal.
Recommended Fix
name/titletoAppModalfor the accessible name, and bind it:AppModalpass anaria-labeloraria-labelledbyviav-bind="$attrs", and document this as a usage requirement.Dialog.vue,PromptRemove.vue,ModalManager.vue, andModalWithCard.vuecomponents — all of which wrapAppModal— should also be reviewed to ensure they supply an accessible name.Beta Was this translation helpful? Give feedback.
All reactions