govuk_publishing_components 53.0.0 → 54.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +12 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +5 -14
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +4 -18
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +3 -12
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +2 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +2 -11
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss +1 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +2 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -14
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_media-player.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +1 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_steps.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +2 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +15 -55
- data/app/controllers/govuk_publishing_components/audit_controller.rb +1 -0
- data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +2 -1
- data/app/views/govuk_publishing_components/components/_govspeak.html.erb +3 -0
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +6 -20
- data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +0 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45d09b1fcf62542a7497ba78e1b60618d092fc528646495b1f296aa64f54e59e
|
4
|
+
data.tar.gz: b25260a62d83b0395457eb8921ca7547eb775802c2c0a4fbbf851e8c5df46a1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acac17226a90dbd3083c33379ded3fcd64d9e53b6ee9a5f9390240a9bf7b720ac90c5eff2b94133ad5d34f0d347efb7f646c6a51af89eca386e03d0413d5aa85
|
7
|
+
data.tar.gz: 2840251f9834711840167a93322dd66508397f8f52769115cbb0023327eb44a9f9586c100dc3243f978c2d482a8a70920f0cc6b3b31049600bcef16d5ad90b55
|
@@ -76,6 +76,18 @@ $thumbnail-icon-border-colour: govuk-colour("mid-grey");
|
|
76
76
|
}
|
77
77
|
}
|
78
78
|
|
79
|
+
.govspeak,
|
80
|
+
.gem-c-govspeak {
|
81
|
+
.gem-c-attachment__title {
|
82
|
+
@include govuk-font($size: 27, $weight: regular);
|
83
|
+
margin: 0 0 govuk-spacing(3) 0;
|
84
|
+
}
|
85
|
+
|
86
|
+
.gem-c-attachment__metadata {
|
87
|
+
margin: 0 0 govuk-spacing(3) 0;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
79
91
|
.gem-c-attachment__metadata--compact {
|
80
92
|
margin-bottom: 0;
|
81
93
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss
CHANGED
@@ -25,16 +25,16 @@
|
|
25
25
|
@include govuk-font($size: 27, $weight: bold);
|
26
26
|
}
|
27
27
|
|
28
|
-
|
29
|
-
|
28
|
+
* + h2,
|
29
|
+
* + h3 {
|
30
|
+
padding-top: govuk-spacing(3);
|
30
31
|
|
31
32
|
@include govuk-media-query($from: tablet) {
|
32
|
-
|
33
|
+
padding-top: govuk-spacing(9);
|
33
34
|
}
|
34
35
|
}
|
35
36
|
|
36
|
-
|
37
|
-
h3 {
|
37
|
+
.stat-headline:first-child {
|
38
38
|
margin-top: govuk-spacing(6);
|
39
39
|
|
40
40
|
@include govuk-media-query($from: tablet) {
|
@@ -42,15 +42,6 @@
|
|
42
42
|
}
|
43
43
|
}
|
44
44
|
|
45
|
-
h2:first-child,
|
46
|
-
h3:first-child {
|
47
|
-
margin-top: govuk-spacing(4);
|
48
|
-
|
49
|
-
@include govuk-media-query($from: tablet) {
|
50
|
-
margin-top: 0;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
45
|
h3 .number,
|
55
46
|
h4 .number,
|
56
47
|
h5 .number,
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss
CHANGED
@@ -9,28 +9,14 @@
|
|
9
9
|
|
10
10
|
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
11
11
|
.gem-c-govspeak {
|
12
|
-
// Scope attachment and attachment-link component styles to gem-c-govspeak
|
13
|
-
@import "../attachment-link";
|
14
|
-
@import "../attachment";
|
15
|
-
@import "../details";
|
16
|
-
|
17
|
-
// This block is duplicated from Whitehall as a transitional step, see the
|
18
|
-
// commit message for 2d893c10ee3f2cab27162b9aba38b12379a71d07 before making
|
19
|
-
// changes, original version:
|
20
|
-
// https://github.com/alphagov/whitehall/blob/main/app/assets/stylesheets/frontend/helpers/_attachment.scss
|
21
12
|
$thumbnail-width: 99px;
|
22
13
|
|
23
14
|
.attachment {
|
24
15
|
position: relative;
|
25
|
-
margin: govuk-spacing(6) 0;
|
26
|
-
padding:
|
16
|
+
margin: 0 0 govuk-spacing(6) 0;
|
17
|
+
padding: 0 0 0 ($thumbnail-width + govuk-spacing(6));
|
27
18
|
@include govuk-clearfix;
|
28
19
|
|
29
|
-
&:first-child {
|
30
|
-
margin-top: 0;
|
31
|
-
padding-top: 0;
|
32
|
-
}
|
33
|
-
|
34
20
|
@include govuk-media-query($media-type: print) {
|
35
21
|
padding-left: 0;
|
36
22
|
}
|
@@ -64,12 +50,12 @@
|
|
64
50
|
|
65
51
|
.attachment-details {
|
66
52
|
h2 {
|
67
|
-
margin: 0;
|
53
|
+
margin: 0 0 govuk-spacing(2) 0;
|
68
54
|
@include govuk-font($size: 27);
|
69
55
|
}
|
70
56
|
|
71
57
|
p {
|
72
|
-
margin: govuk-spacing(2) 0;
|
58
|
+
margin: 0 0 govuk-spacing(2) 0;
|
73
59
|
}
|
74
60
|
|
75
61
|
.metadata {
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss
CHANGED
@@ -9,18 +9,9 @@
|
|
9
9
|
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
10
10
|
.gem-c-govspeak {
|
11
11
|
.call-to-action {
|
12
|
-
margin:
|
12
|
+
margin: 0 0 govuk-spacing(4) 0;
|
13
13
|
background-color: govuk-colour("light-grey");
|
14
|
-
padding:
|
15
|
-
|
16
|
-
&:first-child {
|
17
|
-
margin-top: 0;
|
18
|
-
}
|
19
|
-
|
20
|
-
p:last-child,
|
21
|
-
ul:last-child,
|
22
|
-
ol:last-child {
|
23
|
-
margin-bottom: 0;
|
24
|
-
}
|
14
|
+
padding: govuk-spacing(6);
|
15
|
+
padding-bottom: govuk-spacing(2);
|
25
16
|
}
|
26
17
|
}
|
@@ -9,15 +9,8 @@
|
|
9
9
|
.gem-c-govspeak {
|
10
10
|
.example {
|
11
11
|
border-left: 10px solid govuk-colour("mid-grey");
|
12
|
-
padding:
|
13
|
-
margin:
|
14
|
-
|
15
|
-
// Remove margin from the last element
|
16
|
-
p:last-child,
|
17
|
-
ul:last-child,
|
18
|
-
ol:last-child {
|
19
|
-
margin-bottom: 0;
|
20
|
-
}
|
12
|
+
padding: govuk-spacing(4) 0 0.1234px govuk-spacing(4); // non-zero padding on bottom keeps margin of last element inside parent, simulating padding
|
13
|
+
margin: 0 0 govuk-spacing(4) 0;
|
21
14
|
|
22
15
|
strong {
|
23
16
|
display: block;
|
@@ -15,20 +15,11 @@
|
|
15
15
|
.gem-c-govspeak {
|
16
16
|
.footnotes {
|
17
17
|
border-top: 1px solid govuk-colour("mid-grey");
|
18
|
-
margin
|
19
|
-
padding-top: govuk-spacing(
|
18
|
+
margin: 0 0 govuk-spacing(4) 0;
|
19
|
+
padding-top: govuk-spacing(4);
|
20
20
|
|
21
21
|
a {
|
22
22
|
overflow-wrap: break-word;
|
23
23
|
}
|
24
|
-
|
25
|
-
ol {
|
26
|
-
margin-top: 0;
|
27
|
-
padding-top: 0;
|
28
|
-
|
29
|
-
li p {
|
30
|
-
margin: 10px 0;
|
31
|
-
}
|
32
|
-
}
|
33
24
|
}
|
34
25
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss
CHANGED
@@ -1,11 +1,7 @@
|
|
1
1
|
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
2
2
|
.gem-c-govspeak {
|
3
3
|
.form-download {
|
4
|
-
|
5
|
-
|
6
|
-
@include govuk-media-query($until: tablet) {
|
7
|
-
margin: 1em 0 1.5em;
|
8
|
-
}
|
4
|
+
margin: 0 0 govuk-spacing(4) 0;
|
9
5
|
|
10
6
|
p {
|
11
7
|
padding-right: 3em;
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss
CHANGED
@@ -10,7 +10,7 @@ $highlight-answer-color: govuk-colour("white");
|
|
10
10
|
color: $highlight-answer-color;
|
11
11
|
text-align: center;
|
12
12
|
padding: govuk-spacing(5) govuk-spacing(2) govuk-spacing(4);
|
13
|
-
margin: 0 0 govuk-spacing(
|
13
|
+
margin: 0 0 govuk-spacing(4);
|
14
14
|
|
15
15
|
p {
|
16
16
|
color: $highlight-answer-color;
|
@@ -29,7 +29,6 @@ $highlight-answer-color: govuk-colour("white");
|
|
29
29
|
}
|
30
30
|
|
31
31
|
@include govuk-media-query($until: tablet) {
|
32
|
-
margin: 0 0 govuk-spacing(2);
|
33
32
|
@include govuk-font($size: 48);
|
34
33
|
|
35
34
|
p {
|
@@ -10,14 +10,7 @@
|
|
10
10
|
.gem-c-govspeak {
|
11
11
|
.info-notice {
|
12
12
|
border-left: 10px solid govuk-colour("mid-grey");
|
13
|
-
padding:
|
14
|
-
margin:
|
15
|
-
|
16
|
-
// Remove margin from the last element
|
17
|
-
p:last-child,
|
18
|
-
ul:last-child,
|
19
|
-
ol:last-child {
|
20
|
-
margin-bottom: 0;
|
21
|
-
}
|
13
|
+
padding: govuk-spacing(4) 0 0.1234px govuk-spacing(4); // non-zero padding on bottom keeps margin of last element inside parent, simulating padding
|
14
|
+
margin: 0 0 govuk-spacing(4) 0;
|
22
15
|
}
|
23
16
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss
CHANGED
@@ -9,19 +9,6 @@
|
|
9
9
|
.gem-c-govspeak {
|
10
10
|
.legislative-list {
|
11
11
|
list-style: none;
|
12
|
-
margin:
|
13
|
-
|
14
|
-
li {
|
15
|
-
margin: 5px 0;
|
16
|
-
}
|
17
|
-
|
18
|
-
p {
|
19
|
-
margin: 20px 0;
|
20
|
-
}
|
21
|
-
|
22
|
-
ol {
|
23
|
-
margin: govuk-spacing(2) 0 govuk-spacing(2) govuk-spacing(6);
|
24
|
-
list-style: none;
|
25
|
-
}
|
12
|
+
margin: 0 0 govuk-spacing(4) 0;
|
26
13
|
}
|
27
14
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
3
3
|
.gem-c-govspeak {
|
4
4
|
.place {
|
5
|
-
margin:
|
5
|
+
margin: 0 0 govuk-spacing(4) 0;
|
6
6
|
border-bottom: solid 1px govuk-colour("mid-grey");
|
7
7
|
padding-bottom: 1.5em;
|
8
8
|
|
@@ -25,10 +25,6 @@
|
|
25
25
|
margin: .25em 0;
|
26
26
|
}
|
27
27
|
}
|
28
|
-
|
29
|
-
@include govuk-media-query($until: tablet) {
|
30
|
-
margin: .75em 0;
|
31
|
-
}
|
32
28
|
}
|
33
29
|
}
|
34
30
|
// stylelint-enable max-nesting-depth
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss
CHANGED
@@ -8,13 +8,7 @@
|
|
8
8
|
.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
|
9
9
|
.gem-c-govspeak {
|
10
10
|
.stat-headline {
|
11
|
-
margin
|
12
|
-
margin-top: govuk-spacing(3);
|
13
|
-
|
14
|
-
@include govuk-media-query($from: tablet) {
|
15
|
-
margin-bottom: govuk-spacing(4);
|
16
|
-
margin-top: govuk-spacing(4);
|
17
|
-
}
|
11
|
+
margin: 0 0 govuk-spacing(4) 0;
|
18
12
|
|
19
13
|
p {
|
20
14
|
margin: 0;
|
@@ -23,7 +17,6 @@
|
|
23
17
|
|
24
18
|
em {
|
25
19
|
display: block;
|
26
|
-
margin: 3px 0 -5px;
|
27
20
|
@include govuk-font($size: 80, $weight: bold);
|
28
21
|
}
|
29
22
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss
CHANGED
@@ -14,8 +14,8 @@
|
|
14
14
|
$icon-size: 35px;
|
15
15
|
$icon-spacing: 10px;
|
16
16
|
|
17
|
-
|
18
|
-
|
17
|
+
padding: govuk-spacing(3) 0 0 calc($icon-size + $icon-spacing);
|
18
|
+
margin: 0 0 govuk-spacing(6) 0;
|
19
19
|
position: relative;
|
20
20
|
|
21
21
|
&::before {
|
@@ -28,11 +28,4 @@
|
|
28
28
|
@include govuk-font($size: 19, $weight: bold);
|
29
29
|
}
|
30
30
|
}
|
31
|
-
|
32
|
-
// Prevent excessive spacing when placed in a call-to-action block
|
33
|
-
.call-to-action {
|
34
|
-
.help-notice:first-child {
|
35
|
-
margin-top: 0;
|
36
|
-
}
|
37
|
-
}
|
38
31
|
}
|
data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss
CHANGED
@@ -1,23 +1,24 @@
|
|
1
1
|
@mixin markdown-typography {
|
2
2
|
@include govuk-text-colour;
|
3
|
-
|
4
3
|
@include govuk-font($size: 16);
|
5
4
|
|
6
5
|
ol,
|
7
6
|
ul,
|
8
7
|
p {
|
9
|
-
margin
|
10
|
-
margin-bottom: govuk-spacing(3);
|
8
|
+
margin: 0 0 govuk-spacing(4) 0;
|
11
9
|
@include govuk-font($size: 19);
|
12
|
-
|
13
|
-
@include govuk-media-query($from: tablet) {
|
14
|
-
margin-top: govuk-spacing(4);
|
15
|
-
margin-bottom: govuk-spacing(4);
|
16
|
-
}
|
17
10
|
}
|
18
11
|
|
19
12
|
// Headings
|
20
13
|
|
14
|
+
// put some spacing between any element followed by a heading
|
15
|
+
// has to be padding on the heading otherwise margins would overlap
|
16
|
+
|
17
|
+
* + h2,
|
18
|
+
* + h3 {
|
19
|
+
padding-top: govuk-spacing(4);
|
20
|
+
}
|
21
|
+
|
21
22
|
// Markdown is expected to be styled within a document with a H1 title
|
22
23
|
// thus H1's are not expected and are discouraged by bare styling
|
23
24
|
|
@@ -28,45 +29,22 @@
|
|
28
29
|
}
|
29
30
|
|
30
31
|
h2 {
|
31
|
-
margin
|
32
|
-
margin-bottom: govuk-spacing(4);
|
32
|
+
margin: 0 0 govuk-spacing(4) 0;
|
33
33
|
@include govuk-font($size: 27, $weight: bold);
|
34
|
-
|
35
|
-
@include govuk-media-query($from: desktop) {
|
36
|
-
margin-top: govuk-spacing(6) * 1.5;
|
37
|
-
}
|
38
34
|
}
|
39
35
|
|
40
36
|
h3 {
|
41
|
-
margin
|
42
|
-
margin-bottom: 0;
|
37
|
+
margin: 0 0 govuk-spacing(4) 0;
|
43
38
|
@include govuk-font($size: 19, $weight: bold);
|
44
39
|
}
|
45
40
|
|
46
41
|
// H4, H5 and H6 are discouraged and thus styled the same
|
47
42
|
|
48
43
|
h4,
|
49
|
-
h5,
|
50
|
-
h6 {
|
51
|
-
margin-top: govuk-spacing(6) + 5px;
|
52
|
-
margin-bottom: 0;
|
53
|
-
@include govuk-font($size: 19, $weight: bold);
|
54
|
-
|
55
|
-
+ p {
|
56
|
-
margin-top: 5px;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
44
|
h5,
|
61
45
|
h6 {
|
62
46
|
margin: 0;
|
63
|
-
|
64
|
-
|
65
|
-
h2:first-child,
|
66
|
-
h3:first-child,
|
67
|
-
h4:first-child,
|
68
|
-
p:first-child {
|
69
|
-
margin-top: 0;
|
47
|
+
@include govuk-font($size: 19, $weight: bold);
|
70
48
|
}
|
71
49
|
|
72
50
|
// Links
|
@@ -89,15 +67,8 @@
|
|
89
67
|
// utilise the type attribute for the formatting. Browsers default to a
|
90
68
|
// style of decimal.
|
91
69
|
list-style-position: outside;
|
92
|
-
margin
|
70
|
+
margin: 0 0 govuk-spacing(4) govuk-spacing(4);
|
93
71
|
padding: 0;
|
94
|
-
|
95
|
-
ul,
|
96
|
-
ol {
|
97
|
-
margin-top: 0;
|
98
|
-
margin-bottom: 0;
|
99
|
-
padding: 0;
|
100
|
-
}
|
101
72
|
}
|
102
73
|
|
103
74
|
ul {
|
@@ -105,22 +76,11 @@
|
|
105
76
|
}
|
106
77
|
|
107
78
|
li {
|
108
|
-
margin: 0 0
|
79
|
+
margin: 0 0 govuk-spacing(2);
|
109
80
|
padding: 0;
|
110
81
|
|
111
82
|
p {
|
112
|
-
margin: 0;
|
113
|
-
padding: 0;
|
114
|
-
}
|
115
|
-
|
116
|
-
p + p,
|
117
|
-
p + ul,
|
118
|
-
p + ol,
|
119
|
-
ul + p,
|
120
|
-
ul + ol,
|
121
|
-
ol + p,
|
122
|
-
ol + ul {
|
123
|
-
margin-top: 5px;
|
83
|
+
margin: 0 0 govuk-spacing(2);
|
124
84
|
}
|
125
85
|
}
|
126
86
|
|
@@ -15,7 +15,8 @@
|
|
15
15
|
end
|
16
16
|
text = raw(text)
|
17
17
|
|
18
|
-
|
18
|
+
absolute_links_helper = GovukPublishingComponents::Presenters::AbsoluteLinksHelper.new()
|
19
|
+
cookie_preferences_href ||= absolute_links_helper.make_url_absolute("/help/cookies")
|
19
20
|
confirmation_message ||= raw(t("components.cookie_banner.confirmation_message.html",
|
20
21
|
link: link_to(
|
21
22
|
t("components.cookie_banner.confirmation_message.link"),
|
@@ -19,7 +19,6 @@
|
|
19
19
|
omit_footer_border ||= false
|
20
20
|
omit_header ||= false
|
21
21
|
product_name ||= nil
|
22
|
-
show_explore_header ||= false
|
23
22
|
show_cross_service_header ||= false
|
24
23
|
draft_watermark ||= false
|
25
24
|
show_search = local_assigns.include?(:show_search) ? local_assigns[:show_search] : true
|
@@ -102,32 +101,19 @@
|
|
102
101
|
href: "#content"
|
103
102
|
} %>
|
104
103
|
<% unless omit_header %>
|
105
|
-
<% if
|
106
|
-
<% if homepage %>
|
107
|
-
<%= render "govuk_publishing_components/components/layout_for_public/layout_super_navigation_header_homepage", {
|
108
|
-
logo_link: logo_link,
|
109
|
-
} %>
|
110
|
-
<% else %>
|
111
|
-
<%= render "govuk_publishing_components/components/layout_super_navigation_header", {
|
112
|
-
logo_link: logo_link,
|
113
|
-
} %>
|
114
|
-
<% end %>
|
115
|
-
<% elsif show_cross_service_header %>
|
104
|
+
<% if show_cross_service_header %>
|
116
105
|
<%= render "govuk_publishing_components/components/cross_service_header", {
|
117
106
|
one_login_navigation_items: one_login_navigation_items,
|
118
107
|
service_navigation_items: service_navigation_items,
|
119
108
|
product_name: product_name,
|
120
109
|
} %>
|
110
|
+
<% elsif homepage %>
|
111
|
+
<%= render "govuk_publishing_components/components/layout_for_public/layout_super_navigation_header_homepage", {
|
112
|
+
logo_link: logo_link,
|
113
|
+
} %>
|
121
114
|
<% else %>
|
122
|
-
<%= render "govuk_publishing_components/components/
|
123
|
-
search: show_search,
|
115
|
+
<%= render "govuk_publishing_components/components/layout_super_navigation_header", {
|
124
116
|
logo_link: logo_link,
|
125
|
-
navigation_items: navigation_items,
|
126
|
-
product_name: product_name,
|
127
|
-
|
128
|
-
# The (blue) bottom border needs to be underneath the emergency banner -
|
129
|
-
# so it has been turned off and added in manually.
|
130
|
-
remove_bottom_border: true,
|
131
117
|
} %>
|
132
118
|
<% end %>
|
133
119
|
<% end %>
|
@@ -52,7 +52,6 @@ examples:
|
|
52
52
|
description: This allows for rendering the layout super navigation header in a different way for only the homepage.
|
53
53
|
data:
|
54
54
|
homepage: true
|
55
|
-
show_explore_header: true
|
56
55
|
omit_footer_navigation:
|
57
56
|
description: This allows the footer navigation to be omitted
|
58
57
|
data:
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 54.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-03 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: govuk_app_config
|