Skip to content

Commit

Permalink
Updates details behaviour to remove margin-bottom for all elements
Browse files Browse the repository at this point in the history
If we have a form-group it will not be caught by the logic that only targets paragraphs.

This is consistent with the tabs and conditional reveal logic.
  • Loading branch information
NickColley committed Jul 13, 2018
1 parent fced25f commit 1eb86eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/components/details/_details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
margin-bottom: govuk-spacing(4);
}

.govuk-details__text p:last-child {
.govuk-details__text > :last-child {
margin-bottom: 0;
}
}

0 comments on commit 1eb86eb

Please sign in to comment.