Skip to content

Commit

Permalink
fix(sidebar): set aria-expanded on expandable categories
Browse files Browse the repository at this point in the history
  • Loading branch information
pkowaluk committed Mar 14, 2022
1 parent ad88f5c commit 5953fa7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ function DocSidebarItemCategory({
}
}
aria-current={isCurrentPage ? 'page' : undefined}
aria-expanded={collapsible ? !collapsed : undefined}
href={collapsible ? hrefWithSSRFallback ?? '#' : hrefWithSSRFallback}
{...props}>
{label}
Expand Down

0 comments on commit 5953fa7

Please sign in to comment.