Fixing issues with field

This commit is contained in:
Ronan Berder
2025-11-04 20:41:23 +08:00
parent f82b1d79d4
commit b8d8b1741c
3 changed files with 131 additions and 153 deletions
+17 -5
View File
@@ -697,19 +697,31 @@
@apply text-base font-medium mb-3;
& + p {
@apply text-sm text-muted-foreground;
@apply -mt-1.5;
}
}
}
.field {
@apply flex flex-col w-full gap-3 data-[invalid=true]:text-destructive [&>*]:w-full [&>.sr-only]:w-auto;
.description {
@apply text-sm text-muted-foreground;
h2,
h3 {
@apply flex w-fit items-center gap-2 text-sm leading-snug font-medium;
}
.error {
@apply text-sm text-destructive font-medium;
[role="alert"] {
@apply text-sm text-destructive font-normal;
ul {
@apply ml-4 flex list-disc flex-col gap-1;
}
}
section {
@apply flex flex-1 flex-col gap-1.5 leading-snug;
}
}
.fieldset legend + p,
.field p {
@apply text-muted-foreground text-sm leading-normal font-normal last:mt-0 nth-last-2:-mt-1 [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4;
}
}