Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update tests-badge.tsx

Tim Wilsone3b058c5290c
diff --git a/apps/web/ui/links/tests-badge.tsx b/apps/web/ui/links/tests-badge.tsx
index 74654b2b18..e07992fb81 100644
--- a/apps/web/ui/links/tests-badge.tsx
+++ b/apps/web/ui/links/tests-badge.tsx
@@ -1,6 +1,7 @@
"use client";
import { Flask } from "@dub/ui/icons";
+import { cn } from "@dub/utils";
import * as HoverCard from "@radix-ui/react-hover-card";
import { useLinkCardContext } from "./link-card";
import { ResponseLink } from "./links-container";
@@ -27,7 +28,10 @@ export function TestsBadge({
<HoverCard.Trigger>
<button
type="button"
- className="rounded-md p-1.5 text-neutral-800 transition-colors duration-100 hover:bg-blue-50 hover:text-blue-500 active:bg-blue-100"
+ className={cn(
+ "rounded-md p-1.5 text-neutral-800 transition-colors duration-100 hover:bg-blue-50 hover:text-blue-500 active:bg-blue-100",
+ showTests ? "text-blue-500" : "text-neutral-800",
+ )}
aria-pressed={showTests}
onClick={() => setShowTests((s) => !s)}
>