govuk_publishing_components 35.15.3 → 35.15.5

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: f8533adba3392301001871fbe61ae994c04e20161bc629ba88e2388e76b696da
4
- data.tar.gz: 1eec5780f166fab5b8ba18ffa62c093d1d4f570cccf0c901f466cbf136dcbcff
3
+ metadata.gz: 3117de6a0b4a66caea24d67e4c462c728ef09fdc3cd3503ca0e2429673726631
4
+ data.tar.gz: 164a43d2a5ccc732f37fbdf6eb862fc500311f473b9cf1aca998515d6c978c14
5
5
  SHA512:
6
- metadata.gz: 80f9f867f5cea155dbc5fc158ef4fb32ded03123f8bcc4885e06e3f44fe94dc7169a941758aa96b88953d7f7eda678c9c882490a90cce05bd085762562dc178a
7
- data.tar.gz: 8a93fabbfae63dcc902449ff97d2cfa6d741cdd971a6bac9bc1c70fc1f285e438af91c8a885647b5fbc11d1a6f922472c75c98cff07c075d239cbd679ffa6d0d
6
+ metadata.gz: f9e56a63dc6f33e2df012aa4993cdd9404d07d8c96ecfe39ffe253676aa443deabadc47062b4a9443ee8e2f0fa89943629dd145b8e673f9c1ddef6e56fb5624d
7
+ data.tar.gz: ca4f944dbcbf4d77171f797bc1f3b16caad24b513dbb2c49d0749edba6570f9acb701922cd0fa4d33259ec2b80ebbabd5ad8e9390bfa2fb0e54aa58e5eab14d5
@@ -58,7 +58,8 @@ window.GOVUK.analyticsGa4.analyticsModules = window.GOVUK.analyticsGa4.analytics
58
58
  phase_banner: this.getElementAttribute('data-ga4-phase-banner') || undefined,
59
59
  devolved_nations_banner: this.getElementAttribute('data-ga4-devolved-nations-banner') || undefined,
60
60
  cookie_banner: document.querySelector('[data-ga4-cookie-banner]') ? 'true' : undefined,
61
- intervention: this.getInterventionPresence()
61
+ intervention: this.getInterventionPresence(),
62
+ query_string: this.getQueryString()
62
63
  }
63
64
  }
64
65
  window.GOVUK.analyticsGa4.core.sendData(data)
@@ -69,6 +70,20 @@ window.GOVUK.analyticsGa4.analyticsModules = window.GOVUK.analyticsGa4.analytics
69
70
  return this.PIIRemover.stripPII(this.stripGaParam(document.location.href))
70
71
  },
71
72
 
73
+ getSearch: function () {
74
+ return window.location.search
75
+ },
76
+
77
+ getQueryString: function () {
78
+ var queryString = this.getSearch()
79
+ if (queryString) {
80
+ queryString = this.PIIRemover.stripPIIWithOverride(queryString, true, true)
81
+ queryString = this.stripGaParam(queryString)
82
+ queryString = queryString.substring(1) // removes the '?' character from the start.
83
+ return queryString
84
+ }
85
+ },
86
+
72
87
  getReferrer: function (referrer) {
73
88
  referrer = this.stripGaParam(referrer || document.referrer)
74
89
  return this.PIIRemover.stripPIIWithOverride(referrer, true, true)
@@ -150,6 +150,22 @@
150
150
  }
151
151
  }
152
152
 
153
+ .gem-c-action-link--dark-large-icon {
154
+ &:before {
155
+ background: image-url("govuk_publishing_components/action-link-arrow--dark.png");
156
+ background: image-url("govuk_publishing_components/action-link-arrow--dark.svg"), linear-gradient(transparent, transparent);
157
+ height: 34px;
158
+ width: 40px;
159
+ background-repeat: no-repeat;
160
+ background-size: 32px auto;
161
+ background-position: 0 2px;
162
+ }
163
+
164
+ @include govuk-media-query($until: tablet) {
165
+ margin-bottom: govuk-spacing(2);
166
+ }
167
+ }
168
+
153
169
  .gem-c-action-link--dark-icon,
154
170
  .gem-c-action-link--small-icon {
155
171
  max-width: none;
@@ -16,6 +16,7 @@
16
16
  simple ||= false
17
17
  simple_light ||= false
18
18
  dark_icon ||= false
19
+ dark_large_icon ||= false
19
20
  small_icon ||= false
20
21
  nhs_icon ||= false
21
22
  brexit_icon ||= false
@@ -27,6 +28,7 @@
27
28
  css_classes = %w(gem-c-action-link)
28
29
  css_classes << "gem-c-action-link--light-text" if light_text
29
30
  css_classes << "gem-c-action-link--dark-icon" if dark_icon
31
+ css_classes << "gem-c-action-link--dark-large-icon" if dark_large_icon
30
32
  css_classes << "gem-c-action-link--small-icon" if small_icon
31
33
  css_classes << "gem-c-action-link--transparent-icon" if transparent_icon
32
34
  css_classes << "gem-c-action-link--nhs" if nhs_icon
@@ -87,7 +87,7 @@
87
87
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
88
88
 
89
89
  <% # The default og:image is added below :head so that scrapers see any custom metatags first, and this is just a fallback %>
90
- <meta property="og:image" content="<%= asset_path "govuk-opengraph-image.png" %>">
90
+ <meta property="og:image" content="<%= asset_url("govuk-opengraph-image.png", host: Plek.website_root) %>">
91
91
 
92
92
  <%= yield :head %>
93
93
  </head>
@@ -115,6 +115,11 @@ examples:
115
115
  text: Coronavirus (COVID-19)
116
116
  href: "/my-test-page"
117
117
  dark_icon: true
118
+ with_dark_large_icon:
119
+ data:
120
+ text: Coronavirus (COVID-19)
121
+ href: "/my-test-page"
122
+ dark_large_icon: true
118
123
  with_brexit_icon_and_custom_font_size:
119
124
  data:
120
125
  text: Guidance for businesses
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "35.15.3".freeze
2
+ VERSION = "35.15.5".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: 35.15.3
4
+ version: 35.15.5
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: 2023-09-14 00:00:00.000000000 Z
11
+ date: 2023-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config