Skip to content

Commit eb81eec

Browse files
Fix margin collapse issue
1 parent 7ecf102 commit eb81eec

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/components/back-link/_index.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
////
1414

1515
.nhsuk-back-link {
16-
margin-top: nhsuk-spacing(3);
17-
line-height: 1; // [5]
16+
padding-top: nhsuk-spacing(3);
17+
line-height: 1; // [4]
1818

1919
@include nhsuk-media-query($from: tablet) {
20-
margin-top: nhsuk-spacing(4);
20+
padding-top: nhsuk-spacing(4);
2121
}
2222
}
2323

packages/components/breadcrumb/_index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
////
1616

1717
.nhsuk-breadcrumb {
18-
margin-top: nhsuk-spacing(3);
18+
padding-top: nhsuk-spacing(3);
1919
@include nhsuk-print-hide; // [1]
2020

2121
@include nhsuk-media-query($from: tablet) {
22-
margin-top: nhsuk-spacing(4);
22+
padding-top: nhsuk-spacing(4);
2323
}
2424
}
2525

0 commit comments

Comments
 (0)