govuk_publishing_components 12.7.0 → 12.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5322b04a11adca1383084447447814af7ccf3f0869940019d593ebcbefc51cc
4
- data.tar.gz: 9b5e2ee7836471caa070ab1d691e2e5659d9c10e12ac4577aed1cc04a808ad3c
3
+ metadata.gz: cfdd3079ae3a6f82e937daabce31c39802425c6aacb5a43058c790cf014f3aaa
4
+ data.tar.gz: 9cd7474fb49eb06f86aed091092f94d86955c949a7d1b49a277a1c84bcf81bfa
5
5
  SHA512:
6
- metadata.gz: c39b6cea6c60ace9fe44ebfd88c242e2235a4188cc549eea9e3302ec445303cbff141c11e60c050918c546c1d734f5f3dfe7344aa9fd82e45249b2eb2ce6749a
7
- data.tar.gz: 052a8ffe732773f0503b05b680e7eb249a8b759d9eed576fe6a28120fad9b45d20b48be0c13a973f333fd5aaa3e3e1b2592ac9537a9433d8af66ee95d3bbb86b
6
+ metadata.gz: 4fd65bf35f92694de070420bf166f0b56981f87898960c6e5c2b7aff92b0874b5f61d5808a7a7036b7dfa60d19aafe8624b5db3f08fb59bf3f061cf1c3b2120d
7
+ data.tar.gz: 1bba4aeca78d0bf298999d7ebbc8bb8b0d0d8d9baaf1ed820cb5d40508b0a9702f02c68a966b3727b42a824b473a7e838e21f81e515356dad98091ea31a7ebca
@@ -1,10 +1,15 @@
1
1
  <%
2
+ full_width ||= false
2
3
  product_name ||= "Publishing"
3
4
  navigation_items ||= []
5
+ if full_width
6
+ width_class = "govuk-header__container--full-width"
7
+ else
8
+ width_class = "govuk-width-container"
9
+ end
4
10
  %>
5
11
  <header class="gem-c-layout-header govuk-header gem-c-layout-header--<%= environment %>" role="banner" data-module="header">
6
- <div class="govuk-header__container govuk-width-container">
7
-
12
+ <div class="govuk-header__container <%= width_class %>">
8
13
  <div class="govuk-header__logo">
9
14
  <a href="/" class="govuk-header__link govuk-header__link--homepage">
10
15
  <span class="govuk-header__logotype">
@@ -31,6 +31,12 @@ examples:
31
31
  active: true
32
32
  - text: Navigation item 2
33
33
  href: "#2"
34
+ full_width:
35
+ description: |
36
+ This is difficult to preview because the preview windows are constrained, but the header will stretch to the size of its container.
37
+ data:
38
+ environment: production
39
+ full_width: true
34
40
 
35
41
  accessibility_criteria: |
36
42
  The component must:
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '12.7.0'.freeze
2
+ VERSION = '12.7.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.7.0
4
+ version: 12.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-13 00:00:00.000000000 Z
11
+ date: 2018-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config