hof 20.0.1 → 20.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -121,7 +121,8 @@ module.exports = SuperClass => class extends SuperClass {
121
121
  }
122
122
 
123
123
  getStepForField(key, steps) {
124
- return Object.keys(steps).filter(step => steps[step].fields && steps[step].fields.indexOf(key) > -1)[0];
124
+ const keyName = Array.isArray(key) ? key[0] : key;
125
+ return Object.keys(steps).filter(step => steps[step].fields && steps[step].fields.indexOf(keyName) > -1)[0];
125
126
  }
126
127
 
127
128
 
@@ -18,7 +18,7 @@
18
18
  <a class="govuk-link" href="/cookies">View cookies</a>
19
19
  </div>
20
20
  </div>
21
- <div class="gem-c-cookie-banner__confirmation govuk-width-container" tabindex="0" hidden="" id="cookie-banner-submitted" >
21
+ <div class="gem-c-cookie-banner__confirmation govuk-width-container" hidden="" id="cookie-banner-submitted" >
22
22
  <p class="gem-c-cookie-banner__confirmation-message" role="alert">
23
23
  Your cookie preferences have been saved. You can <a class="govuk-link" data-module="gem-track-click" data-track-category="cookieBanner" data-track-action="Cookie banner settings clicked from confirmation" href="/cookies">change your cookie settings</a> at any time.
24
24
  </p>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "20.0.1",
4
+ "version": "20.0.3",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",