Fix spacing between button and selected areas

Adding left margin to the button meant that when it wrapped onto a new
line it didn’t align flush with the left edge of its containing column.

Instead we can:
- move the link outside the list (which is better semantically anyway)
- then add the margin to the last item of the list (which is now the
  last selected area, not the link)
This commit is contained in:
Chris Hill-Scott
2020-08-18 09:51:52 +01:00
parent f5a664276a
commit 05075b5af5
2 changed files with 5 additions and 1 deletions

View File

@@ -55,6 +55,10 @@
}
&:last-child {
margin-right: govuk-spacing(1) * 1.5;
}
&--unremoveable {
padding-right: govuk-spacing(2);
background: $light-blue-25;