Allow displaying field status (error, warning, info) under form fields (#38175)

This commit is contained in:
diondiondion authored and GitHub committed 2026-03-13 13:55:17 +00:00
1 parent fdbc3c8a16
commit 890b2673fc
31 files changed
+331 -52

No files matched your search

@@ -1,7 +1,9 @@
.fieldset {
--container-gap: 12px;
display: flex;
flex-direction: column;
gap: 12px;
gap: var(--container-gap);
color: var(--color-text-primary);
font-size: 15px;
}
@@ -17,3 +19,11 @@
column-gap: 24px;
}
}
.status {
// If there's no content, we need to compensate for the parent's
// flex gap to avoid extra spacing below the field.
&:empty {
margin-top: calc(-1 * var(--container-gap));
}
}