govuk_publishing_components 11.1.0 → 11.2.0

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: a29866b641cb5fe11013b5ccbf65ac711103b2326195a1dd90aae163ca7504a9
4
- data.tar.gz: 06ebbec6ea9f80236b7f7cd0662b0f621ddece915d73aba443c5efdb72931fb3
3
+ metadata.gz: d8c9d9ec6c6487bdef155ae590798d937c6a5107cae8844c82b734d228401519
4
+ data.tar.gz: 2652dac3fae86a01a886daea03ec694ed975290b5ccd2629a34b99e020a05720
5
5
  SHA512:
6
- metadata.gz: 84021fce8199dcba9adf8b358f40c62d5b18576df386da134852b21bc23c2695fadf0267ca85487910d16c5b95ee9735222491d9dd7c5d4a5c5dc36be96197e5
7
- data.tar.gz: 6e13d1192539f79e3213dfc836e1c113cbd41a0288025676ab60dea39f61b34878fe2a2c1a07f272700a2529d4e4e8dd62e0915b6492a71bbf0d6c62b92be220
6
+ metadata.gz: f2b354947e964e18326d7077b0ff9bae41db3fd5aa5b1775abd115a30dd1514c04ef1dc7e30d255f7ebf64b3ce059477ea796c60bc1b1f536d7ec0780564fd72
7
+ data.tar.gz: 4c3d8b859c0d3de97bd21c82754e2538c98721d03a91bf3f8ba16a2ff28fa528c2ca3dae21ba5f7aeb56e772d33e3372137cdd8fb6d6cfa97d9bb40426c70863
@@ -1,6 +1,10 @@
1
1
  @import "helpers/govuk-frontend-settings";
2
2
  @import "govuk-frontend/components/header/header";
3
3
 
4
+ .gem-c-layout-header--production .govuk-header__container {
5
+ border-bottom-color: govuk-colour("bright-red");
6
+ }
7
+
4
8
  .gem-c-layout-header--integration .govuk-header__container,
5
9
  .gem-c-layout-header--staging .govuk-header__container {
6
10
  border-bottom-color: govuk-colour("yellow");
@@ -10,3 +14,36 @@
10
14
  .gem-c-layout-header--test .govuk-header__container {
11
15
  border-bottom-color: govuk-colour("grey-1");
12
16
  }
17
+
18
+ .govuk-header__logo {
19
+ white-space: nowrap;
20
+ }
21
+
22
+ .govuk-header__product-name {
23
+ display: none;
24
+
25
+ @include govuk-media-query($from: tablet) {
26
+ display: inline-block;
27
+ }
28
+ }
29
+
30
+ .gem-c-environment-tag {
31
+ padding: 2px 5px 0;
32
+ margin-left: 3px;
33
+ vertical-align: middle;
34
+ @include govuk-font($size: 14, $weight: "bold");
35
+ }
36
+
37
+ .gem-c-environment-tag--production {
38
+ background-color: govuk-colour("bright-red");
39
+ }
40
+
41
+ .gem-c-environment-tag--development {
42
+ background-color: govuk-colour("grey-1");
43
+ }
44
+
45
+ .gem-c-environment-tag--staging,
46
+ .gem-c-environment-tag--integration {
47
+ background-color: govuk-colour("yellow");
48
+ color: govuk-colour("black");
49
+ }
@@ -36,6 +36,14 @@
36
36
  }
37
37
  }
38
38
 
39
+ .gem-c-related-navigation__toggle {
40
+ display: none;
41
+
42
+ .js-enabled & {
43
+ display: block;
44
+ }
45
+ }
46
+
39
47
  .gem-c-related-navigation__section-link {
40
48
  @include bold-16;
41
49
  }
@@ -62,6 +62,14 @@
62
62
  text-decoration: none;
63
63
  }
64
64
 
65
+ .gem-c-taxonomy-navigation__toggle {
66
+ display: none;
67
+
68
+ .js-enabled & {
69
+ display: block;
70
+ }
71
+ }
72
+
65
73
 
66
74
  .gem-c-taxonomy-navigation__section-heading {
67
75
  border-top: 1px solid $border-colour;
@@ -1,5 +1,5 @@
1
1
  <%
2
- product_name ||= false
2
+ product_name ||= "Publishing"
3
3
  navigation_items ||= []
4
4
  %>
5
5
  <header class="gem-c-layout-header govuk-header gem-c-layout-header--<%= environment %>" role="banner" data-module="header">
@@ -18,12 +18,16 @@
18
18
  GOV.UK
19
19
  </span>
20
20
  </span>
21
- <% if product_name %>
21
+
22
22
  <span class="govuk-header__product-name">
23
23
  <%= product_name %>
24
24
  </span>
25
- <% end %>
25
+
26
+ <span class="gem-c-environment-tag govuk-tag gem-c-environment-tag--<%= environment %>">
27
+ <%= environment %>
28
+ </span>
26
29
  </a>
30
+
27
31
  </div><div class="govuk-header__content">
28
32
 
29
33
  <% if navigation_items.any? %>
@@ -92,6 +92,7 @@
92
92
  <% if hidden_links.any? %>
93
93
  <li class="gem-c-taxonomy-navigation__link toggle-wrap">
94
94
  <a href="#"
95
+ class="gem-c-taxonomy-navigation__toggle"
95
96
  data-controls="toggle_<%= section_name %>"
96
97
  data-expanded="false"
97
98
  data-toggled-text="<%= t("govuk_component.metadata.toggle_less", default: "Show fewer") %>">
@@ -6,6 +6,7 @@ body: |
6
6
  accessibility_criteria: |
7
7
  The HTML should not be visible.
8
8
  display_html: true
9
+ display_preview: false
9
10
  examples:
10
11
  default:
11
12
  data:
@@ -9,7 +9,6 @@ accessibility_criteria: |
9
9
 
10
10
  shared_accessibility_criteria:
11
11
  - link
12
- display_preview: false
13
12
  examples:
14
13
  from_only:
15
14
  data:
@@ -44,6 +44,7 @@
44
44
  <% if links.length > section_link_limit %>
45
45
  <li class="gem-c-related-navigation__link toggle-wrap">
46
46
  <a href="#"
47
+ class="gem-c-related-navigation__toggle"
47
48
  data-controls="toggle_<%= section_title %>"
48
49
  data-expanded="false"
49
50
  data-toggled-text="<%= t("govuk_component.metadata.toggle_less", default: "Show fewer") %>">
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '11.1.0'.freeze
2
+ VERSION = '11.2.0'.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: 11.1.0
4
+ version: 11.2.0
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-10-02 00:00:00.000000000 Z
11
+ date: 2018-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config