Skip to content

Commit

Permalink
fix(InputGroupAddon): disabled state opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Jul 20, 2024
1 parent 828b96e commit 3f411df
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/InputGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@ export function InputGroupAddon({
});

return (
<span ref={ref} className={clsx(className, "pointer-events-none z-10")}>
<span className="pointer-events-auto text-ui-neutral-950/65 transition group-disabled/input:text-ui-neutral-950/20">
{children}
</span>
<span
ref={ref}
className={clsx(
className,
"pointer-events-none z-10 text-ui-neutral-950/65 transition *:pointer-events-auto disabled:*:opacity-100 group-disabled/input:opacity-35",
)}
>
{children}
</span>
);
}

0 comments on commit 3f411df

Please sign in to comment.