govuk_publishing_components 66.1.0 → 66.2.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/_layout-header.scss +9 -0
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/docs/layout_header.yml +11 -0
- data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +9 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 86e6747e7ac2fbe09ae4b993c0220e43a0b95c72cb1916254bc26301fedf68ba
|
|
4
|
+
data.tar.gz: e70984d80ef1fb018177f52f10683b535af24665990ceb8c421802c23915afad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0393a75efbc028df6501454f07a78aa1b7f9a8cf029becea313a3881c05d0fd57f5d566551fcb631687de92dbcc379943ca846d97929bef8dd7623892006916
|
|
7
|
+
data.tar.gz: 19a5dfc0d677181f71c3d47553c9f0a5f05a1feef93fded11ba4b0f39151ae397d47e240d646f7423f3affb5a448805423b2838f04822cdabdccd1e0c3e0650f
|
|
@@ -59,11 +59,20 @@
|
|
|
59
59
|
display: flex;
|
|
60
60
|
flex-wrap: wrap;
|
|
61
61
|
row-gap: govuk-spacing(2);
|
|
62
|
+
|
|
63
|
+
&:has(+ .gem-c-header__content) {
|
|
64
|
+
@include govuk-grid-column(three-quarters);
|
|
65
|
+
padding: govuk-spacing(3) 0 govuk-spacing(2);
|
|
66
|
+
}
|
|
62
67
|
}
|
|
63
68
|
|
|
64
69
|
.gem-c-header__content.govuk-header__content {
|
|
65
70
|
width: auto;
|
|
66
71
|
|
|
72
|
+
@include govuk-media-query($from: mobile) {
|
|
73
|
+
@include govuk-responsive-padding(3, "bottom");
|
|
74
|
+
}
|
|
75
|
+
|
|
67
76
|
@include govuk-media-query($from: desktop) {
|
|
68
77
|
float: right;
|
|
69
78
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<%
|
|
2
2
|
environment ||= nil
|
|
3
3
|
full_width ||= false
|
|
4
|
+
signout_link ||= false
|
|
4
5
|
navigation_aria_label ||= t("components.layout_header.top_level")
|
|
5
6
|
navigation_items ||= []
|
|
6
7
|
product_name ||= nil
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
environment:,
|
|
23
24
|
logo_link:,
|
|
24
25
|
product_name:,
|
|
26
|
+
signout_link:,
|
|
25
27
|
} %>
|
|
26
28
|
</div>
|
|
27
29
|
<% if navigation_items.any? %>
|
|
@@ -31,6 +31,17 @@ examples:
|
|
|
31
31
|
data:
|
|
32
32
|
environment: production
|
|
33
33
|
product_name: Product
|
|
34
|
+
with_signout_link:
|
|
35
|
+
description: Adds a "signout" link. For use across publishing apps.
|
|
36
|
+
data:
|
|
37
|
+
environment: production
|
|
38
|
+
signout_link: true
|
|
39
|
+
with_signout_link and product name:
|
|
40
|
+
description: Adds a "signout" link for use across publishing apps and a product name
|
|
41
|
+
data:
|
|
42
|
+
environment: production
|
|
43
|
+
signout_link: true
|
|
44
|
+
product_name: Component Guide 999.9.9
|
|
34
45
|
with_navigation:
|
|
35
46
|
description: Note that [remove_bottom_border](#no_bottom_border) automatically gets set to true on the header when navigation items are added.
|
|
36
47
|
data:
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
environment_exists = environment.present?
|
|
11
11
|
deprecated_navigation ||= false
|
|
12
|
+
signout_link ||= false
|
|
12
13
|
%>
|
|
13
14
|
|
|
14
15
|
<% if environment_exists && deprecated_navigation %>
|
|
@@ -32,3 +33,11 @@
|
|
|
32
33
|
</div>
|
|
33
34
|
<% end %>
|
|
34
35
|
</div>
|
|
36
|
+
|
|
37
|
+
<% if signout_link %>
|
|
38
|
+
<div class="govuk-header__content gem-c-header__content">
|
|
39
|
+
<nav class="gem-c-header__nav govuk-header__navigation">
|
|
40
|
+
<a class="govuk-header__link govuk-!-font-weight-bold" href="/auth/gds/sign_out">Sign out</a>
|
|
41
|
+
</nav>
|
|
42
|
+
</div>
|
|
43
|
+
<% end %>
|