Skip to content

Commit 058c76c

Browse files
Fix header navigation styles to be compatible with nhsuk-frontend v9.4.x
1 parent 1fa8e57 commit 058c76c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

app/assets/stylesheets/_header.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,19 @@
99
}
1010

1111
.app-header__navigation-item--current {
12-
box-shadow: inset 0 ($nhsuk-focus-width * -1) $nhsuk-border-color;
12+
.nhsuk-header__navigation-link {
13+
border-bottom-color: $nhsuk-border-color;
14+
}
15+
1316
.nhsuk-header__drop-down & {
1417
box-shadow: inset $nhsuk-focus-width 0 $nhsuk-link-color;
18+
19+
.nhsuk-header__navigation-link {
20+
border-bottom-color: transparent;
21+
}
1522
}
1623
}
24+
1725
.app-header__navigation-item--with-count {
1826
.app-count {
1927
@include nhsuk-font(14, $line-height: 1);

app/assets/stylesheets/_overrides.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// `$nhsuk-page-width` isn’t globally editable, so need to apply manually
22
.app-signed-in {
33
.nhsuk-width-container,
4-
.nhsuk-header__navigation-list,
5-
.nhsuk-header__container {
4+
.nhsuk-header__container,
5+
.nhsuk-navigation {
66
max-width: $app-page-width;
77

88
@include govuk-media-query($from: desktop) {

0 commit comments

Comments
 (0)