Skip to content

Commit

Permalink
fix: remove incorrect role attrs from menu bar
Browse files Browse the repository at this point in the history
All these roles are correctly set by NcAction* components when needed.
Setting this roles in mixins and menu bar puts them on wrong elements.

Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Jan 9, 2024
1 parent 2a8aef9 commit 6bd3df5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/components/Menu/ActionAttachmentUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
:title="actionEntry.label"
:aria-label="actionEntry.label"
:container="menuIDSelector"
role="menu"
aria-haspopup>
<template #icon>
<component :is="icon"
Expand Down
1 change: 0 additions & 1 deletion src/components/Menu/ActionList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<template>
<NcActions :title="tooltip"
class="entry-list-action entry-action"
role="menu"
v-bind="state"
:container="menuIDSelector"
:aria-label="actionEntry.label"
Expand Down
1 change: 0 additions & 1 deletion src/components/Menu/ActionSingle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ export default {
attrs: {
title,
type: attrs.active ? 'primary' : 'tertiary',
role: 'menuitem',
'data-text-action-entry': actionEntry.key,
...attrs,
},
Expand Down

0 comments on commit 6bd3df5

Please sign in to comment.