govuk_publishing_components 6.1.0 → 6.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: 1d570b7d195fdcdf9d28a7cb0502750541b0f5fb04576bc138ffe2b9959f7aed
4
- data.tar.gz: edde09a2676e3529e3c9b9021fe3c007436d7815770f8118378c4186a6428726
3
+ metadata.gz: 34285d5cb5c081751784ac345982132dc747756854e258428010f277a9c01fa5
4
+ data.tar.gz: d5c1f26c16b66ee943513822e4ba1dae26f820ae86790ab4122f88c16b4da8b2
5
5
  SHA512:
6
- metadata.gz: a9fd5314c688fd2531be541cfbcef25a0c202d8cbb3104bc88621b90056d4baa78a9b7e1c31a2dec9fa315d7e8d6e807e9910314fec548b7df1c760b1a75ece7
7
- data.tar.gz: 47d8dbd1faa5ec8d7e72f111571ea3ce7d04377ffc2107bfced125fc1f70bbcba26d85e580b6a3570667b89f493a4811499fb04ac62de4558df7723fdc00b187
6
+ metadata.gz: d17167dd84b0f8ce4a4cdcb2280dfab376a6e30b50b15606e8ba93b61b4f1386fed7a4ab0d437c3c17e2c2efabced7ec5bf20e05455311d26f20f951118a3413
7
+ data.tar.gz: 0cedea047da2ee69a35df7cbd546c50f2fde34c776d668fb54beb3670c37398facb4bd5041315a0a477a6e973f7a402e04b038dddb89dbaa4685e1e9355a6e05
@@ -3,7 +3,7 @@
3
3
  background-color: $govuk-blue;
4
4
  color: $white;
5
5
  margin-bottom: $gutter;
6
- padding: $gutter-half $gutter $gutter;
6
+ padding: 0 $gutter $gutter;
7
7
  box-sizing: border-box;
8
8
  }
9
9
 
@@ -16,3 +16,7 @@
16
16
  padding-right: 0;
17
17
  padding-bottom: $gutter-half;
18
18
  }
19
+
20
+ .gem-c-inverse-header--padding-top {
21
+ padding-top: $gutter-half;
22
+ }
@@ -1,10 +1,11 @@
1
1
  <%
2
- full_width ||= false
3
- header_class = full_width ? "gem-c-inverse-header--full-width" : ""
2
+ css_classes = []
3
+ css_classes << " gem-c-inverse-header--full-width" if local_assigns[:full_width]
4
+ css_classes << " gem-c-inverse-header--padding-top" unless local_assigns[:padding_top].eql?(false)
4
5
  %>
5
6
  <% block = yield %>
6
7
  <% unless block.empty? %>
7
- <header class="gem-c-inverse-header <%= header_class %>">
8
+ <header class="gem-c-inverse-header <%= css_classes.join(' ') %> ">
8
9
  <%= block %>
9
10
  </header>
10
- <% end %>
11
+ <% end %>
@@ -41,6 +41,7 @@ examples:
41
41
  <p class="publication-header__last-changed">Published 22 April 2016</p>
42
42
  with_breadcrumbs_and_paragraph:
43
43
  data:
44
+ padding_top: false
44
45
  block: |
45
46
  <div class="govuk-breadcrumbs " data-module="track-click">
46
47
  <ol>
@@ -7,6 +7,7 @@ module GovukPublishingComponents
7
7
  end
8
8
 
9
9
  def should_present_taxonomy_navigation?
10
+ @content_item.dig("document_type") != "travel_advice" &&
10
11
  !content_is_tagged_to_browse_pages? &&
11
12
  content_is_tagged_to_a_live_taxon?
12
13
  end
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '6.1.0'.freeze
2
+ VERSION = '6.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: 6.1.0
4
+ version: 6.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-03-28 00:00:00.000000000 Z
11
+ date: 2018-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config