Skip to content

Commit

Permalink
Add cursor-pointer on label with ID
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Feb 6, 2025
1 parent 215c768 commit 4e3d81f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/Form/Field/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,16 @@ const Field = ({
}: Field) => {
return (
<div className={classNames(wrapperClass[labelPosition], className)}>
<Label required={required} id={id} className={labelClass[labelPosition]}>
<Label
required={required}
id={id}
className={classNames(
labelClass[labelPosition],
{
"cursor-pointer": id !== undefined
}
)}
>
{label}
</Label>
<Input
Expand Down

0 comments on commit 4e3d81f

Please sign in to comment.