File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
apps/webapp/app/components/primitives Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,8 @@ export const Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(
109
109
return (
110
110
< div
111
111
className = { cn (
112
- "group flex cursor-pointer items-start gap-x-2 transition read-only:cursor-default disabled:cursor-default" ,
112
+ "group flex items-start gap-x-2 transition " ,
113
+ props . readOnly || disabled ? "cursor-default" : "cursor-pointer" ,
113
114
buttonClassName ,
114
115
isChecked && isCheckedClassName ,
115
116
( isDisabled || props . readOnly ) && isDisabledClassName ,
@@ -135,7 +136,8 @@ export const Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(
135
136
disabled = { isDisabled }
136
137
className = { cn (
137
138
inputPositionClasses ,
138
- "cursor-pointer rounded-sm border border-slate-700 bg-transparent transition checked:!bg-indigo-500 read-only:cursor-default read-only:border-slate-650 read-only:!bg-slate-700 group-hover:bg-slate-900 group-hover:checked:bg-indigo-500 group-focus:ring-1 focus:ring-indigo-500 focus:ring-offset-0 focus:ring-offset-transparent focus-visible:outline-none focus-visible:ring-indigo-500 disabled:cursor-default disabled:border-slate-650 disabled:!bg-slate-700"
139
+ props . readOnly || disabled ? "cursor-default" : "cursor-pointer" ,
140
+ "rounded-sm border border-slate-700 bg-transparent transition checked:!bg-indigo-500 read-only:border-slate-650 read-only:!bg-slate-700 group-hover:bg-slate-900 group-hover:checked:bg-indigo-500 group-focus:ring-1 focus:ring-indigo-500 focus:ring-offset-0 focus:ring-offset-transparent focus-visible:outline-none focus-visible:ring-indigo-500 disabled:border-slate-650 disabled:!bg-slate-700"
139
141
) }
140
142
id = { id }
141
143
ref = { ref }
@@ -145,7 +147,7 @@ export const Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(
145
147
< label
146
148
htmlFor = { id }
147
149
className = { cn (
148
- "cursor-pointer read-only:cursor- default disabled: cursor-default " ,
150
+ props . readOnly || disabled ? "cursor-default" : " cursor-pointer ",
149
151
labelClassName
150
152
) }
151
153
onClick = { ( e ) => e . preventDefault ( ) }
You can’t perform that action at this time.
0 commit comments