[Glitch] Allow displaying field status (error, warning, info) under form fields
Port 890b2673fc to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
3afb58ad18
commit
8ec882df0c
30 files changed
+330
-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));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user