Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add pointer to setting inputs #1374

Merged
merged 2 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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