Skip to content

Commit

Permalink
fix(Switch): cursor not applied on input
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev authored and DSil committed Dec 11, 2023
1 parent 74a9109 commit edfc88b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/orbit-components/src/Switch/index.tsx
Expand Up @@ -19,7 +19,10 @@ const Switch = React.forwardRef<HTMLInputElement, Props>(
)}
>
<input
className="peer absolute inset-0 m-0 h-full w-full p-0 opacity-0"
className={cx(
"peer absolute inset-0 m-0 h-full w-full p-0 opacity-0",
!disabled && "cursor-pointer",
)}
ref={ref}
checked={checked}
disabled={disabled}
Expand Down

0 comments on commit edfc88b

Please sign in to comment.