Skip to content

Commit 6c889d4

Browse files
committed
fix(Input): aria-invalid tailwind classname
1 parent 7b12d92 commit 6c889d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ui/input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const inputVariants = cva(
1010
'selection:bg-primary selection:text-primary-foreground',
1111
'[&>input]:placeholder:text-muted-foreground',
1212
'focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/50',
13-
'has-[[aria-invalid]]:border-destructive has-[[aria-invalid]]:ring-destructive/20 dark:has-[[aria-invalid]]:ring-destructive/40',
13+
'has-aria-invalid:border-destructive has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40',
1414
'[&>input]:disabled:opacity-50'
1515
),
1616
{

0 commit comments

Comments
 (0)