govuk_publishing_components 35.15.3 → 35.15.4

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: f8533adba3392301001871fbe61ae994c04e20161bc629ba88e2388e76b696da
4
- data.tar.gz: 1eec5780f166fab5b8ba18ffa62c093d1d4f570cccf0c901f466cbf136dcbcff
3
+ metadata.gz: c5baadeb72cff594caeffb0d791d32d3d32a6135dd93bd1c6b8190ba01997865
4
+ data.tar.gz: '078f9bf537fe6341f5bd7d6fb859be1859d9832ad62d8cac2438c5ad5ae06b13'
5
5
  SHA512:
6
- metadata.gz: 80f9f867f5cea155dbc5fc158ef4fb32ded03123f8bcc4885e06e3f44fe94dc7169a941758aa96b88953d7f7eda678c9c882490a90cce05bd085762562dc178a
7
- data.tar.gz: 8a93fabbfae63dcc902449ff97d2cfa6d741cdd971a6bac9bc1c70fc1f285e438af91c8a885647b5fbc11d1a6f922472c75c98cff07c075d239cbd679ffa6d0d
6
+ metadata.gz: 03131a4e41598a5f770f188d50a8e8ac3625d2b063ab47e2cc3485a3b5611aa6367af68093c33ac315d8a1b4d956ac8921080a1b7b9e93d0f12c1e8507b684e1
7
+ data.tar.gz: ecbb58fc79d2026ea8f096d93803addf0ce5d75ac30ff4e6fb00a0e86fbe3eab7ce2a78b9a332a7ddc90ef69ab16ee14b8d3b8b2a69d767d678e48a1f78dc985
@@ -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
@@ -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.4".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.4
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