Skip to content

Commit 83f5619

Browse files
fix(home): remove bottom margin from buttons on home page
- Add nhsnotify-home-page class to home layout for page-specific styling - Add CSS override to remove margin-bottom from nhsuk-button class within home page - Ensures buttons on home page have no bottom margin while preserving styling on other pages
1 parent bf2cb91 commit 83f5619

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/_layouts/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
33
---
4-
<main id="maincontent" role="main">
4+
<main id="maincontent" role="main" class="nhsnotify-home-page">
55
{{ content }}
66
</main>

docs/_sass/_nhsnotify.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@
206206
}
207207
}
208208

209+
// Home page button margin override
210+
.nhsnotify-home-page .nhsuk-button {
211+
margin-bottom: 0;
212+
}
213+
209214
.nhsuk-breadcrumb__item {
210215

211216
&:not(:last-child)::after {

0 commit comments

Comments
 (0)