Skip to content

Commit

Permalink
refactor(InputGroupAddon): improve pointer event handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Jul 20, 2024
1 parent 5a5066d commit b435d06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/InputGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function InputGroupAddon({
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",
"pointer-events-none z-10 text-ui-neutral-950/65 transition disabled:*:opacity-100 group-disabled/input:opacity-35",
)}
>
{children}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/controlClassName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function isEquilateral(shape: ControlProps["shape"]) {

export function controlClassName({ size, shape }: ControlProps) {
return clsx(
"transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ui-accent-600 disabled:pointer-events-none disabled:opacity-35",
"pointer-events-auto transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ui-accent-600 disabled:pointer-events-none disabled:opacity-35",
size === "sm" && clsx("h-8 text-base/none", isEquilateral(shape) && "w-8"),
size === "md" &&
clsx("h-10 text-base/none", isEquilateral(shape) && "w-10"),
Expand Down

0 comments on commit b435d06

Please sign in to comment.