Skip to content

Commit

Permalink
fix: add pointer to setting inputs (#1374)
Browse files Browse the repository at this point in the history
Co-authored-by: Afonso Jorge Ramos <[email protected]>
  • Loading branch information
setchy and afonsojramos authored Jul 15, 2024
1 parent 0caac31 commit f9669f0
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 98 deletions.
4 changes: 2 additions & 2 deletions src/components/fields/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Checkbox: FC<ICheckbox> = (props: ICheckbox) => {
<input
type="checkbox"
id={props.name}
className="size-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500"
className="size-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500 cursor-pointer"
checked={props.checked}
onChange={props.onChange}
disabled={props.disabled}
Expand All @@ -27,7 +27,7 @@ export const Checkbox: FC<ICheckbox> = (props: ICheckbox) => {
<div className="ml-3">
<label
htmlFor={props.name}
className="font-medium text-gray-700 dark:text-gray-200"
className="font-medium text-gray-700 dark:text-gray-200 cursor-pointer"
style={
props.disabled ? { textDecoration: 'line-through' } : undefined
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/fields/RadioGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const RadioGroup: FC<IRadioGroup> = (props: IRadioGroup) => {
>
<input
type="radio"
className="size-4 border-gray-300 text-indigo-600 focus:ring-indigo-500"
className="size-4 border-gray-300 text-indigo-600 focus:ring-indigo-500 cursor-pointer"
id={`${props.name}_${item.value.toLowerCase()}`}
name={props.name}
value={item.value}
Expand All @@ -57,7 +57,7 @@ export const RadioGroup: FC<IRadioGroup> = (props: IRadioGroup) => {
/>
<label
htmlFor={`${props.name}_${item.value.toLowerCase()}`}
className="ml-3 block text-sm font-medium text-gray-700 dark:text-white"
className="ml-3 block text-sm font-medium text-gray-700 dark:text-white cursor-pointer"
>
{item.label}
</label>
Expand Down
8 changes: 4 additions & 4 deletions src/components/fields/__snapshots__/Checkbox.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions src/components/fields/__snapshots__/RadioGroup.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f9669f0

Please sign in to comment.