Skip to content

Commit

Permalink
Update packages/ui/components/Form/Fields/Field.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Prince Rajpoot <[email protected]>
  • Loading branch information
KhudaDad414 and princerajpoot20 authored Nov 27, 2023
1 parent 16464e6 commit 9ee7681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/components/Form/Fields/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Field = ({ label, tooltip, children, className, name }: FieldProps)
<RadixForm.Field name={name} className={`flex flex-col gap-2 ${className}`}>
{ label &&
<RadixForm.Label>
<Label label={label} tooltip={tooltip} />
<Label label={label} tooltip={tooltip} aria-describedby={tooltip ? `${name}-tooltip` : undefined} />
</RadixForm.Label>
}
<RadixForm.Control asChild>{children}</RadixForm.Control>
Expand Down

0 comments on commit 9ee7681

Please sign in to comment.