Skip to content

Commit

Permalink
fieldset spacing below
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Jun 20, 2024
1 parent 4c1a26a commit 4652513
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/css/fieldset.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@

.ds-fieldset__description {
color: var(--ds-color-neutral-text-subtle);
margin-bottom: var(--ds-spacing-2);
}

.ds-fieldset__legend {
display: contents;
}

.ds-fieldset:not(:has(.ds-fieldset__description)) .ds-fieldset__legend {
margin-bottom: var(--ds-spacing-2);
}

.ds-fieldset--readonly .ds-fieldset__legend__content {
display: inline-flex;
}

.ds-fieldset:not(:has(.ds-fieldset__description)) .ds-fieldset__legend__content {
margin-bottom: var(--ds-spacing-4);
}

.ds-fieldset--readonly .ds-fieldset__readonly__icon {
height: 1.2em;
width: 1.2em;
Expand Down

0 comments on commit 4652513

Please sign in to comment.