Skip to content

Commit

Permalink
fix(NcAppNavigationItem): Do not include aria-expanded attribute if…
Browse files Browse the repository at this point in the history
… there are no children

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Oct 30, 2023
1 parent 84c5b25 commit a6d0f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NcAppNavigationItem/NcAppNavigationItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ Just set the `pinned` prop.
<a v-if="!undo"
class="app-navigation-entry-link"
:aria-description="ariaDescription"
:aria-expanded="opened.toString()"
:aria-expanded="hasChildren ? opened.toString() : undefined"
:href="href || routerLinkHref || '#'"
:target="isExternal(href) ? '_blank' : undefined"
:title="title || name"
Expand Down

0 comments on commit a6d0f19

Please sign in to comment.