hof 20.5.0-eta-deindex → 20.5.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 2024-04-24, Version 20.5.0 (Stable), @mislam987
2
+ * Add hint property to checkboxes to fix spacing issue
3
+
1
4
  ## 2024-02-29, Version 20.4.0 (Stable), @sulthan-ahmed
2
5
  * Update version of govuk-frontend to 3.15
3
6
  - this adds the new crown for the King
@@ -4,7 +4,6 @@
4
4
  <!--[if gt IE 8]><!--><html lang="{{ htmlLang }}" class="govuk-template"><!--<![endif]-->
5
5
  <head>
6
6
  <meta charset="utf-8" />
7
- <meta name="robots" content="noindex">
8
7
  <title>{{ pageTitle }}</title>
9
8
  {{{ head }}}
10
9
 
@@ -319,6 +319,7 @@ module.exports = function (options) {
319
319
  error: this.errors && this.errors[key],
320
320
  invalid: this.errors && this.errors[key] && opts.required,
321
321
  label: t(fieldLabel || 'fields.' + key + '.label'),
322
+ hint: conditionalTranslate(getTranslationKey(field, key, 'hint')),
322
323
  selected: selected,
323
324
  className: classNames(field) || 'govuk-label govuk-checkboxes__label',
324
325
  child: field.child,
@@ -6,6 +6,11 @@
6
6
  {{{label}}}
7
7
  {{#error}}<span class="visuallyhidden">{{error.message}}</span>{{/error}}
8
8
  </label>
9
+ {{#hint}}
10
+ <div id="{{key}}-hint" class="govuk-hint govuk-checkboxes__hint">
11
+ {{hint}}
12
+ </div>
13
+ {{/hint}}
9
14
  </div>
10
15
  {{#renderChild}}{{/renderChild}}
11
16
  </div>
@@ -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}}{{#isPageHeading}}govuk-label--l{{/isPageHeading}}">
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}}
@@ -4,7 +4,7 @@
4
4
  <div id="{{id}}-group" class="govuk-form-group {{#formGroupClassName}}{{formGroupClassName}}{{/formGroupClassName}}{{#error}} govuk-form-group--error{{/error}}">
5
5
  {{#isPageHeading}}<h1 class="govuk-label-wrapper">{{/isPageHeading}}
6
6
  <label for="{{id}}"
7
- class="{{labelClassName}}{{#isPageHeading}}govuk-label--l{{/isPageHeading}}">
7
+ class="{{labelClassName}} {{#isPageHeading}}govuk-label--l{{/isPageHeading}}">
8
8
  {{{label}}}
9
9
  {{#error}}
10
10
  <p id="{{id}}-error" class="govuk-error-message">
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.5.0-eta-deindex",
4
+ "version": "20.5.0",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
@@ -70,6 +70,7 @@
70
70
  "lodash": "^4.17.21",
71
71
  "markdown-it": "^12.3.2",
72
72
  "minimatch": "^3.0.7",
73
+ "minimist": "^1.2.6",
73
74
  "mixwith": "^0.1.1",
74
75
  "moment": "^2.29.4",
75
76
  "morgan": "^1.10.0",
@@ -17,7 +17,6 @@
17
17
  "dependencies": {
18
18
  "govuk-frontend": "3.14",
19
19
  "jquery": "^3.6.0",
20
- "minimist": "^1.2.8",
21
20
  "sass": "^1.53.0",
22
21
  "typeahead-aria": "^1.0.4"
23
22
  },
package/sandbox/yarn.lock CHANGED
@@ -142,11 +142,6 @@ minimatch@^3.0.4:
142
142
  dependencies:
143
143
  brace-expansion "^1.1.7"
144
144
 
145
- minimist@^1.2.8:
146
- version "1.2.8"
147
- resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
148
- integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
149
-
150
145
  ms@^2.1.1:
151
146
  version "2.1.3"
152
147
  resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"