feat(theme-classic): add aria-current to sidebar category link (#6427)

This commit is contained in:
Joshua Chen 2022-01-21 11:40:27 +08:00 committed by GitHub
parent 8a092f508d
commit 807b4c2ced
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,6 +171,7 @@ function DocSidebarItemCategory({
onItemClick?.(item);
}
}
aria-current={isActive ? 'page' : undefined}
href={collapsible ? hrefWithSSRFallback ?? '#' : hrefWithSSRFallback}
{...props}>
{label}