style(form): fix spacing before error in inlined elements

This commit is contained in:
Colin Darie 2024-02-21 14:21:48 +01:00
parent 8579736c03
commit 896f48a7b3
No known key found for this signature in database
GPG key ID: 8C76CADD40253590

View file

@ -50,7 +50,12 @@
}
// Don't cumulate margin-bottoms for inlined elements (radio...), because .fr-fieldset has already its own
.fr-fieldset__element > .fr-fieldset > .fr-fieldset__element.fr-fieldset__element--inline {
// This is important because of multilpe conditional hidden elements to not take additional space,
// but we need the usual margin when there are an error or conditional spinner is visible.
// scss-lint:disable SingleLinePerSelector
.fr-fieldset__element
> .fr-fieldset:not(.fr-fieldset--error):not(:has(+ .spinner))
> .fr-fieldset__element.fr-fieldset__element--inline {
margin-bottom: 0;
}