-
Notifications
You must be signed in to change notification settings - Fork 94
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
fix(menubar): Add aria-selected and aria-activedescendant to menu bar items (fix #3911) #4888
Conversation
b2252bb
to
34141eb
Compare
src/components/Menu/ActionList.vue
Outdated
@@ -27,6 +27,7 @@ | |||
v-bind="state" | |||
:container="menuIDSelector" | |||
:aria-label="actionEntry.label" | |||
:aria-activedescendant="!!currentChild" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be a boolean value, but the ID of the currently active (focused) element.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meaning this should be set on the menu toggle with the value of the active action button in the popover
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, seems I mixed that up, will have a look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adjusted to have a unique id matching with the menu entries.
… items (fix #3911) Signed-off-by: Julius Härtl <[email protected]>
34141eb
to
15ae86a
Compare
📝 Summary
Fixes #3911
🏁 Checklist
npm run lint
/npm run stylelint
/composer run cs:check
)