govuk_publishing_components 35.1.0 → 35.1.1

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: fd345b52485fb5fefdb529d929af976ca97fe31f8c9d73d5d8aa42868dbc55b0
4
- data.tar.gz: 3a41640de2f4784004f724604bdc7dc1a9a9202f963e1304c2c4ae4d2db2dfa9
3
+ metadata.gz: da29b78f56ceabe774802deed6b8570f0459ba1414b60d0a46b1c891facb5b25
4
+ data.tar.gz: 2b431b2babeb7dc74281f27b13f23525b658d8cace7727ed08658945d0669763
5
5
  SHA512:
6
- metadata.gz: 0cfddee718886b034fcef934d97479726c0cf74257c268a8671f8ce2d88de9715416021dff81cc948d0791b70a115ba9545e6bde329ccf0fccaac1530687c915
7
- data.tar.gz: 561a511659dd0a07ca6d6b8432bdddff207770cc6a782d54ddd769dfbfd17c30583b9e2585688ad1decb645bd4390ae17d61e5e52b97fc33859ef801e9c73c4d
6
+ metadata.gz: 74a753d9e83276ae6c71bf0ce682a8cfd269195adda6ca9d04188d729f19da63103de4a31285902a5195b87762921a905adb91acf5674a19e1b0e90a9b3c5f6d
7
+ data.tar.gz: 17a2048555b604f03a55ab8756c9a33a8b1324b8c2db8944868264d06526e1e01fd2ced69b3fb06746be8252e32aaeb0d7b2a28ae005b0ccd082986f5b408d4a
@@ -17,8 +17,6 @@
17
17
  // if there are no accordion sections on the browse level 2 page
18
18
  // then it is a default page with one or two lists
19
19
  return document.querySelectorAll('[data-track-count="accordionSection"]').length || document.querySelectorAll('main .govuk-list').length
20
- case isCostOfLivingHub():
21
- return document.querySelectorAll('[data-track-count="accordionSection"]').length
22
20
  case isNewBrowsePage():
23
21
  return document.querySelectorAll('[data-track-count="cardList"]').length
24
22
  case isMainstreamBrowsePage():
@@ -53,7 +51,6 @@
53
51
  case isDocumentCollectionPage():
54
52
  return document.querySelectorAll('.document-collection .group-document-list li a').length
55
53
  case isNewBrowsePageLevelTwo():
56
- case isCostOfLivingHub():
57
54
  return document.querySelectorAll('[data-track-count="contentLink"]').length
58
55
  case isNewBrowsePage():
59
56
  return document.querySelectorAll('[data-track-count="cardLink"]').length
@@ -111,11 +108,6 @@
111
108
  getMetaAttribute(metaNavigationTypeSelector) === 'browse level 2'
112
109
  }
113
110
 
114
- function isCostOfLivingHub () {
115
- return getMetaAttribute(metaApplicationSelector) === 'collections' &&
116
- getMetaAttribute(metaNavigationTypeSelector) === 'cost of living hub'
117
- }
118
-
119
111
  function isNewBrowsePage () {
120
112
  return getMetaAttribute(metaApplicationSelector) === 'collections' &&
121
113
  (getMetaAttribute(metaNavigationTypeSelector) === 'browse level 0' ||
@@ -230,8 +230,8 @@ en:
230
230
  navigation_search_heading: Search and popular pages
231
231
  navigation_search_subheading: Search
232
232
  popular_links:
233
- - label: Check benefits and financial support you can get
234
- href: "/check-benefits-financial-support"
233
+ - label: Get support with the cost of living
234
+ href: "/cost-of-living"
235
235
  - label: Find out about the Energy Bills Support Scheme
236
236
  href: "/guidance/getting-the-energy-bills-support-scheme-discount"
237
237
  - label: Find a job
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "35.1.0".freeze
2
+ VERSION = "35.1.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 35.1.0
4
+ version: 35.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev