@ons/design-system 65.2.0 → 65.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/README.md +1 -0
  2. package/components/access-code/example-access-code-error.njk +1 -1
  3. package/components/access-code/example-access-code.njk +1 -1
  4. package/components/accordion/example-accordion-open.njk +10 -10
  5. package/components/accordion/example-accordion.njk +1 -1
  6. package/components/address-input/example-address-input-editable.njk +2 -2
  7. package/components/address-input/example-address-input-manual.njk +3 -3
  8. package/components/address-input/example-address-input.njk +2 -2
  9. package/components/autosuggest/_macro.njk +1 -0
  10. package/components/autosuggest/autosuggest.js +2 -1
  11. package/components/autosuggest/autosuggest.spec.js +89 -55
  12. package/components/autosuggest/autosuggest.ui.js +8 -12
  13. package/components/autosuggest/example-autosuggest-country-multiple.njk +4 -3
  14. package/components/autosuggest/example-autosuggest-country.njk +1 -1
  15. package/components/back-link/example-back-link.njk +1 -1
  16. package/components/card/example-card-set-with-images.njk +3 -3
  17. package/components/card/example-card-set-with-lists.njk +3 -3
  18. package/components/card/example-card-set.njk +3 -3
  19. package/components/card/example-card.njk +1 -1
  20. package/components/checkboxes/example-checkboxes-disabled.njk +3 -3
  21. package/components/checkboxes/example-checkboxes-error.njk +7 -7
  22. package/components/checkboxes/example-checkboxes-with-descriptions.njk +7 -7
  23. package/components/checkboxes/example-checkboxes-with-hidden-label.njk +9 -9
  24. package/components/checkboxes/example-checkboxes-with-revealed-checkboxes-expanded.njk +8 -8
  25. package/components/checkboxes/example-checkboxes-with-revealed-checkboxes.njk +8 -8
  26. package/components/checkboxes/example-checkboxes-with-revealed-radios-expanded.njk +8 -8
  27. package/components/checkboxes/example-checkboxes-with-revealed-radios.njk +8 -8
  28. package/components/checkboxes/example-checkboxes-with-revealed-select-expanded.njk +4 -4
  29. package/components/checkboxes/example-checkboxes-with-revealed-select.njk +4 -4
  30. package/components/checkboxes/example-checkboxes-with-revealed-text-input-expanded.njk +6 -6
  31. package/components/checkboxes/example-checkboxes-with-revealed-text-input.njk +6 -6
  32. package/components/checkboxes/example-checkboxes-with-select-all-button.njk +4 -4
  33. package/components/checkboxes/example-checkboxes-with-visible-text-input.njk +6 -6
  34. package/components/checkboxes/example-checkboxes-without-border.njk +3 -3
  35. package/components/checkboxes/example-checkboxes.njk +4 -4
  36. package/components/date-input/example-date-input-error.njk +2 -2
  37. package/components/date-input/example-date-input.njk +1 -1
  38. package/components/details/example-details-with-warning.njk +1 -1
  39. package/components/details/example-details.njk +1 -1
  40. package/components/duration/example-duration-error.njk +6 -6
  41. package/components/duration/example-duration.njk +5 -5
  42. package/components/header/example-header-external-with-service-links.njk +1 -1
  43. package/components/header/example-header-internal.njk +1 -1
  44. package/components/input/example-input-email.njk +1 -1
  45. package/components/input/example-input-number.njk +1 -1
  46. package/components/input/example-input-numeric-values.njk +7 -7
  47. package/components/input/example-input-text-with-character-limit-checker.njk +1 -1
  48. package/components/input/example-input-text-with-description.njk +1 -1
  49. package/components/input/example-input-text.njk +1 -1
  50. package/components/mutually-exclusive/example-mutually-exclusive-checkboxes.njk +6 -6
  51. package/components/mutually-exclusive/example-mutually-exclusive-date-with-error.njk +2 -2
  52. package/components/mutually-exclusive/example-mutually-exclusive-email.njk +2 -2
  53. package/components/mutually-exclusive/example-mutually-exclusive-multiple-options.njk +5 -5
  54. package/components/radios/example-radios-with-clear-button-expanded.njk +9 -9
  55. package/components/radios/example-radios-with-clear-button.njk +9 -9
  56. package/components/radios/example-radios-with-descriptions.njk +5 -5
  57. package/components/radios/example-radios-with-error.njk +4 -4
  58. package/components/radios/example-radios-with-revealed-checkboxes-expanded.njk +8 -8
  59. package/components/radios/example-radios-with-revealed-checkboxes.njk +8 -8
  60. package/components/radios/example-radios-with-revealed-radios-expanded.njk +9 -9
  61. package/components/radios/example-radios-with-revealed-radios.njk +8 -8
  62. package/components/radios/example-radios-with-revealed-select-expanded.njk +5 -5
  63. package/components/radios/example-radios-with-revealed-select.njk +4 -4
  64. package/components/radios/example-radios-with-revealed-text-input-expanded.njk +9 -9
  65. package/components/radios/example-radios-with-revealed-text-input.njk +9 -9
  66. package/components/radios/example-radios-with-visible-text-input.njk +3 -3
  67. package/components/relationships/example-relationships-error.njk +13 -13
  68. package/components/relationships/example-relationships-you.njk +13 -13
  69. package/components/relationships/example-relationships.njk +13 -13
  70. package/components/select/example-select-with-error.njk +1 -1
  71. package/components/select/example-select-with-inline-label.njk +1 -1
  72. package/components/select/example-select.njk +1 -1
  73. package/components/textarea/example-textarea-error.njk +1 -1
  74. package/components/upload/example-upload-error.njk +1 -1
  75. package/components/upload/example-upload.njk +1 -1
  76. package/package.json +2 -3
  77. package/scripts/main.es5.js +1 -1
  78. package/scripts/main.js +1 -1
@@ -8,55 +8,55 @@
8
8
  "borderless": true,
9
9
  "checkboxes": [
10
10
  {
11
- "id": "post",
11
+ "id": "post-example-with-revealed-radios",
12
12
  "label": {
13
13
  "text": "By post"
14
14
  },
15
15
  "value": "post"
16
16
  },
17
17
  {
18
- "id": "email",
18
+ "id": "email-example-with-revealed-radios",
19
19
  "label": {
20
20
  "text": "By email"
21
21
  },
22
22
  "value": "email"
23
23
  },
24
24
  {
25
- "id": "phone",
25
+ "id": "phone-example-with-revealed-radios",
26
26
  "label": {
27
27
  "text": "By phone"
28
28
  },
29
29
  "value": "phone",
30
30
  "other": {
31
31
  "otherType": "radios",
32
- "id": "phone-time",
32
+ "id": "phone-time-example-with-revealed-radios",
33
33
  "name": "phone-time",
34
34
  "legend": "Choose preferred time of day",
35
35
  "radios": [
36
36
  {
37
37
  "value": "anytime",
38
- "id": "anytime",
38
+ "id": "anytime-example-with-revealed-radios",
39
39
  "label": {
40
40
  "text": "Any time of day"
41
41
  }
42
42
  },
43
43
  {
44
44
  "value": "morning",
45
- "id": "morning",
45
+ "id": "morning-example-with-revealed-radios",
46
46
  "label": {
47
47
  "text": "Morning"
48
48
  }
49
49
  },
50
50
  {
51
51
  "value": "afternoon",
52
- "id": "afternoon",
52
+ "id": "afternoon-example-with-revealed-radios",
53
53
  "label": {
54
54
  "text": "Afternoon"
55
55
  }
56
56
  },
57
57
  {
58
58
  "value": "evening",
59
- "id": "evening",
59
+ "id": "evening-example-with-revealed-radios",
60
60
  "label": {
61
61
  "text": "Evening"
62
62
  }
@@ -13,21 +13,21 @@
13
13
  "name": "contact",
14
14
  "checkboxes": [
15
15
  {
16
- "id": "post",
16
+ "id": "post-example-checkbox-with-revealed-select-expanded",
17
17
  "label": {
18
18
  "text": "By post"
19
19
  },
20
20
  "value": "post"
21
21
  },
22
22
  {
23
- "id": "email",
23
+ "id": "email-example-checkbox-with-revealed-select-expanded",
24
24
  "label": {
25
25
  "text": "By email"
26
26
  },
27
27
  "value": "email"
28
28
  },
29
29
  {
30
- "id": "phone",
30
+ "id": "phone-example-checkbox-with-revealed-select-expanded",
31
31
  "label": {
32
32
  "text": "By phone"
33
33
  },
@@ -35,7 +35,7 @@
35
35
  "checked": true,
36
36
  "other": {
37
37
  "otherType": "select",
38
- "id": "phone-time",
38
+ "id": "phone-time-example-checkbox-with-revealed-select-expanded",
39
39
  "name": "phone-time",
40
40
  "label": {
41
41
  "text": "Choose preferred time of day"
@@ -13,28 +13,28 @@
13
13
  "name": "contact",
14
14
  "checkboxes": [
15
15
  {
16
- "id": "post",
16
+ "id": "post-example-checkbox-with-revealed-select",
17
17
  "label": {
18
18
  "text": "By post"
19
19
  },
20
20
  "value": "post"
21
21
  },
22
22
  {
23
- "id": "email",
23
+ "id": "email-example-checkbox-with-revealed-select",
24
24
  "label": {
25
25
  "text": "By email"
26
26
  },
27
27
  "value": "email"
28
28
  },
29
29
  {
30
- "id": "phone",
30
+ "id": "phone-example-checkbox-with-revealed-select",
31
31
  "label": {
32
32
  "text": "By phone"
33
33
  },
34
34
  "value": "phone",
35
35
  "other": {
36
36
  "otherType": "select",
37
- "id": "phone-time",
37
+ "id": "phone-time-example-checkbox-with-revealed-select",
38
38
  "name": "phone-time",
39
39
  "label": {
40
40
  "text": "Choose preferred time of day"
@@ -12,42 +12,42 @@
12
12
  "dontWrap": true,
13
13
  "checkboxes": [
14
14
  {
15
- "id": "gluten-free",
15
+ "id": "gluten-free-example-checkbox-with-revealed-text-input-expanded",
16
16
  "label": {
17
17
  "text": "Gluten free"
18
18
  },
19
19
  "value": "gluten-free"
20
20
  },
21
21
  {
22
- "id": "lactose-intolerant",
22
+ "id": "lactose-intolerant-example-checkbox-with-revealed-text-input-expanded",
23
23
  "label": {
24
24
  "text": "Lactose intolerant"
25
25
  },
26
26
  "value": "lactose-intolerant"
27
27
  },
28
28
  {
29
- "id": "vegan",
29
+ "id": "vegan-example-checkbox-with-revealed-text-input-expanded",
30
30
  "label": {
31
31
  "text": "Vegan"
32
32
  },
33
33
  "value": "vegan"
34
34
  },
35
35
  {
36
- "id": "vegetarian",
36
+ "id": "vegetarian-example-checkbox-with-revealed-text-input-expanded",
37
37
  "label": {
38
38
  "text": "Vegetarian"
39
39
  },
40
40
  "value": "vegetarian"
41
41
  },
42
42
  {
43
- "id": "other-checkbox",
43
+ "id": "other-checkbox-with-revealed-text-input-expanded",
44
44
  "label": {
45
45
  "text": "Other"
46
46
  },
47
47
  "value": "other",
48
48
  "checked": true,
49
49
  "other": {
50
- "id": "other-textbox",
50
+ "id": "other-textbox-example-checkbox-with-revealed-text-input-expanded",
51
51
  "name": "other-answer",
52
52
  "label": {
53
53
  "text": "Enter dietary requirements"
@@ -12,41 +12,41 @@
12
12
  "dontWrap": true,
13
13
  "checkboxes": [
14
14
  {
15
- "id": "gluten-free",
15
+ "id": "gluten-free-example-checkbox-with-revealed-text-input",
16
16
  "label": {
17
17
  "text": "Gluten free"
18
18
  },
19
19
  "value": "gluten-free"
20
20
  },
21
21
  {
22
- "id": "lactose-intolerant",
22
+ "id": "lactose-intolerant-example-checkbox-with-revealed-text-input",
23
23
  "label": {
24
24
  "text": "Lactose intolerant"
25
25
  },
26
26
  "value": "lactose-intolerant"
27
27
  },
28
28
  {
29
- "id": "vegan",
29
+ "id": "vegan-example-checkbox-with-revealed-text-input",
30
30
  "label": {
31
31
  "text": "Vegan"
32
32
  },
33
33
  "value": "vegan"
34
34
  },
35
35
  {
36
- "id": "vegetarian",
36
+ "id": "vegetarian-example-checkbox-with-revealed-text-input",
37
37
  "label": {
38
38
  "text": "Vegetarian"
39
39
  },
40
40
  "value": "vegetarian"
41
41
  },
42
42
  {
43
- "id": "other-checkbox",
43
+ "id": "other-checkbox-with-revealed-text-input",
44
44
  "label": {
45
45
  "text": "Other"
46
46
  },
47
47
  "value": "other",
48
48
  "other": {
49
- "id": "other-textbox",
49
+ "id": "other-textbox-example-checkbox-with-revealed-text-input",
50
50
  "name": "other-answer",
51
51
  "label": {
52
52
  "text": "Enter dietary requirements"
@@ -18,28 +18,28 @@
18
18
  },
19
19
  "checkboxes": [
20
20
  {
21
- "id": "mobile-phone",
21
+ "id": "mobile-phone-example-checkbox-with-select-all-button",
22
22
  "label": {
23
23
  "text": "Mobile phone"
24
24
  },
25
25
  "value": "mobile-phone"
26
26
  },
27
27
  {
28
- "id": "tablet",
28
+ "id": "tablet-example-checkbox-with-select-all-button",
29
29
  "label": {
30
30
  "text": "Tablet"
31
31
  },
32
32
  "value": "tablet"
33
33
  },
34
34
  {
35
- "id": "laptop",
35
+ "id": "laptop-example-checkbox-with-select-all-button",
36
36
  "label": {
37
37
  "text": "Laptop"
38
38
  },
39
39
  "value": "laptop"
40
40
  },
41
41
  {
42
- "id": "desktop",
42
+ "id": "desktop-example-checkbox-with-select-all-button",
43
43
  "label": {
44
44
  "text": "Desktop computer"
45
45
  },
@@ -13,42 +13,42 @@
13
13
  "name": "dietary",
14
14
  "checkboxes": [
15
15
  {
16
- "id": "gluten-free",
16
+ "id": "gluten-free-example-checkbox-with-visible-text-input",
17
17
  "label": {
18
18
  "text": "Gluten free"
19
19
  },
20
20
  "value": "gluten-free"
21
21
  },
22
22
  {
23
- "id": "lactose-intolerant",
23
+ "id": "lactose-intolerant-example-checkbox-with-visible-text-input",
24
24
  "label": {
25
25
  "text": "Lactose intolerant"
26
26
  },
27
27
  "value": "lactose-intolerant"
28
28
  },
29
29
  {
30
- "id": "vegan",
30
+ "id": "vegan-example-checkbox-with-visible-text-input",
31
31
  "label": {
32
32
  "text": "Vegan"
33
33
  },
34
34
  "value": "vegan"
35
35
  },
36
36
  {
37
- "id": "vegetarian",
37
+ "id": "vegetarian-example-checkbox-with-visible-text-input",
38
38
  "label": {
39
39
  "text": "Vegetarian"
40
40
  },
41
41
  "value": "vegetarian"
42
42
  },
43
43
  {
44
- "id": "other-checkbox",
44
+ "id": "other-checkbox-with-visible-text-input",
45
45
  "label": {
46
46
  "text": "Other"
47
47
  },
48
48
  "value": "other",
49
49
  "other": {
50
50
  "open": true,
51
- "id": "other-textbox",
51
+ "id": "other-textbox-example-checkbox-with-visible-text-input",
52
52
  "name": "other-answer",
53
53
  "label": {
54
54
  "text": "Enter dietary requirements"
@@ -8,21 +8,21 @@
8
8
  "borderless": true,
9
9
  "checkboxes": [
10
10
  {
11
- "id": "booklet",
11
+ "id": "booklet-example-checkbox-without-border",
12
12
  "label": {
13
13
  "text": "Booklet"
14
14
  },
15
15
  "value": "booklet"
16
16
  },
17
17
  {
18
- "id": "logo",
18
+ "id": "logo-example-checkbox-without-border",
19
19
  "label": {
20
20
  "text": "Logo"
21
21
  },
22
22
  "value": "logo"
23
23
  },
24
24
  {
25
- "id": "poster",
25
+ "id": "poster-example-checkbox-without-border",
26
26
  "label": {
27
27
  "text": "Poster"
28
28
  },
@@ -13,28 +13,28 @@
13
13
  "name": "devices",
14
14
  "checkboxes": [
15
15
  {
16
- "id": "mobile-phone",
16
+ "id": "mobile-phone-example",
17
17
  "label": {
18
18
  "text": "Mobile phone"
19
19
  },
20
20
  "value": "mobile-phone"
21
21
  },
22
22
  {
23
- "id": "tablet",
23
+ "id": "tablet-example",
24
24
  "label": {
25
25
  "text": "Tablet"
26
26
  },
27
27
  "value": "tablet"
28
28
  },
29
29
  {
30
- "id": "laptop",
30
+ "id": "laptop-example",
31
31
  "label": {
32
32
  "text": "Laptop"
33
33
  },
34
34
  "value": "laptop"
35
35
  },
36
36
  {
37
- "id": "desktop",
37
+ "id": "desktop-example",
38
38
  "label": {
39
39
  "text": "Desktop computer"
40
40
  },
@@ -2,7 +2,7 @@
2
2
  {% from "components/date-input/_macro.njk" import onsDateInput %}
3
3
  {{
4
4
  onsDateInput({
5
- "id": "period-from-date",
5
+ "id": "period-from-date-input-error-example",
6
6
  "legendOrLabel": "Period from:",
7
7
  "description": "For example, 31 3 2019",
8
8
  "day": {
@@ -31,7 +31,7 @@
31
31
 
32
32
  {{
33
33
  onsDateInput({
34
- "id": "period-to-date",
34
+ "id": "period-to-date-input-error-example",
35
35
  "legendOrLabel": "Period to:",
36
36
  "description": "For example, 31 3 2020",
37
37
  "day": {
@@ -2,7 +2,7 @@
2
2
 
3
3
  {{
4
4
  onsDateInput({
5
- "id": "date",
5
+ "id": "date-input-example",
6
6
  "legendOrLabel": "Date of birth",
7
7
  "description": "For example, 31 3 1980",
8
8
  "day": {
@@ -3,7 +3,7 @@
3
3
 
4
4
  {%
5
5
  call onsDetails({
6
- "id": "details",
6
+ "id": "details-example-with-warning",
7
7
  "title": "Need to answer separately from your household?"
8
8
  })
9
9
  %}
@@ -2,7 +2,7 @@
2
2
 
3
3
  {{
4
4
  onsDetails({
5
- "id": "details",
5
+ "id": "details-example",
6
6
  "title": "What is a photovoltaic system?",
7
7
  "content": "<p>A typical photovoltaic system employs solar panels, each comprising a number of solar cells, which generate electrical power. PV installations may be ground-mounted, rooftop mounted or wall mounted. The mount may be fixed, or use a solar tracker to follow the sun across the sky.</p>"
8
8
  })
@@ -3,27 +3,27 @@
3
3
 
4
4
  {{
5
5
  onsDuration({
6
- "id": "address-duration",
6
+ "id": "address-duration-error-example",
7
7
  "legendOrLabel": 'How long have you lived at this address?',
8
8
  "legendClasses": 'ons-u-vh',
9
9
  "field1": {
10
- "id": "address-duration-years",
10
+ "id": "address-duration-years-error-example",
11
11
  "name": "address-duration-years",
12
12
  "suffix": {
13
13
  "text": "Years",
14
- "id": "address-duration-years-suffix"
14
+ "id": "address-duration-years-suffix-error-example"
15
15
  }
16
16
  },
17
17
  "field2": {
18
- "id": "address-duration-months",
18
+ "id": "address-duration-months-error-example",
19
19
  "name": "address-duration-months",
20
20
  "suffix": {
21
21
  "text": "Months",
22
- "id": "address-duration-months-suffix"
22
+ "id": "address-duration-months-suffix-error-example"
23
23
  }
24
24
  },
25
25
  "error": {
26
- "id": "address-duration-error",
26
+ "id": "address-duration-error-example",
27
27
  "text": "Enter how long you have lived at this address"
28
28
  }
29
29
  })
@@ -7,25 +7,25 @@
7
7
  "legendIsQuestionTitle": true
8
8
  }) %}
9
9
  {{ onsDuration({
10
- "id": "address-duration",
10
+ "id": "address-duration-example",
11
11
  "dontWrap": true,
12
12
  "field1": {
13
- "id": "address-duration-years",
13
+ "id": "address-duration-years-example",
14
14
  "name": "address-duration-years",
15
15
  "suffix": {
16
16
  "text": "Years",
17
- "id": "address-duration-years-suffix"
17
+ "id": "address-duration-years-suffix-example"
18
18
  },
19
19
  "attributes": {
20
20
  "autocomplete": "off"
21
21
  }
22
22
  },
23
23
  "field2": {
24
- "id": "address-duration-months",
24
+ "id": "address-duration-months-example",
25
25
  "name": "address-duration-months",
26
26
  "suffix": {
27
27
  "text": "Months",
28
- "id": "address-duration-months-suffix"
28
+ "id": "address-duration-months-suffix-example"
29
29
  },
30
30
  "attributes": {
31
31
  "autocomplete": "off"
@@ -9,7 +9,7 @@
9
9
  "mastheadLogoUrl": '#0',
10
10
  "titleUrl": '#0',
11
11
  "serviceLinks": {
12
- "id": "service-links",
12
+ "id": "service-links-external",
13
13
  "ariaLabel": 'Services menu',
14
14
  "ariaListLabel": 'Menu',
15
15
  "toggleServicesButton": {
@@ -10,7 +10,7 @@
10
10
  "variants": 'internal',
11
11
  "titleUrl": '#0',
12
12
  "serviceLinks": {
13
- "id": "service-links",
13
+ "id": "service-links-internal",
14
14
  "ariaLabel": 'Services menu',
15
15
  "ariaListLabel": 'Menu',
16
16
  "toggleServicesButton": {
@@ -1,7 +1,7 @@
1
1
  {% from "components/input/_macro.njk" import onsInput %}
2
2
  {{
3
3
  onsInput({
4
- "id": "email",
4
+ "id": "email-example-input-email",
5
5
  "type": "email",
6
6
  "autocomplete": "email",
7
7
  "label": {
@@ -1,7 +1,7 @@
1
1
  {% from "components/input/_macro.njk" import onsInput %}
2
2
  {{
3
3
  onsInput({
4
- "id": "number",
4
+ "id": "number-example-input",
5
5
  "type": "number",
6
6
  "width": "2",
7
7
  "autocomplete": "off",
@@ -1,7 +1,7 @@
1
1
  {% from "components/input/_macro.njk" import onsInput %}
2
2
  {{
3
3
  onsInput({
4
- "id": "number",
4
+ "id": "number-example-input-numeric-values",
5
5
  "type": "number",
6
6
  "width": "2",
7
7
  "autocomplete": "off",
@@ -15,7 +15,7 @@
15
15
  }}
16
16
  {{
17
17
  onsInput({
18
- "id": "prefixed",
18
+ "id": "prefixed-example-input-numeric-values",
19
19
  "type": "number",
20
20
  "width": "6",
21
21
  "autocomplete": "off",
@@ -25,13 +25,13 @@
25
25
  "prefix": {
26
26
  "text": "£",
27
27
  "title": "British pounds (GBP)",
28
- "id": "annual-salary-gpb-prefix"
28
+ "id": "annual-salary-gpb-prefix-example-input-numeric-values"
29
29
  }
30
30
  })
31
31
  }}
32
32
  {{
33
33
  onsInput({
34
- "id": "suffixed-percent",
34
+ "id": "suffixed-percent-example-input-numeric-values",
35
35
  "type": "number",
36
36
  "width": "3",
37
37
  "autocomplete": "off",
@@ -41,13 +41,13 @@
41
41
  "suffix": {
42
42
  "title": "per cent",
43
43
  "text": "%",
44
- "id": "internet-access-per-cent-suffix"
44
+ "id": "internet-access-per-cent-suffix-example-input-numeric-values"
45
45
  }
46
46
  })
47
47
  }}
48
48
  {{
49
49
  onsInput({
50
- "id": "suffixed-centimetres",
50
+ "id": "suffixed-centimetres-example-input-numeric-values",
51
51
  "type": "number",
52
52
  "width": "4",
53
53
  "autocomplete": "off",
@@ -58,7 +58,7 @@
58
58
  "suffix": {
59
59
  "title": "centimetres",
60
60
  "text": "cm",
61
- "id": "length-cm-suffix"
61
+ "id": "length-cm-suffix-example-input-numeric-values"
62
62
  }
63
63
  })
64
64
  }}
@@ -1,7 +1,7 @@
1
1
  {% from "components/input/_macro.njk" import onsInput %}
2
2
  {{
3
3
  onsInput({
4
- "id": "text",
4
+ "id": "text-example-input-with-char-limit-checker",
5
5
  "label": {
6
6
  "text": "Enter some text"
7
7
  },
@@ -1,7 +1,7 @@
1
1
  {% from "components/input/_macro.njk" import onsInput %}
2
2
  {{
3
3
  onsInput({
4
- "id": "text",
4
+ "id": "text-example-input-with-description",
5
5
  "label": {
6
6
  "text": "Enter some text",
7
7
  "description": "Example description hint text"
@@ -1,7 +1,7 @@
1
1
  {% from "components/input/_macro.njk" import onsInput %}
2
2
  {{
3
3
  onsInput({
4
- "id": "text",
4
+ "id": "text-example-input",
5
5
  "label": {
6
6
  "text": "Enter some text"
7
7
  }