govuk_publishing_components 21.24.0 → 21.25.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: 852f3e158e84b94b02db8e065964955db1e252c11fb8e90db04284e56a998a12
4
- data.tar.gz: 187b7946e006dd1b84b0e949736d32f286be107d2ee182766abbac45a75fc623
3
+ metadata.gz: 04e2dde0c324eadb613ca21bf75464158fc7736d65fcd76ed49fc39d39b9859b
4
+ data.tar.gz: 014ed07b9ec95bdf59a243129a2121231aa47f5b39469134e175a4d6ff462a0e
5
5
  SHA512:
6
- metadata.gz: f83735ddd15083e567d8ff030fc0bf9fe933b929fa265bc7c76637a880000d4f1ac24a5c724728e64be55f5cca61debc9134bc132bb2a2542ec375e533c71170
7
- data.tar.gz: 8e1af044ebd75237948275b713ba1276e54b09a1303adc8f6ac48f88414e50b2ed59a8d9ff77825f21d06a0b1a0d5ce641d46cc18b249c6c704ac8a86f5e9c27
6
+ metadata.gz: 52031cc0a250839e6738e617d653fca57d86ce733cf8b945e8d4eb09fb6398d3565aba3bd76d278a27fa19d0c8559b3164720a3a16cf1d15227ddf57f6ecaae5
7
+ data.tar.gz: b42b626497d9c42c2404ba057a1975116b78adaf9ca3f216e6609f63e468cd57e8c24c8a8f6fe63a0c1506ebf1af464d1a606fe2652d3ca1941ff43b68390c3b
@@ -19,6 +19,7 @@
19
19
  '_email-alert-frontend_session': 'essential',
20
20
  'licensing_session': 'essential',
21
21
  'govuk_contact_referrer': 'essential',
22
+ 'dgu_beta_banner_dismissed': 'settings',
22
23
  'global_bar_seen': 'settings',
23
24
  'govuk_browser_upgrade_dismisssed': 'settings',
24
25
  'govuk_not_first_visit': 'settings',
@@ -1,5 +1,7 @@
1
1
  <%
2
2
  id ||= 'global-cookie-message'
3
+ text ||= raw("We use <a class='govuk-link' href='/help/cookies'>cookies to collect information</a> about how you use GOV.UK. We use this information to make the website work as well as possible and improve government services.")
4
+ cookie_preferences_href ||= "/help/cookies"
3
5
  %>
4
6
 
5
7
  <div id="<%= id %>" class="gem-c-cookie-banner govuk-clearfix" data-module="cookie-banner" role="region" aria-label="cookie banner" data-nosnippet>
@@ -8,7 +10,7 @@
8
10
  <div class=" govuk-grid-column-two-thirds">
9
11
  <div class="gem-c-cookie-banner__message">
10
12
  <span class="govuk-heading-m">Tell us whether you accept cookies</span>
11
- <p class="govuk-body">We use <a class="govuk-link" href="/help/cookies">cookies to collect information</a> about how you use GOV.UK. We use this information to make the website work as well as possible and improve government services.</p>
13
+ <p class="govuk-body"><%= text %></p>
12
14
  </div>
13
15
  <div class="gem-c-cookie-banner__buttons">
14
16
  <div class="gem-c-cookie-banner__button gem-c-cookie-banner__button-accept govuk-grid-column-full govuk-grid-column-one-half-from-desktop">
@@ -26,7 +28,7 @@
26
28
  <div class="gem-c-cookie-banner__button gem-c-cookie-banner__button-settings govuk-grid-column-full govuk-grid-column-one-half-from-desktop">
27
29
  <%= render "govuk_publishing_components/components/button", {
28
30
  text: "Set cookie preferences",
29
- href: "/help/cookies",
31
+ href: cookie_preferences_href,
30
32
  inline_layout: true,
31
33
  data_attributes: {
32
34
  module: "track-click",
@@ -42,7 +44,7 @@
42
44
 
43
45
  <div class="gem-c-cookie-banner__confirmation govuk-width-container" tabindex="-1">
44
46
  <p class="gem-c-cookie-banner__confirmation-message">
45
- You&#8217;ve accepted all cookies. You can <a class="govuk-link" href="/help/cookies" data-module="track-click" data-track-category="cookieBanner" data-track-action="Cookie banner settings clicked from confirmation">change your cookie settings</a> at any time.
47
+ You&#8217;ve accepted all cookies. You can <a class="govuk-link" href="<%= cookie_preferences_href %>" data-module="track-click" data-track-category="cookieBanner" data-track-action="Cookie banner settings clicked from confirmation">change your cookie settings</a> at any time.
46
48
  </p>
47
49
  <button class="gem-c-cookie-banner__hide-button" data-hide-cookie-banner="true" data-module="track-click" data-track-category="cookieBanner" data-track-action="Hide cookie banner">Hide</button>
48
50
  </div>
@@ -17,3 +17,9 @@ accessibility_excluded_rules:
17
17
  examples:
18
18
  default:
19
19
  data: {}
20
+ with_custom_text:
21
+ data:
22
+ text: "This is some custom text in my cookie banner which lets users know what we're using cookies for. I can also include a link to the <a class='govuk-link' href='/cookies'>cookies page</a>"
23
+ with_custom_cookie_preferences_href:
24
+ data:
25
+ cookie_preferences_href: "/cookies"
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '21.24.0'.freeze
2
+ VERSION = '21.25.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: 21.24.0
4
+ version: 21.25.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: 2020-02-19 00:00:00.000000000 Z
11
+ date: 2020-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gds-api-adapters