Skip to content

Commit

Permalink
fix: #531 (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
promer94 committed Jul 31, 2022
1 parent 708d95d commit 6a4a593
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/thick-spiders-perform.md
@@ -0,0 +1,5 @@
---
"nextra-theme-docs": patch
---

fix: #531 unclickable breadcrumb
5 changes: 3 additions & 2 deletions packages/nextra-theme-docs/src/breadcrumb.tsx
Expand Up @@ -20,10 +20,11 @@ export default function Breadcrumb({ activePath }: { activePath: Item[] }) {
) : null}
<div
className={cn(
'transition-colors hover:text-gray-900 dark:hover:text-gray-200 whitespace-nowrap',
'transition-colors whitespace-nowrap',
{
'active text-gray-600 dark:text-gray-400': isActive,
'min-w-[24px] overflow-hidden text-ellipsis': !isActive
'min-w-[24px] overflow-hidden text-ellipsis': !isActive,
'hover:text-gray-900 dark:hover:text-gray-200': isLink && !isActive
}
)}
title={item.title}
Expand Down

0 comments on commit 6a4a593

Please sign in to comment.