Skip to content

Commit a310c7e

Browse files
committed
fix(navbar): add pointer-events-none to decorative spans blocking link clicks
1 parent 2ae1bf0 commit a310c7e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

web/src/components/navbar/navbar.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ export const Navbar = () => {
5050
className="relative font-medium px-3 py-2 rounded-md transition-all duration-200 hover:bg-accent hover:text-accent-foreground group"
5151
>
5252
<span className="relative z-10">Docs</span>
53-
<span className="absolute inset-0 rounded-md bg-gradient-to-r from-blue-500/0 via-blue-500/5 to-purple-500/0 opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
53+
<span className="pointer-events-none absolute inset-0 rounded-md bg-gradient-to-r from-blue-500/0 via-blue-500/5 to-purple-500/0 opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
5454
</Link>
5555
<Link
5656
href="/pricing"
5757
className="relative font-medium px-3 py-2 rounded-md transition-all duration-200 hover:bg-accent hover:text-accent-foreground group"
5858
>
5959
<span className="relative z-10">Pricing</span>
60-
<span className="absolute inset-0 rounded-md bg-gradient-to-r from-blue-500/0 via-blue-500/5 to-purple-500/0 opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
60+
<span className="pointer-events-none absolute inset-0 rounded-md bg-gradient-to-r from-blue-500/0 via-blue-500/5 to-purple-500/0 opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
6161
</Link>
6262
<Link
6363
href="https://github.com/CodebuffAI/codebuff"
@@ -67,15 +67,15 @@ export const Navbar = () => {
6767
>
6868
<Icons.github className="h-4 w-4 transition-transform duration-200 group-hover:scale-110" />
6969
<span className="relative z-10">GitHub</span>
70-
<span className="absolute inset-0 rounded-md bg-gradient-to-r from-blue-500/0 via-blue-500/5 to-purple-500/0 opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
70+
<span className="pointer-events-none absolute inset-0 rounded-md bg-gradient-to-r from-blue-500/0 via-blue-500/5 to-purple-500/0 opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
7171
</Link>
7272
<Link
7373
href="/store"
7474
className="relative font-medium px-3 py-2 rounded-md transition-all duration-200 hover:bg-accent hover:text-accent-foreground flex items-center gap-2 group"
7575
>
7676
<Bot className="h-4 w-4 transition-transform duration-200 group-hover:scale-110" />
7777
<span className="relative z-10">Agent Store</span>
78-
<span className="absolute inset-0 rounded-md bg-gradient-to-r from-blue-500/0 via-blue-500/5 to-purple-500/0 opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
78+
<span className="pointer-events-none absolute inset-0 rounded-md bg-gradient-to-r from-blue-500/0 via-blue-500/5 to-purple-500/0 opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
7979
</Link>
8080

8181
{/* Only show Usage link when session is ready and user is authenticated */}
@@ -85,7 +85,7 @@ export const Navbar = () => {
8585
className="relative font-medium px-3 py-2 rounded-md transition-all duration-200 hover:bg-accent hover:text-accent-foreground group"
8686
>
8787
<span className="relative z-10">Usage</span>
88-
<span className="absolute inset-0 rounded-md bg-gradient-to-r from-blue-500/0 via-blue-500/5 to-purple-500/0 opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
88+
<span className="pointer-events-none absolute inset-0 rounded-md bg-gradient-to-r from-blue-500/0 via-blue-500/5 to-purple-500/0 opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
8989
</Link>
9090
)}
9191
</nav>

0 commit comments

Comments
 (0)