hof 20.0.0-beta.31 → 20.0.0-beta.33

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,9 +44,9 @@
44
44
  {{/gaTagId}}
45
45
  {{/cookieMessage}}
46
46
  {{$footerSupportLinks}}
47
- <ul>
47
+ <ul class="govuk-footer__inline-list">
48
48
  {{#footerSupportLinks}}
49
- <li class="govuk-footer__inline-list-item"><a href="{{path}}">{{#t}}{{property}}{{/t}}</a></li>
49
+ <li class="govuk-footer__inline-list-item"><a class="govuk-footer__link" href="{{path}}">{{#t}}{{property}}{{/t}}</a></li>
50
50
  {{/footerSupportLinks}}
51
51
  {{^footerSupportLinks}}
52
52
  <li class="govuk-footer__inline-list-item"><a class="govuk-footer__link" href="/cookies">{{#t}}base.cookies{{/t}}</a></li>
@@ -5,10 +5,10 @@
5
5
  <dt class="confirm-label">{{label}}</dt>
6
6
  <dd class="confirm-value" data-value="{{value}}">{{value}}</dd>
7
7
  {{#changeLink}}
8
- <dd><span class="link"><a href="{{changeLink}}" id="{{field}}-change-{{index}}">{{#t}}buttons.change{{/t}} <span class="visuallyhidden">{{changeLinkDescription}} from {{value}}</span></a></span></dd>
8
+ <dd><span><a class="govuk-link" href="{{changeLink}}" id="{{field}}-change-{{index}}">{{#t}}buttons.change{{/t}} <span class="visuallyhidden">{{changeLinkDescription}} from {{value}}</span></a></span></dd>
9
9
  {{/changeLink}}
10
10
  {{^changeLink}}
11
- <dd><span class="link"><a href="{{baseUrl}}{{step}}/edit#{{field}}" id="{{field}}-change">{{#t}}buttons.change{{/t}} <span class="visuallyhidden">{{changeLinkDescription}} from {{value}}</span></a></span></dd>
11
+ <dd><span><a class="govuk-link" href="{{baseUrl}}{{step}}/edit#{{field}}" id="{{field}}-change">{{#t}}buttons.change{{/t}} <span class="visuallyhidden">{{changeLinkDescription}} from {{value}}</span></a></span></dd>
12
12
  {{/changeLink}}
13
13
  {{/isSeparator}}
14
14
  </div>
@@ -7,12 +7,14 @@ var groupBy = require('lodash').groupBy;
7
7
  var helpers = require('./helpers');
8
8
  var inputs; var groups;
9
9
  var toggleAttr = 'data-toggle';
10
- var hiddenClass = 'js-hidden';
10
+ var checkboxHiddenClass = 'govuk-checkboxes__conditional--hidden';
11
+ var radioHiddenClass = 'govuk-radios__conditional--hidden';
11
12
 
12
13
  function inputClicked(e, target) {
13
14
  target = target || helpers.target(e);
14
15
  var shown;
15
16
  each(groups[target.name], function (input) {
17
+ var hiddenClass = (input.type.match(/checkbox/)) ? checkboxHiddenClass : radioHiddenClass;
16
18
  var id = input.getAttribute('aria-controls');
17
19
  var toggle = document.getElementById(id);
18
20
  if (toggle) {
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.0-beta.31",
4
+ "version": "20.0.0-beta.33",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
@@ -94,30 +94,6 @@
94
94
  "options": {
95
95
  "null": "Select..."
96
96
  }
97
- },
98
- "purposeTypes": {
99
- "legend": "What will you use the loan for?",
100
- "hint": "Select all options that apply to you.",
101
- "options": {
102
- "housing": {
103
- "label": "Housing",
104
- "hint": "Deposit, rent payment or moving costs."
105
- },
106
- "essential_items": {
107
- "label": "Essential items",
108
- "hint": "For example, furniture, fridge, curtains or carpets."
109
- },
110
- "basic_living_costs": {
111
- "label": "Basic living costs",
112
- "hint": "For example, food or household bills."
113
- },
114
- "training_or_retraining": {
115
- "label": "Training or education"
116
- },
117
- "work_clothing_and_equipment": {
118
- "label": "Work clothing and equipment"
119
- }
120
- }
121
97
  }
122
98
  },
123
99
  "journey": {
@@ -710,12 +710,14 @@ var groupBy = require('lodash').groupBy;
710
710
  var helpers = require('./helpers');
711
711
  var inputs; var groups;
712
712
  var toggleAttr = 'data-toggle';
713
- var hiddenClass = 'js-hidden';
713
+ var checkboxHiddenClass = 'govuk-checkboxes__conditional--hidden';
714
+ var radioHiddenClass = 'govuk-radios__conditional--hidden';
714
715
 
715
716
  function inputClicked(e, target) {
716
717
  target = target || helpers.target(e);
717
718
  var shown;
718
719
  each(groups[target.name], function (input) {
720
+ var hiddenClass = (input.type.match(/checkbox/)) ? checkboxHiddenClass : radioHiddenClass;
719
721
  var id = input.getAttribute('aria-controls');
720
722
  var toggle = document.getElementById(id);
721
723
  if (toggle) {