Skip to content

Commit

Permalink
fix(ffe-form): make place for fieldmessage under input group
Browse files Browse the repository at this point in the history
BREAKING CHANGE: New markup
  • Loading branch information
Peter Hellstrand committed Apr 16, 2024
1 parent 0d0096d commit 81a59ed
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/ffe-form/less/input-group.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.ffe-input-group {
border: 0;
padding: 0 0 @ffe-spacing-lg;
position: relative;

[aria-invalid='true'] {
Expand All @@ -25,7 +24,7 @@

> * {
margin-top: 0;
margin-bottom: @ffe-spacing-xs;
margin-bottom: var(--ffe-spacing-xs);

&:nth-child(1) {
margin-bottom: 0;
Expand All @@ -34,18 +33,22 @@

.ffe-field-message--error {
margin: 0;
height: 0;
}

&__description {
margin-bottom: @ffe-spacing-xs;
margin-bottom: var(--ffe-spacing-xs);
}

&--no-extra-margin {
padding-bottom: 0;

.ffe-field-message--error {
margin-bottom: @ffe-spacing-xs;
margin-bottom: var(--ffe-spacing-xs);
height: initial;
}
}

&__field-message {
min-height: 1lh;
}
}

0 comments on commit 81a59ed

Please sign in to comment.