Skip to content

Commit

Permalink
feat(theme-classic): add aria-current to sidebar category link
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Jan 21, 2022
1 parent 8a092f5 commit 3e146e4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ function DocSidebarItemCategory({
onItemClick?.(item);
}
}
aria-current={isActive ? 'page' : undefined}
href={collapsible ? hrefWithSSRFallback ?? '#' : hrefWithSSRFallback}
{...props}>
{label}
Expand Down

0 comments on commit 3e146e4

Please sign in to comment.