govuk_publishing_components 21.67.1 → 21.67.2

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: 4c205c5ca67e71e1e72ae01d1f991b29e89da02f4c830db86f6c4f73952ee1c3
4
- data.tar.gz: e3773261a647b5f701bd3f675c29ad678d9cee292b1e25614657a41133418d01
3
+ metadata.gz: dff3c8adb46566625a54c58136bffb72bbaec93fa9d803f04d6372c09065766a
4
+ data.tar.gz: 48b13db7e001c01cbf4f230195f42248a3378e8f263e7abcb9dae8e88a4e382d
5
5
  SHA512:
6
- metadata.gz: d96e9b56a38d2a5b2613d99e823c7e6c420295626865093dcbb8a142bcfb16738de9d6f0c1858368c62a8c236b129a3a513b9d61215251ee182b632d4bd3156e
7
- data.tar.gz: 62925d4b3f203e1e8edfb5f631846e1a816fc6a2cc29e7c19615a5661720a4059abc291cac7eea09e34776a74e990cddd315b42594f15437fcf57ce987715af6
6
+ metadata.gz: be93ed1a460324911d7e4626a028f5352b7d4a5cbe0838ec67516f1ed03ca6373559f45c60faa572acc112d56d52c035700d4e205dc01f60c057e6355a473dfe
7
+ data.tar.gz: a46214b1b651dffebaf202c8c1a003c9b2275abd042f458dc8fab883e97a9aeacba0e9d1dbb76070e14f76b87c9d353a63a6a332bad3b291d1ed4d032f744293
@@ -80,9 +80,21 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
80
80
 
81
81
  if (!thisel.querySelectorAll('.js-toggle-link').length) {
82
82
  var span = document.createElement('span')
83
- span.className = 'gem-c-step-nav__toggle-link js-toggle-link'
84
- span.setAttribute('aria-hidden', true)
85
- span.setAttribute('hidden', 'hidden')
83
+ var showHideSpan = document.createElement('span')
84
+ var commaSpan = document.createElement('span')
85
+ var thisSectionSpan = document.createElement('span')
86
+
87
+ showHideSpan.className = 'gem-c-step-nav__toggle-link js-toggle-link'
88
+ commaSpan.className = 'govuk-visually-hidden'
89
+ thisSectionSpan.className = 'govuk-visually-hidden'
90
+
91
+ commaSpan.innerHTML = ', '
92
+ thisSectionSpan.innerHTML = ' this section'
93
+
94
+ span.appendChild(commaSpan)
95
+ span.appendChild(showHideSpan)
96
+ span.appendChild(thisSectionSpan)
97
+
86
98
  thisel.querySelectorAll('.js-step-title-button')[0].appendChild(span)
87
99
  }
88
100
  }
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "21.67.1".freeze
2
+ VERSION = "21.67.2".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: 21.67.1
4
+ version: 21.67.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev