Skip to content

Commit f5b1365

Browse files
committed
Fix print issues on layout-super-navigation-header
- Background should always print transparent - Foreground should always print black - Remove top border - Add bottom border to match new changes in cross service header - Remove left/right margins not required for print Note the use of the :has selector to remove the border and add a left indent only if the component contains the hidden 'GOV.UK' text. Variants that have hidden logo text are only used on the homepage, and need an adjusted design for print so that the crown logo lines up with the intro text below.
1 parent 6164be3 commit f5b1365

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -986,9 +986,23 @@ $after-button-padding-left: govuk-spacing(4);
986986

987987
@include govuk-media-query($media-type: print) {
988988
.gem-c-layout-super-navigation-header {
989-
border-top: 1pt solid $govuk-print-text-colour;
990-
margin: 0;
991-
background-color: none;
989+
border-top: 0;
990+
border-bottom: 2pt solid $govuk-print-text-colour;
991+
margin: 0 0 5mm;
992+
background-color: transparent;
993+
994+
&:has(.gem-c-layout-super-navigation-header__header-logo .govuk-visually-hidden) {
995+
border: 0;
996+
margin-left: 24px;
997+
}
998+
999+
* {
1000+
color: $govuk-print-text-colour;
1001+
}
1002+
1003+
.govuk-width-container {
1004+
margin: 0;
1005+
}
9921006
}
9931007

9941008
.gem-c-layout-super-navigation-header__header-logo {

0 commit comments

Comments
 (0)