Skip to content

Commit

Permalink
missing isSelected
Browse files Browse the repository at this point in the history
  • Loading branch information
TGlide committed Sep 7, 2023
1 parent 2a96a14 commit 690c01d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/routes/docs/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,12 @@
{@const id = getGroupItemId(navGroup, groupItem)}
<li>
{#if isNavLink(groupItem)}
<a class="aw-side-nav-button" href={groupItem.href} use:melt={$item({ id })}>
<a
class="aw-side-nav-button"
class:is-selected={$page.url?.pathname === groupItem.href}
href={groupItem.href}
use:melt={$item({ id })}
>
<span class={groupItem.icon} aria-hidden="true" />
<span class="aw-caption-400">{groupItem.label}</span>
</a>
Expand Down

0 comments on commit 690c01d

Please sign in to comment.