diff --git a/packages/docusaurus-theme-classic/src/theme/DocBreadcrumbs/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocBreadcrumbs/index.tsx index f912aac438a4..cdb69965ec61 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocBreadcrumbs/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocBreadcrumbs/index.tsx @@ -26,11 +26,13 @@ function BreadcrumbsItemLink({ }): JSX.Element { const className = clsx('breadcrumbs__link', styles.breadcrumbsItemLink); return href ? ( - - {children} + + {children} ) : ( - {children} + + {children} + ); } @@ -38,16 +40,22 @@ function BreadcrumbsItemLink({ function BreadcrumbsItem({ children, active, + index, }: { children: ReactNode; active?: boolean; + index: number; }): JSX.Element { return (