Skip to content

Commit

Permalink
fix(menubar): Add aria-selected and aria-activedescendant to menu bar…
Browse files Browse the repository at this point in the history
… items (fix #3911)

Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliushaertl committed Oct 20, 2023
1 parent 4d334c9 commit b2252bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Menu/ActionList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
v-bind="state"
:container="menuIDSelector"
:aria-label="actionEntry.label"
:aria-activedescendant="!!currentChild"
:force-menu="true"
:name="actionEntry.label"
:data-text-action-entry="actionEntry.key"
Expand Down
1 change: 1 addition & 0 deletions src/components/Menu/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const getActionState = (actionEntry, $editor) => {
disabled: isDisabled(actionEntry, $editor),
class: getEntryClasses(actionEntry, active),
active,
'aria-selected': active,
}
}

Expand Down

0 comments on commit b2252bb

Please sign in to comment.