Skip to content

Full Toolkit for Next-Level Domain Analysis

Add cursor pointer to clickable UI elements 🖱️✨ (#64)

Felix Wotschofsky39a91d576ffe
diff --git a/app/(landing)/_components/sponsors-section.tsx b/app/(landing)/_components/sponsors-section.tsx
index 66dfadd..d3b6840 100644
--- a/app/(landing)/_components/sponsors-section.tsx
+++ b/app/(landing)/_components/sponsors-section.tsx
@@ -70,7 +70,7 @@ export const SponsorsSection: FC<SponsorsSectionProps> = async ({
))}
</div>
<Dialog>
- <DialogTrigger className="text-center text-sm text-zinc-500 underline decoration-dotted underline-offset-4 dark:text-zinc-400">
+ <DialogTrigger className="cursor-pointer text-center text-sm text-zinc-500 underline decoration-dotted underline-offset-4 dark:text-zinc-400">
Add your logo
</DialogTrigger>
<DialogContent>
diff --git a/app/lookup/[domain]/(dns)/_components/dns-table.tsx b/app/lookup/[domain]/(dns)/_components/dns-table.tsx
index 85b34a4..b38e16c 100644
--- a/app/lookup/[domain]/(dns)/_components/dns-table.tsx
+++ b/app/lookup/[domain]/(dns)/_components/dns-table.tsx
@@ -46,7 +46,7 @@ export const DnsTable: FC<DnsTableProps> = ({ records, subvalues }) => (
</h2>
<CollapsibleTrigger
className={cn(
- 'text-sm text-zinc-500 underline decoration-dotted underline-offset-4 dark:text-zinc-400',
+ 'cursor-pointer text-sm text-zinc-500 underline decoration-dotted underline-offset-4 dark:text-zinc-400',
'plausible-event-name=Trace:+Click',
`plausible-event-domain=${sortedRecords[0].name}`,
`plausible-event-type=${recordType}`,
diff --git a/components/ui/button.tsx b/components/ui/button.tsx
index bd814a8..861f04f 100644
--- a/components/ui/button.tsx
+++ b/components/ui/button.tsx
@@ -7,13 +7,13 @@ import { cn } from '@/lib/utils';
const buttonVariants = cva(
[
// Base
- 'relative isolate inline-flex items-center justify-center gap-x-1 rounded-lg border text-base/6 font-semibold',
+ 'relative isolate inline-flex cursor-pointer items-center justify-center gap-x-1 rounded-lg border text-base/6 font-semibold',
// Sizing
'px-[calc(--spacing(3.5)-1px)] py-[calc(--spacing(2.5)-1px)] sm:px-[calc(--spacing(3)-1px)] sm:py-[calc(--spacing(1.5)-1px)] sm:text-sm/6',
// Focus
'focus:outline-hidden data-focus:outline data-focus:outline-2 data-focus:outline-offset-2 data-focus:outline-blue-500',
// Disabled
- 'data-disabled:opacity-50',
+ 'data-disabled:cursor-not-allowed data-disabled:opacity-50',
// Icon
'*:data-[slot=icon]:-mx-0.5 *:data-[slot=icon]:my-0.5 *:data-[slot=icon]:size-5 *:data-[slot=icon]:shrink-0 *:data-[slot=icon]:text-(--btn-icon) sm:*:data-[slot=icon]:my-1 sm:*:data-[slot=icon]:size-4 forced-colors:[--btn-icon:ButtonText] forced-colors:data-hover:[--btn-icon:ButtonText]',
],
diff --git a/components/ui/dialog.tsx b/components/ui/dialog.tsx
index 40ad876..9725ccb 100644
--- a/components/ui/dialog.tsx
+++ b/components/ui/dialog.tsx
@@ -48,7 +48,7 @@ const DialogContent = React.forwardRef<
{...props}
>
{children}
- <DialogPrimitive.Close className="ring-offset-background focus:ring-ring absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none">
+ <DialogPrimitive.Close className="ring-offset-background focus:ring-ring absolute top-4 right-4 cursor-pointer rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none">
<X className="size-4" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
diff --git a/components/ui/select.tsx b/components/ui/select.tsx
index d587485..145fe85 100644
--- a/components/ui/select.tsx
+++ b/components/ui/select.tsx
@@ -29,12 +29,12 @@ const SelectTrigger = React.forwardRef<
<SelectPrimitive.Trigger
ref={ref}
className={cn(
- 'relative box-border block h-10 w-full appearance-none rounded-lg px-3 py-1.5',
+ 'relative box-border block h-10 w-full cursor-pointer appearance-none rounded-lg px-3 py-1.5',
'text-sm/6 text-zinc-950 placeholder:text-zinc-500 dark:text-white',
'border border-zinc-950/10 data-hover:border-zinc-950/20 dark:border-white/10 dark:data-hover:border-white/20',
'bg-transparent dark:bg-white/5',
'focus:outline-hidden',
- 'data-disabled:border-zinc-950/20 dark:data-disabled:border-white/15 dark:data-disabled:bg-white/[2.5%] dark:data-hover:data-disabled:border-white/15',
+ 'data-disabled:cursor-not-allowed data-disabled:border-zinc-950/20 dark:data-disabled:border-white/15 dark:data-disabled:bg-white/[2.5%] dark:data-hover:data-disabled:border-white/15',
'dark:[color-scheme:dark]',
'flex items-center justify-between [&>span]:line-clamp-1',
className,
diff --git a/components/ui/tabs.tsx b/components/ui/tabs.tsx
index b27791e..c17ca42 100644
--- a/components/ui/tabs.tsx
+++ b/components/ui/tabs.tsx
@@ -29,7 +29,7 @@ const TabsTrigger = React.forwardRef<
<TabsPrimitive.Trigger
ref={ref}
className={cn(
- 'ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-xs',
+ 'ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex cursor-pointer items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-xs',
className,
)}
{...props}