hof 20.0.0-beta.16 → 20.0.0-beta.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@
14
14
  type="{{type}}"
15
15
  name="{{id}}"
16
16
  id="{{id}}"
17
- class="govuk-input{{#className}} {{className}}{{/className}}{{#error}} invalid-input{{/error}}"
17
+ class="govuk-input{{#className}} {{className}}{{/className}}{{#error}} govuk-input—error{{/error}}"
18
18
  aria-required="{{required}}"
19
19
  {{#value}} value="{{value}}"{{/value}}
20
20
  {{#min}} min="{{min}}"{{/min}}
@@ -1,5 +1,5 @@
1
1
  <div id="{{id}}-group" class="{{#compound}} form-group-compound{{/compound}}{{#formGroupClassName}}{{formGroupClassName}}{{/formGroupClassName}}{{#error}} govuk-form-group--error{{/error}}">
2
- {{#isPageHeading}}<h1 class="govuk-label-wrapper">{{/isPageHeading}}<label for="{{id}}" class="{{labelClassName}}">
2
+ {{#isPageHeading}}<h1 class="govuk-label-wrapper">{{/isPageHeading}}<label for="{{id}}" class="{{labelClassName}}{{#isPageHeading}}govuk-label--l{{/isPageHeading}}">
3
3
  {{{label}}}
4
4
  </label>
5
5
  {{#isPageHeading}}</h1>{{/isPageHeading}}
@@ -19,7 +19,7 @@
19
19
  type="{{type}}"
20
20
  name="{{id}}"
21
21
  id="{{id}}"
22
- class="{{^className}}govuk-input{{/className}}{{#className}}{{className}}{{/className}}{{#error}} invalid-input{{/error}}"
22
+ class="{{^className}}govuk-input{{/className}}{{#className}}{{className}}{{/className}}{{#error}} govuk-input—error{{/error}}"
23
23
  aria-required="{{required}}"
24
24
  {{#value}} value="{{value}}"{{/value}}
25
25
  {{#min}} min="{{min}}"{{/min}}
@@ -9,7 +9,7 @@
9
9
  {{/error}}
10
10
  </label>
11
11
  {{#isPageHeading}}</h1>{{/isPageHeading}}
12
- <select id="{{id}}" class="govuk-select{{#className}} {{className}}{{/className}}{{#error}} invalid-input{{/error}}" name="{{id}}" aria-required="{{required}}">
12
+ <select id="{{id}}" class="govuk-select{{#className}} {{className}}{{/className}}{{#error}} govuk-select—error{{/error}}" name="{{id}}" aria-required="{{required}}">
13
13
  {{#options}}
14
14
  <option value="{{value}}" {{#selected}}selected{{/selected}}>{{label}}</option>
15
15
  {{/options}}
@@ -2,7 +2,7 @@
2
2
  <div class="govuk-character-count" data-module="govuk-character-count" data-maxlength="{{maxlength}}">
3
3
  {{/maxlength}}
4
4
  <div id="{{id}}-group" class="{{#compound}}form-group-compound {{/compound}}{{#formGroupClassName}}{{formGroupClassName}}{{/formGroupClassName}}{{#error}} govuk-form-group--error{{/error}}">
5
- {{#isPageHeading}}<h1 class="govuk-label-wrapper">{{/isPageHeading}}<label for="{{id}}" class="{{labelClassName}}">
5
+ {{#isPageHeading}}<h1 class="govuk-label-wrapper">{{/isPageHeading}}<label for="{{id}}" class="{{labelClassName}}{{#isPageHeading}}govuk-label--l{{/isPageHeading}}">
6
6
  {{{label}}}
7
7
  {{#error}}
8
8
  <p id="{{id}}-error" class="govuk-error-message">
@@ -16,7 +16,7 @@
16
16
  <textarea
17
17
  name="{{id}}"
18
18
  id="{{id}}"
19
- class="govuk-textarea{{#className}} {{className}}{{/className}} {{#maxlength}}maxlength{{/maxlength}}{{#error}} invalid-input{{/error}}"
19
+ class="govuk-textarea{{#className}} {{className}}{{/className}} {{#maxlength}}maxlength{{/maxlength}}{{#error}} govuk-input—error{{/error}}"
20
20
  aria-required="{{required}}"
21
21
  {{#maxlength}} maxlength="{{maxlength}}"{{/maxlength}}
22
22
  {{#attributes}}
@@ -25,7 +25,7 @@
25
25
  .govuk-form-group--error {
26
26
  box-sizing: border-box;
27
27
  padding-left: $gutter-half - $validation-bdr-size;
28
- border-left: $validation-bdr-size-lg solid $error-colour;
28
+ //border-left: $validation-bdr-size-lg solid $error-colour;
29
29
 
30
30
  &:focus {
31
31
  outline: $focus-outline;
@@ -42,7 +42,7 @@
42
42
  margin-bottom: 0.5em;
43
43
  }
44
44
  @include bold-19;
45
- color: $error-colour;
45
+ //color: $error-colour;
46
46
  }
47
47
 
48
48
  .invalid-input,
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.16",
4
+ "version": "20.0.0-beta.19",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
@@ -0,0 +1,203 @@
1
+ {
2
+ "fields": {
3
+ "landing-page-radio": {
4
+ "legend": "Which form would you like to explore?",
5
+ "hint": "Choose one of the options below and press continue.",
6
+ "options": {
7
+ "basic-form": {
8
+ "label": "Basic form"
9
+ },
10
+ "complex-form": {
11
+ "label": "Complex form"
12
+ },
13
+ "build-your-own-form": {
14
+ "label": "Build your own form"
15
+ }
16
+ }
17
+ },
18
+ "name": {
19
+ "label": "What is your full name?"
20
+ },
21
+ "dateOfBirth": {
22
+ "legend": "What is your date of birth?",
23
+ "hint": "For example, 31 10 1990"
24
+ },
25
+ "building": {
26
+ "label": "Building and street"
27
+ },
28
+ "street": {
29
+ "label": "Address line 2"
30
+ },
31
+ "townOrCity": {
32
+ "label": "Town or city"
33
+ },
34
+ "postcode": {
35
+ "label": "Postcode"
36
+ },
37
+ "incomeTypes": {
38
+ "label": "Sources of income",
39
+ "legend": "Select the options where you receive income from",
40
+ "hint": "Select all options that apply to you.",
41
+ "options": {
42
+ "salary": {
43
+ "label": "Salary"
44
+ },
45
+ "universal_credit": {
46
+ "label": "Universal Credit"
47
+ },
48
+ "child_benefit": {
49
+ "label": "Child Benefit"
50
+ },
51
+ "housing_benefit": {
52
+ "label": "Housing Benefit"
53
+ },
54
+ "other": {
55
+ "label": "Other"
56
+ }
57
+ }
58
+ },
59
+ "countryOfHearing": {
60
+ "legend": "What country was the appeal lodged?",
61
+ "options": {
62
+ "englandAndWales": {
63
+ "label": "England and Wales"
64
+ },
65
+ "scotland": {
66
+ "label": "Scotland"
67
+ },
68
+ "northernIreland": {
69
+ "label": "Northern Ireland"
70
+ }
71
+ }
72
+ },
73
+ "email": {
74
+ "label": "Enter your email address"
75
+ },
76
+ "phone": {
77
+ "label": "Phone number",
78
+ "hint": "International phone numbers require the international dialling code, for example +33235066182"
79
+ },
80
+ "int-phone-number": {
81
+ "legend": "International phone number"
82
+ },
83
+ "complaintDetails": {
84
+ "label": "Complaint details",
85
+ "hint": "Briefly summarise your complaint. Include anything that can help our investigation."
86
+ },
87
+ "countrySelect": {
88
+ "label": "Which country are you based in?",
89
+ "hint": "Start to type the country name and options will appear"
90
+ },
91
+ "appealStages": {
92
+ "label": "Appeal stage",
93
+ "hint": "Choose an appeal stage from the drop down menu",
94
+ "options": {
95
+ "null": "Select..."
96
+ }
97
+ }
98
+ },
99
+ "journey": {
100
+ "header": "HOF Bootstrap Sandbox Form",
101
+ "confirmation": {
102
+ "details": "Your reference number <br><strong>HDJ2123F</strong>"
103
+ }
104
+ },
105
+ "pages": {
106
+ "landing-page": {
107
+ "header": "Landing page"
108
+ },
109
+ "build-your-own-form": {
110
+ "title": "Build your own form",
111
+ "subheader": "Access the build your own form guidance link"
112
+ },
113
+ "address": {
114
+ "header": "What is your address in the UK?",
115
+ "intro": "If you have no fixed address, enter an address where we can contact you."
116
+ },
117
+ "phone-number": {
118
+ "header": "Enter your phone number"
119
+ },
120
+ "confirm": {
121
+ "header": "Check your answers before submitting your application.",
122
+ "sections": {
123
+ "applicantsDetails": {
124
+ "header": "Applicant's details"
125
+ },
126
+ "address": {
127
+ "header": "Address"
128
+ },
129
+ "income": {
130
+ "header": "Income"
131
+ },
132
+ "appealDetails": {
133
+ "header": "Appeal details"
134
+ },
135
+ "countrySelect": {
136
+ "header": "Country of residence"
137
+ },
138
+ "contactDetails": {
139
+ "header": "Contact details"
140
+ },
141
+ "complaintDetails": {
142
+ "header": "Complaint details"
143
+ }
144
+ }
145
+ },
146
+ "confirmation": {
147
+ "title": "Application sent",
148
+ "alert": "Application sent",
149
+ "subheader": "What happens next",
150
+ "content": "We’ll contact you with the decision of your application or if we need more information from you."
151
+ }
152
+ },
153
+ "validation": {
154
+ "landing-page-radio": {
155
+ "required": "Select an option below and press continue"
156
+ },
157
+ "name": {
158
+ "default": "Enter your full name"
159
+ },
160
+ "dateOfBirth": {
161
+ "default": "Enter your date of birth in the correct format; for example, 31 10 1990",
162
+ "after": "Enter a date after 1 1 1900",
163
+ "before": "Enter a date that is in the past"
164
+ },
165
+ "building": {
166
+ "default": "Enter details of your building and street"
167
+ },
168
+ "townOrCity": {
169
+ "default": "Enter a town or city",
170
+ "regex": "Enter a town or city without including digits"
171
+ },
172
+ "postcode": {
173
+ "default": "Enter your postcode"
174
+ },
175
+ "incomeTypes": {
176
+ "default": "Select all options that apply to you."
177
+ },
178
+ "countryOfHearing": {
179
+ "default": "Select where the appeal hearing is to be held"
180
+ },
181
+ "countrySelect": {
182
+ "default": "Enter a valid country of residence",
183
+ "required": "Enter your country of residence"
184
+ },
185
+ "email": {
186
+ "default": "Enter your email address in the correct format"
187
+ },
188
+ "phone": {
189
+ "default": "Enter your phone number"
190
+ },
191
+ "int-phone-number": {
192
+ "required": "Enter an international phone number",
193
+ "internationalPhoneNumber": "Enter a valid international phone number"
194
+ },
195
+ "complaintDetails": {
196
+ "default": "Enter details about why you are making a complaint",
197
+ "maxlength": "Keep to the {{maxlength}} character limit"
198
+ },
199
+ "appealStages": {
200
+ "required": "Select an appeal stage from the list"
201
+ }
202
+ }
203
+ }