Skip to content

Commit 1dadc8e

Browse files
committed
Fix TabButton component disabled state
1 parent b4cc25a commit 1dadc8e

File tree

1 file changed

+5
-1
lines changed
  • apps/webapp/app/components/primitives

1 file changed

+5
-1
lines changed

apps/webapp/app/components/primitives/Tabs.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ export function TabButton({
9494

9595
return (
9696
<button
97-
className={cn("group flex flex-col items-center pt-1 focus-custom", props.className)}
97+
className={cn(
98+
"group flex flex-col items-center pt-1 focus-custom",
99+
props.className,
100+
props.disabled && "pointer-events-none opacity-50"
101+
)}
98102
type="button"
99103
ref={ref}
100104
{...props}

0 commit comments

Comments
 (0)