diff --git a/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category/index.tsx index f87a0f8867f4..2bd3c6540236 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category/index.tsx @@ -135,8 +135,13 @@ function CollapseButton({ } function CategoryLinkLabel({label}: {label: string}) { + // Note: The `title` attribute is intentionally omitted here. + // Adding title={label} when the visible text is already `label` creates + // redundant tooltip text, which WAVE and other accessibility tools flag + // as a WCAG violation. Screen readers already read the visible label. + // See: https://github.com/facebook/docusaurus/issues/11945 return ( - + {label} );