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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a39e0c1d59ff325efc8299c1fc22cb9360558ec3e2d58c31a4fd429714252d80
4
- data.tar.gz: d9e8ca8ec4e6f5c947392c2657875d3f3a4b865f3441b13da8f684eec3cf7296
3
+ metadata.gz: 86e6747e7ac2fbe09ae4b993c0220e43a0b95c72cb1916254bc26301fedf68ba
4
+ data.tar.gz: e70984d80ef1fb018177f52f10683b535af24665990ceb8c421802c23915afad
5
5
  SHA512:
6
- metadata.gz: 88a1fecfcb9af9aebec91df7acf461e4f7e036710e25faaffb54203266f2f31ed0b893378815ff9b0075705531af1c715ab5ce682cb6db7d1d5b18056baef9c3
7
- data.tar.gz: 1c2d941efc1618698c4928c7fa95ac96b6da9941cf5a58f21ace50783bc6efc7d570793b7a9b7a52070158f5827a0c7ed29a03ed59b1c7788bcddcc2554a7739
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 %>
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "66.1.0".freeze
2
+ VERSION = "66.2.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 66.1.0
4
+ version: 66.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev