Skip to content

Commit

Permalink
fix(app-layout): sidebar item aria current (#1548)
Browse files Browse the repository at this point in the history
  • Loading branch information
portikM authored Aug 9, 2024
1 parent b21d36f commit b1edd60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<component
:is="!useAnchorTag ? 'router-link' : 'div'"
v-slot="slotProps"
:aria-current="item.active ? 'page' : undefined"
:custom="!useAnchorTag ? true : undefined"
:to="!useAnchorTag && !openInNewWindow ? item.to : undefined"
>
<a
:aria-controls="(item as SidebarPrimaryItem).items?.length && (item as SidebarPrimaryItem).expanded ? `subnav-${(item as SidebarPrimaryItem).key}` : undefined"
:aria-current="item.active ? 'page' : undefined"
:aria-expanded="(item as SidebarPrimaryItem).items?.length && (item as SidebarPrimaryItem).expanded ? true : undefined"
class="sidebar-item-link"
:class="{ 'sidebar-item-external-link': openInNewWindow, 'router-link': !useAnchorTag }"
Expand Down

0 comments on commit b1edd60

Please sign in to comment.