Skip to content

Commit

Permalink
Merge pull request #4715 from nextcloud-libraries/fix/app-navigation-…
Browse files Browse the repository at this point in the history
…expanded

fix(NcAppNavigationItem): Do not include `aria-expanded` attribute if there are no children
  • Loading branch information
raimund-schluessler committed Oct 30, 2023
2 parents 903dc13 + a6d0f19 commit 374b99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NcAppNavigationItem/NcAppNavigationItem.vue
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 374b99d

Please sign in to comment.