Skip to content

Commit

Permalink
🖊️ Rewrite form messages spacing styles (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClumsyVlad authored Mar 22, 2024
1 parent bd36582 commit c63254b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ui/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const FormDescription = forwardRef<
const { formDescriptionId } = useFormField();

return (
<p
<div
ref={ref}
id={formDescriptionId}
className={cn("text-sm text-muted-foreground", className)}
Expand All @@ -193,7 +193,7 @@ const FormMessages = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(
return (
<div
ref={ref}
className={cn("flex gap-4 [&>p]:mt-0.5 [&>span]:mt-0.5", className)}
className={cn("flex gap-4 [&>*]:mt-0.5", className)}
{...props}
>
{children}
Expand Down

0 comments on commit c63254b

Please sign in to comment.