Skip to content

Commit

Permalink
Only apply margin to details summary when open
Browse files Browse the repository at this point in the history
  • Loading branch information
owenatgov committed Sep 24, 2024
1 parent 1d678c6 commit 36355e6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
.govuk-details__summary {
// Make the focus outline shrink-wrap the text content of the summary
display: inline-block;
}

.govuk-details[open] .govuk-details__summary {
margin-bottom: govuk-spacing(1);
}

Expand Down

0 comments on commit 36355e6

Please sign in to comment.