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 (
  • {children} +
  • ); } @@ -55,9 +63,13 @@ function BreadcrumbsItem({ function HomeBreadcrumbItem() { const homeHref = useBaseUrl('/'); return ( - - 🏠 - +
  • + + 🏠 + +
  • ); } @@ -76,10 +88,16 @@ export default function DocBreadcrumbs(): JSX.Element | null { styles.breadcrumbsContainer, )} aria-label="breadcrumbs"> -