govuk_publishing_components 24.15.3 → 24.16.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: 0ca0bc4aaec398f4d2bcb5d7f5727169638e3780495ae7bf9518ce979283bb20
4
- data.tar.gz: fb29ac6713100ffba6c45f1f2e1a955d4ca071cdd2b9ede0a28e14cac1e7f8dd
3
+ metadata.gz: cc64aa48acc71125216afe25824ed3485ff692ac532767146857f7912d43f093
4
+ data.tar.gz: 55a101e61f5c175f9a8ec9f7aa04dcca8a10dac3ba54bd67fc9a3d08f795b9fd
5
5
  SHA512:
6
- metadata.gz: eafcd908a1accfe8c3d4d049dbf21a7f314d53e5484c926badd915f00a68810330c37bda6b9965354791140770b9726352487532987f4b9f820cc65079b1717f
7
- data.tar.gz: af6c0b5853f8eebc4ae69642b03008dc9e05d926cdef050ca10f243d65809320ca642818d11c898e9ac63e8c7b8acb027bf9947547023ddade74f2e65195c8b6
6
+ metadata.gz: e146ccf4c14104f6c3cca199a534759710d4b7a9531defe1a2c980688cbafeb6441e24b5150ccb3e685e933b88ccef1cdfdfd195700734738fecd84d4761d1d8
7
+ data.tar.gz: d4699530f876b4d51079ef77a4ad5fa2875e8bedfb9ff04fc3d5e96dcc7ebde09211b623ce76071a45ed13df9ece0dcb0fe59d49e595207ecbab10cb89439c24
@@ -1,5 +1,5 @@
1
1
  <svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <circle cx="11.5" cy="11.5" r="11.5" fill="#272828"/>
3
- <path fill-rule="evenodd" clip-rule="evenodd" d="M14.9429 11.7949L10.4402 7.29222L11.7327 5.99967L17.528 11.7949L11.7327 17.5902L10.4402 16.2976L14.9429 11.7949Z" fill="#fff500"/>
4
- <path fill-rule="evenodd" clip-rule="evenodd" d="M3.95631 10.881L15.4414 10.881L15.4414 12.709L3.95631 12.709L3.95631 10.881Z" fill="#fff500"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M14.9429 11.7949L10.4402 7.29222L11.7327 5.99967L17.528 11.7949L11.7327 17.5902L10.4402 16.2976L14.9429 11.7949Z" fill="#ffffff"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M3.95631 10.881L15.4414 10.881L15.4414 12.709L3.95631 12.709L3.95631 10.881Z" fill="#ffffff"/>
5
5
  </svg>
@@ -212,6 +212,13 @@
212
212
  ['Percent', 60],
213
213
  ['Percent', 80],
214
214
  ['Percent', 100]
215
+ ],
216
+ '/guidance/import-and-export-goods-using-preference-agreements': [
217
+ ['Percent', 20],
218
+ ['Percent', 40],
219
+ ['Percent', 60],
220
+ ['Percent', 80],
221
+ ['Percent', 100]
215
222
  ]
216
223
  }
217
224
 
@@ -17,6 +17,7 @@
17
17
  transparent_icon ||= false
18
18
  data ||= nil
19
19
  classes ||= nil
20
+ font_size ||= nil
20
21
 
21
22
  css_classes = %w(gem-c-action-link)
22
23
  css_classes << "gem-c-action-link--light-text" if light_text
@@ -33,6 +34,7 @@
33
34
  link_classes = %w(govuk-link gem-c-action-link__link)
34
35
  link_classes << shared_helper.classes if classes
35
36
  link_classes << "govuk-link--inverse" if light_text
37
+ link_classes << shared_helper.get_heading_size(font_size, 'm') if font_size
36
38
  %>
37
39
  <% if text.present? %>
38
40
  <div class="<%= css_classes.join(' ') %>">
@@ -1,7 +1,9 @@
1
1
  <%
2
+ omit_feedback_form ||= false
2
3
  emergency_banner ||= nil
3
4
  full_width ||= false
4
5
  global_bar ||= nil
6
+ product_name ||= nil
5
7
  html_lang ||= "en"
6
8
  layout_helper = GovukPublishingComponents::Presenters::PublicLayoutHelper.new(local_assigns)
7
9
  logo_link ||= "/"
@@ -76,6 +78,7 @@
76
78
  search: show_search,
77
79
  logo_link: logo_link,
78
80
  navigation_items: navigation_items,
81
+ product_name: product_name,
79
82
 
80
83
  # The (blue) bottom border needs to be underneath the emergency banner -
81
84
  # so it has been turned off and added in manually.
@@ -104,9 +107,11 @@
104
107
  </main>
105
108
  </div>
106
109
 
107
- <div class="govuk-width-container">
108
- <%= render "govuk_publishing_components/components/feedback" %>
109
- </div>
110
+ <% unless omit_feedback_form %>
111
+ <div class="govuk-width-container">
112
+ <%= render "govuk_publishing_components/components/feedback" %>
113
+ </div>
114
+ <% end %>
110
115
 
111
116
  <% unless local_assigns[:hide_footer_links] %>
112
117
  <%= render "govuk_publishing_components/components/layout_footer", {
@@ -101,6 +101,12 @@ examples:
101
101
  text: Coronavirus (COVID-19)
102
102
  href: "/my-test-page"
103
103
  dark_icon: true
104
+ with_custom_font_size:
105
+ data:
106
+ text: Guidance for businesses
107
+ href: "/guidance-for-businesses"
108
+ dark_icon: true
109
+ font_size: m
104
110
  with_nhs_icon:
105
111
  data:
106
112
  text: Something about the NHS
@@ -27,6 +27,10 @@ examples:
27
27
  description: This allows the header to be omitted which is currently used when rendering CSV previews from Whitehall
28
28
  data:
29
29
  omit_header: true
30
+ omit_feedback:
31
+ description: This allows the feedback form to be omitted
32
+ data:
33
+ omit_feedback_form: true
30
34
  navigation:
31
35
  description: Passes the navigation through to the [header component](/component-guide/layout_header/).
32
36
  data:
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "24.15.3".freeze
2
+ VERSION = "24.16.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: 24.15.3
4
+ version: 24.16.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: 2021-06-22 00:00:00.000000000 Z
11
+ date: 2021-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config