mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 20:32:42 +02:00
feat(theme-classic): add aria-current to sidebar category link (#6427)
This commit is contained in:
parent
8a092f508d
commit
807b4c2ced
1 changed files with 1 additions and 0 deletions
|
@ -171,6 +171,7 @@ function DocSidebarItemCategory({
|
|||
onItemClick?.(item);
|
||||
}
|
||||
}
|
||||
aria-current={isActive ? 'page' : undefined}
|
||||
href={collapsible ? hrefWithSSRFallback ?? '#' : hrefWithSSRFallback}
|
||||
{...props}>
|
||||
{label}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue