@ons/design-system 65.1.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 (97) hide show
  1. package/README.md +1 -0
  2. package/components/access-code/access-code.scss +3 -3
  3. package/components/access-code/example-access-code-error.njk +1 -1
  4. package/components/access-code/example-access-code.njk +1 -1
  5. package/components/accordion/example-accordion-open.njk +10 -10
  6. package/components/accordion/example-accordion.njk +1 -1
  7. package/components/address-input/example-address-input-editable.njk +2 -2
  8. package/components/address-input/example-address-input-manual.njk +3 -3
  9. package/components/address-input/example-address-input.njk +2 -2
  10. package/components/autosuggest/_autosuggest.scss +3 -8
  11. package/components/autosuggest/_macro.njk +2 -3
  12. package/components/autosuggest/autosuggest.js +2 -1
  13. package/components/autosuggest/autosuggest.spec.js +89 -55
  14. package/components/autosuggest/autosuggest.ui.js +8 -12
  15. package/components/autosuggest/example-autosuggest-country-multiple.njk +4 -3
  16. package/components/autosuggest/example-autosuggest-country.njk +1 -1
  17. package/components/back-link/example-back-link.njk +1 -1
  18. package/components/button/_button.scss +11 -14
  19. package/components/card/example-card-set-with-images.njk +3 -3
  20. package/components/card/example-card-set-with-lists.njk +3 -3
  21. package/components/card/example-card-set.njk +3 -3
  22. package/components/card/example-card.njk +1 -1
  23. package/components/checkboxes/_checkbox.scss +1 -4
  24. package/components/checkboxes/example-checkboxes-disabled.njk +3 -3
  25. package/components/checkboxes/example-checkboxes-error.njk +7 -7
  26. package/components/checkboxes/example-checkboxes-with-descriptions.njk +7 -7
  27. package/components/checkboxes/example-checkboxes-with-hidden-label.njk +9 -9
  28. package/components/checkboxes/example-checkboxes-with-revealed-checkboxes-expanded.njk +8 -8
  29. package/components/checkboxes/example-checkboxes-with-revealed-checkboxes.njk +8 -8
  30. package/components/checkboxes/example-checkboxes-with-revealed-radios-expanded.njk +8 -8
  31. package/components/checkboxes/example-checkboxes-with-revealed-radios.njk +8 -8
  32. package/components/checkboxes/example-checkboxes-with-revealed-select-expanded.njk +4 -4
  33. package/components/checkboxes/example-checkboxes-with-revealed-select.njk +4 -4
  34. package/components/checkboxes/example-checkboxes-with-revealed-text-input-expanded.njk +6 -6
  35. package/components/checkboxes/example-checkboxes-with-revealed-text-input.njk +6 -6
  36. package/components/checkboxes/example-checkboxes-with-select-all-button.njk +4 -4
  37. package/components/checkboxes/example-checkboxes-with-visible-text-input.njk +6 -6
  38. package/components/checkboxes/example-checkboxes-without-border.njk +3 -3
  39. package/components/checkboxes/example-checkboxes.njk +4 -4
  40. package/components/date-input/example-date-input-error.njk +2 -2
  41. package/components/date-input/example-date-input.njk +1 -1
  42. package/components/details/example-details-with-warning.njk +1 -1
  43. package/components/details/example-details.njk +1 -1
  44. package/components/download-resources/_download-resources.scss +3 -5
  45. package/components/duration/example-duration-error.njk +6 -6
  46. package/components/duration/example-duration.njk +5 -5
  47. package/components/external-link/example-external-link.njk +1 -1
  48. package/components/header/example-header-external-with-service-links.njk +1 -1
  49. package/components/header/example-header-internal.njk +1 -1
  50. package/components/helpers/_grid.scss +6 -0
  51. package/components/helpers/grid.njk +19 -0
  52. package/components/input/_input-type.scss +2 -8
  53. package/components/input/_input.scss +4 -3
  54. package/components/input/example-input-email.njk +1 -1
  55. package/components/input/example-input-number.njk +1 -1
  56. package/components/input/example-input-numeric-values.njk +7 -7
  57. package/components/input/example-input-text-with-character-limit-checker.njk +1 -1
  58. package/components/input/example-input-text-with-description.njk +1 -1
  59. package/components/input/example-input-text.njk +1 -1
  60. package/components/modal/_modal.scss +3 -6
  61. package/components/mutually-exclusive/example-mutually-exclusive-checkboxes.njk +6 -6
  62. package/components/mutually-exclusive/example-mutually-exclusive-date-with-error.njk +2 -2
  63. package/components/mutually-exclusive/example-mutually-exclusive-email.njk +2 -2
  64. package/components/mutually-exclusive/example-mutually-exclusive-multiple-options.njk +5 -5
  65. package/components/navigation/navigation.js +6 -2
  66. package/components/phase-banner/example-phase-banner-alpha.njk +13 -2
  67. package/components/phase-banner/example-phase-banner-beta.njk +13 -2
  68. package/components/radios/example-radios-with-clear-button-expanded.njk +9 -9
  69. package/components/radios/example-radios-with-clear-button.njk +9 -9
  70. package/components/radios/example-radios-with-descriptions.njk +5 -5
  71. package/components/radios/example-radios-with-error.njk +4 -4
  72. package/components/radios/example-radios-with-revealed-checkboxes-expanded.njk +8 -8
  73. package/components/radios/example-radios-with-revealed-checkboxes.njk +8 -8
  74. package/components/radios/example-radios-with-revealed-radios-expanded.njk +9 -9
  75. package/components/radios/example-radios-with-revealed-radios.njk +8 -8
  76. package/components/radios/example-radios-with-revealed-select-expanded.njk +5 -5
  77. package/components/radios/example-radios-with-revealed-select.njk +4 -4
  78. package/components/radios/example-radios-with-revealed-text-input-expanded.njk +9 -9
  79. package/components/radios/example-radios-with-revealed-text-input.njk +9 -9
  80. package/components/radios/example-radios-with-visible-text-input.njk +3 -3
  81. package/components/relationships/example-relationships-error.njk +13 -13
  82. package/components/relationships/example-relationships-you.njk +13 -13
  83. package/components/relationships/example-relationships.njk +13 -13
  84. package/components/select/example-select-with-error.njk +1 -1
  85. package/components/select/example-select-with-inline-label.njk +1 -1
  86. package/components/select/example-select.njk +1 -1
  87. package/components/table/_table.scss +7 -3
  88. package/components/textarea/example-textarea-error.njk +1 -1
  89. package/components/upload/example-upload-error.njk +1 -1
  90. package/components/upload/example-upload.njk +1 -1
  91. package/css/main.css +3 -3
  92. package/package.json +8 -10
  93. package/scripts/main.es5.js +1 -1
  94. package/scripts/main.js +1 -1
  95. package/scss/base/_global.scss +3 -2
  96. package/scss/main.scss +1 -0
  97. package/scss/overrides/hcm.scss +10 -10
@@ -1,4 +1,4 @@
1
- $backdrop-colour: rgba(0, 0, 0, 0.8);
1
+ $backdrop-colour: rgb(0 0 0 / 80%);
2
2
 
3
3
  .ons-modal {
4
4
  border: none;
@@ -13,7 +13,7 @@ $backdrop-colour: rgba(0, 0, 0, 0.8);
13
13
  position: fixed;
14
14
  top: 0;
15
15
 
16
- @media screen and (min-width: 600px) {
16
+ @media screen and (width >= 600px) {
17
17
  margin-left: auto;
18
18
  margin-right: auto;
19
19
  max-width: 500px;
@@ -21,12 +21,9 @@ $backdrop-colour: rgba(0, 0, 0, 0.8);
21
21
 
22
22
  &-ie11 & {
23
23
  background: var(--ons-color-white);
24
- bottom: 0;
24
+ inset: 50% 0 0;
25
25
  height: 350px;
26
- left: 0;
27
26
  position: fixed;
28
- right: 0;
29
- top: 50%;
30
27
  transform: translate(0, -50%);
31
28
  }
32
29
 
@@ -13,34 +13,34 @@
13
13
  "name": "mutually-exclusive",
14
14
  "checkboxes": [
15
15
  {
16
- "id": "gas",
16
+ "id": "gas-example-mutually-exclusive-checkbox",
17
17
  "label": {
18
18
  "text": "Gas"
19
19
  },
20
20
  "value": "gas"
21
21
  },
22
22
  {
23
- "id": "electric",
23
+ "id": "electric-example-mutually-exclusive-checkbox",
24
24
  "label": {
25
25
  "text": "Electric"
26
26
  },
27
27
  "value": "electric"
28
28
  },
29
29
  {
30
- "id": "solid-fuel",
30
+ "id": "solid-fuel-example-mutually-exclusive-checkbox",
31
31
  "label": {
32
32
  "text": "Solid fuel"
33
33
  },
34
34
  "value": "solid-fuel"
35
35
  },
36
36
  {
37
- "id": "other-fuel",
37
+ "id": "other-fuel-example-mutually-exclusive-checkbox",
38
38
  "label": {
39
39
  "text": "Other"
40
40
  },
41
41
  "value": "other",
42
42
  "other": {
43
- "id": "other-fuel-textbox",
43
+ "id": "other-fuel-textbox-example-mutually-exclusive-checkbox",
44
44
  "name": "other-fuel-answer",
45
45
  "label": {
46
46
  "text": "Please specify"
@@ -55,7 +55,7 @@
55
55
  "deselectExclusiveOptionAdjective": "deselected",
56
56
  "exclusiveOptions": [
57
57
  {
58
- "id": "no-central-heating",
58
+ "id": "no-central-heating-example-mutually-exclusive-checkbox",
59
59
  "label": {
60
60
  "text": "No central heating"
61
61
  },
@@ -2,7 +2,7 @@
2
2
 
3
3
  {{
4
4
  onsDateInput({
5
- "id": "date-mutually-exclusive",
5
+ "id": "date-mutually-exclusive-with-error",
6
6
  "legendOrLabel": "When did you leave your last paid job?",
7
7
  "legendClasses": "ons-u-vh",
8
8
  "day": {
@@ -30,7 +30,7 @@
30
30
  "deselectExclusiveOptionAdjective": "deselected",
31
31
  "exclusiveOptions": [
32
32
  {
33
- "id": "date-exclusive-checkbox",
33
+ "id": "date-exclusive-checkbox-with-error",
34
34
  "name": "no-paid-job",
35
35
  "value": "no-paid-job",
36
36
  "label": {
@@ -8,7 +8,7 @@
8
8
  }) %}
9
9
  {{
10
10
  onsInput({
11
- "id": "email",
11
+ "id": "email-example-mutually-exclusive",
12
12
  "type": "email",
13
13
  "label": {
14
14
  "text": "Email address",
@@ -22,7 +22,7 @@
22
22
  "deselectExclusiveOptionAdjective": "deselected",
23
23
  "exclusiveOptions": [
24
24
  {
25
- "id": "email-checkbox",
25
+ "id": "email-checkbox-example-mutually-exclusive",
26
26
  "name": "no-email",
27
27
  "value": "no-email",
28
28
  "label": {
@@ -13,21 +13,21 @@
13
13
  "name": "mutually-exclusive",
14
14
  "checkboxes": [
15
15
  {
16
- "id": "gas",
16
+ "id": "gas-example-mutually-exclusive-multiple-options",
17
17
  "label": {
18
18
  "text": "Gas"
19
19
  },
20
20
  "value": "gas"
21
21
  },
22
22
  {
23
- "id": "electric",
23
+ "id": "electric-example-mutually-exclusive-multiple-options",
24
24
  "label": {
25
25
  "text": "Electric"
26
26
  },
27
27
  "value": "electric"
28
28
  },
29
29
  {
30
- "id": "solid-fuel",
30
+ "id": "solid-fuel-example-mutually-exclusive-multiple-options",
31
31
  "label": {
32
32
  "text": "Solid fuel"
33
33
  },
@@ -41,7 +41,7 @@
41
41
  "deselectExclusiveOptionAdjective": "deselected",
42
42
  "exclusiveOptions": [
43
43
  {
44
- "id": "no-central-heating",
44
+ "id": "no-central-heating-example-mutually-exclusive-multiple-options",
45
45
  "name": "no central heating",
46
46
  "label": {
47
47
  "text": "No central heating"
@@ -49,7 +49,7 @@
49
49
  "value": "no-central-heating"
50
50
  },
51
51
  {
52
- "id": "other",
52
+ "id": "other-example-mutually-exclusive-multiple-options",
53
53
  "name": "other",
54
54
  "label": {
55
55
  "text": "Other"
@@ -44,11 +44,15 @@ export default class NavigationToggle {
44
44
  this.navigation.classList.add(this.hideClass);
45
45
  }
46
46
 
47
+ isHidden(el) {
48
+ return el.offsetParent === null;
49
+ }
50
+
47
51
  setAria() {
48
- const viewportDetails = GetViewportDetails();
52
+ const isToggleHidden = this.isHidden(this.toggle);
49
53
  const hasAria = this.navigation.hasAttribute(attrHidden);
50
54
 
51
- if (viewportDetails.width < 980) {
55
+ if (!isToggleHidden) {
52
56
  if (!hasAria) {
53
57
  this.closeNav();
54
58
  }
@@ -2,9 +2,20 @@
2
2
  "fullWidth": true
3
3
  ---
4
4
  {% from "components/phase-banner/_macro.njk" import onsPhaseBanner %}
5
+ {% from "components/external-link/_macro.njk" import onsExternalLink %}
6
+
7
+ {% set feedbackLink %}
8
+ {{
9
+ onsExternalLink({
10
+ "url": "#0",
11
+ "linkText": "give feedback"
12
+ })
13
+ }}
14
+ {% endset %}
15
+
5
16
  {{
6
17
  onsPhaseBanner({
7
- "badge": 'Alpha',
8
- "html": 'This is a new service. To help us improve it, <a href="#0">give feedback</a>'
18
+ "badge": "Alpha",
19
+ "html": "This is a new service. To help us improve it, " + feedbackLink
9
20
  })
10
21
  }}
@@ -2,8 +2,19 @@
2
2
  "fullWidth": true
3
3
  ---
4
4
  {% from "components/phase-banner/_macro.njk" import onsPhaseBanner %}
5
+ {% from "components/external-link/_macro.njk" import onsExternalLink %}
6
+
7
+ {% set feedbackLink %}
8
+ {{
9
+ onsExternalLink({
10
+ "url": "#0",
11
+ "linkText": "give feedback"
12
+ })
13
+ }}
14
+ {% endset %}
15
+
5
16
  {{
6
17
  onsPhaseBanner({
7
- "html": 'This is a new service. To help us improve it, <a href="#0">give feedback</a>'
8
- })
18
+ "html": "This is a new service. To help us improve it, " + feedbackLink
19
+ })
9
20
  }}
@@ -26,14 +26,14 @@
26
26
  },
27
27
  "radios": [
28
28
  {
29
- "id": "none",
29
+ "id": "none-radio-with-clear-button-expanded",
30
30
  "label": {
31
31
  "text": "No religion"
32
32
  },
33
33
  "value": "none"
34
34
  },
35
35
  {
36
- "id": "christian",
36
+ "id": "christian-radio-with-clear-button-expanded",
37
37
  "label": {
38
38
  "text": "Christian",
39
39
  "description": "Including Church of England, Catholic, Protestant and all other Christian denominations"
@@ -41,14 +41,14 @@
41
41
  "value": "christian"
42
42
  },
43
43
  {
44
- "id": "buddhist",
44
+ "id": "buddhist-radio-with-clear-button-expanded",
45
45
  "label": {
46
46
  "text": "Buddhist"
47
47
  },
48
48
  "value": "buddhist"
49
49
  },
50
50
  {
51
- "id": "hindu",
51
+ "id": "hindu-radio-with-clear-button-expanded",
52
52
  "label": {
53
53
  "text": "Hindu"
54
54
  },
@@ -62,21 +62,21 @@
62
62
  "value": "jewish"
63
63
  },
64
64
  {
65
- "id": "muslim",
65
+ "id": "muslim-radio-with-clear-button-expanded",
66
66
  "label": {
67
67
  "text": "Muslim"
68
68
  },
69
69
  "value": "muslim"
70
70
  },
71
71
  {
72
- "id": "sikh",
72
+ "id": "sikh-radio-with-clear-button-expanded",
73
73
  "label": {
74
74
  "text": "Sikh"
75
75
  },
76
76
  "value": "sikh"
77
77
  },
78
78
  {
79
- "id": "other-radio",
79
+ "id": "other-radio-with-clear-button-expanded",
80
80
  "label": {
81
81
  "text": "Any other religion"
82
82
  },
@@ -84,7 +84,7 @@
84
84
  "checked": true,
85
85
  "other": {
86
86
  "otherType": "input",
87
- "id": "other-textbox",
87
+ "id": "other-textbox-radio-with-clear-button-expanded",
88
88
  "name": "other-answer",
89
89
  "label": {
90
90
  "text": "Enter your religion"
@@ -95,4 +95,4 @@
95
95
  })
96
96
  }}
97
97
  </form>
98
- {% endcall %}
98
+ {% endcall %}
@@ -26,14 +26,14 @@
26
26
  },
27
27
  "radios": [
28
28
  {
29
- "id": "none",
29
+ "id": "none-radio-with-clear-button",
30
30
  "label": {
31
31
  "text": "No religion"
32
32
  },
33
33
  "value": "none"
34
34
  },
35
35
  {
36
- "id": "christian",
36
+ "id": "christian-radio-with-clear-button",
37
37
  "label": {
38
38
  "text": "Christian",
39
39
  "description": "Including Church of England, Catholic, Protestant and all other Christian denominations"
@@ -41,49 +41,49 @@
41
41
  "value": "christian"
42
42
  },
43
43
  {
44
- "id": "buddhist",
44
+ "id": "buddhist-radio-with-clear-button",
45
45
  "label": {
46
46
  "text": "Buddhist"
47
47
  },
48
48
  "value": "buddhist"
49
49
  },
50
50
  {
51
- "id": "hindu",
51
+ "id": "hindu-radio-with-clear-button",
52
52
  "label": {
53
53
  "text": "Hindu"
54
54
  },
55
55
  "value": "hindu"
56
56
  },
57
57
  {
58
- "id": "jewish",
58
+ "id": "jewish-radio-with-clear-button",
59
59
  "label": {
60
60
  "text": "Jewish"
61
61
  },
62
62
  "value": "jewish"
63
63
  },
64
64
  {
65
- "id": "muslim",
65
+ "id": "muslim-radio-with-clear-button",
66
66
  "label": {
67
67
  "text": "Muslim"
68
68
  },
69
69
  "value": "muslim"
70
70
  },
71
71
  {
72
- "id": "sikh",
72
+ "id": "sikh-radio-with-clear-button",
73
73
  "label": {
74
74
  "text": "Sikh"
75
75
  },
76
76
  "value": "sikh"
77
77
  },
78
78
  {
79
- "id": "other-radio",
79
+ "id": "other-radio-radio-with-clear-button",
80
80
  "label": {
81
81
  "text": "Any other religion"
82
82
  },
83
83
  "value": "other",
84
84
  "other": {
85
85
  "otherType": "input",
86
- "id": "other-textbox",
86
+ "id": "other-textbox-radio-with-clear-button",
87
87
  "name": "other-answer",
88
88
  "label": {
89
89
  "text": "Enter your religion"
@@ -12,7 +12,7 @@
12
12
  "name": "ethnicity",
13
13
  "radios": [
14
14
  {
15
- "id": "white",
15
+ "id": "white-example-radio-with-description",
16
16
  "label": {
17
17
  "text": "White",
18
18
  "description": "Includes British, Northern Irish, Irish, Gypsy, Irish Traveller, Roma or any other White background"
@@ -20,7 +20,7 @@
20
20
  "name": "white"
21
21
  },
22
22
  {
23
- "id": "mixed",
23
+ "id": "mixed-example-radio-with-description",
24
24
  "label": {
25
25
  "text": "Mixed or Multiple ethnic groups",
26
26
  "description": "Includes White and Black Caribbean, White and Black African, White and Asian or any other Mixed or Multiple background"
@@ -28,7 +28,7 @@
28
28
  "name": "mixed"
29
29
  },
30
30
  {
31
- "id": "asian",
31
+ "id": "asian-example-radio-with-description",
32
32
  "label": {
33
33
  "text": "Asian or Asian British",
34
34
  "description": "Includes Indian, Pakistani, Bangladeshi, Chinese or any other Asian background"
@@ -36,7 +36,7 @@
36
36
  "name": "asian"
37
37
  },
38
38
  {
39
- "id": "black",
39
+ "id": "black-example-radio-with-description",
40
40
  "label": {
41
41
  "text": "Black, Black British, Caribbean or African",
42
42
  "description": "Includes Black British, Caribbean, African or any other Black background"
@@ -44,7 +44,7 @@
44
44
  "name": "black"
45
45
  },
46
46
  {
47
- "id": "other",
47
+ "id": "other-example-radio-with-description",
48
48
  "label": {
49
49
  "text": "Other ethnic group",
50
50
  "description": "Includes Arab or any other ethnic group"
@@ -6,14 +6,14 @@
6
6
  "dontWrap": true,
7
7
  "radios": [
8
8
  {
9
- "id": "yes",
9
+ "id": "yes-example-radio-with-error",
10
10
  "label": {
11
11
  "text": "Yes"
12
12
  },
13
13
  "value": "yes"
14
14
  },
15
15
  {
16
- "id": "no",
16
+ "id": "no-example-radio-with-error",
17
17
  "label": {
18
18
  "text": "No"
19
19
  },
@@ -22,7 +22,7 @@
22
22
  "other": {
23
23
  "open": true,
24
24
  "otherType": "input",
25
- "id": "no-textbox",
25
+ "id": "no-textbox-example-radio-with-error",
26
26
  "name": "no-answer",
27
27
  "label": {
28
28
  "text": "Enter your gender identity"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  ],
33
33
  "error": {
34
- "id": "dietary-error",
34
+ "id": "dietary-error-example-radio-with-error",
35
35
  "text": "Enter your gender identity"
36
36
  }
37
37
  })
@@ -7,21 +7,21 @@
7
7
  "borderless": true,
8
8
  "radios": [
9
9
  {
10
- "id": "post",
10
+ "id": "post-example-radio-with-revealed-checkbox-expanded",
11
11
  "label": {
12
12
  "text": "By post"
13
13
  },
14
14
  "value": "post"
15
15
  },
16
16
  {
17
- "id": "email",
17
+ "id": "email-example-radio-with-revealed-checkbox-expanded",
18
18
  "label": {
19
19
  "text": "By email"
20
20
  },
21
21
  "value": "email"
22
22
  },
23
23
  {
24
- "id": "phone",
24
+ "id": "phone-example-radio-with-revealed-checkbox-expanded",
25
25
  "label": {
26
26
  "text": "By phone"
27
27
  },
@@ -30,34 +30,34 @@
30
30
  "other": {
31
31
  "otherType": "checkboxes",
32
32
  "selectAllChildren": true,
33
- "id": "phone-time",
33
+ "id": "phone-time-example-radio-with-revealed-checkbox-expanded",
34
34
  "name": "phone-time",
35
35
  "legend": "Select preferred times of day",
36
36
  "checkboxes": [
37
37
  {
38
38
  "value": "anytime",
39
- "id": "anytime",
39
+ "id": "anytime-example-radio-with-revealed-checkbox-expanded",
40
40
  "label": {
41
41
  "text": "Anytime of day"
42
42
  }
43
43
  },
44
44
  {
45
45
  "value": "morning",
46
- "id": "morning",
46
+ "id": "morning-example-radio-with-revealed-checkbox-expanded",
47
47
  "label": {
48
48
  "text": "Morning"
49
49
  }
50
50
  },
51
51
  {
52
52
  "value": "afternoon",
53
- "id": "afternoon",
53
+ "id": "afternoon-example-radio-with-revealed-checkbox-expanded",
54
54
  "label": {
55
55
  "text": "Afternoon"
56
56
  }
57
57
  },
58
58
  {
59
59
  "value": "evening",
60
- "id": "evening",
60
+ "id": "evening-example-radio-with-revealed-checkbox-expanded",
61
61
  "label": {
62
62
  "text": "Evening"
63
63
  }
@@ -7,21 +7,21 @@
7
7
  "borderless": true,
8
8
  "radios": [
9
9
  {
10
- "id": "post",
10
+ "id": "post-example-radio-with-revealed-checkbox",
11
11
  "label": {
12
12
  "text": "By post"
13
13
  },
14
14
  "value": "post"
15
15
  },
16
16
  {
17
- "id": "email",
17
+ "id": "email-example-radio-with-revealed-checkbox",
18
18
  "label": {
19
19
  "text": "By email"
20
20
  },
21
21
  "value": "email"
22
22
  },
23
23
  {
24
- "id": "phone",
24
+ "id": "phone-example-radio-with-revealed-checkbox",
25
25
  "label": {
26
26
  "text": "By phone"
27
27
  },
@@ -29,34 +29,34 @@
29
29
  "other": {
30
30
  "otherType": "checkboxes",
31
31
  "selectAllChildren": true,
32
- "id": "phone-time",
32
+ "id": "phone-time-example-radio-with-revealed-checkbox",
33
33
  "name": "phone-time",
34
34
  "legend": "Select preferred times of day",
35
35
  "checkboxes": [
36
36
  {
37
37
  "value": "anytime",
38
- "id": "anytime",
38
+ "id": "anytime-example-radio-with-revealed-checkbox",
39
39
  "label": {
40
40
  "text": "Anytime of day"
41
41
  }
42
42
  },
43
43
  {
44
44
  "value": "morning",
45
- "id": "morning",
45
+ "id": "morning-example-radio-with-revealed-checkbox",
46
46
  "label": {
47
47
  "text": "Morning"
48
48
  }
49
49
  },
50
50
  {
51
51
  "value": "afternoon",
52
- "id": "afternoon",
52
+ "id": "afternoon-example-radio-with-revealed-checkbox",
53
53
  "label": {
54
54
  "text": "Afternoon"
55
55
  }
56
56
  },
57
57
  {
58
58
  "value": "evening",
59
- "id": "evening",
59
+ "id": "evening-example-radio-with-revealed-checkbox",
60
60
  "label": {
61
61
  "text": "Evening"
62
62
  }
@@ -7,21 +7,21 @@
7
7
  "borderless": true,
8
8
  "radios": [
9
9
  {
10
- "id": "post",
10
+ "id": "post-example-with-revealed-radio-expanded",
11
11
  "label": {
12
12
  "text": "By post"
13
13
  },
14
14
  "value": "post"
15
15
  },
16
16
  {
17
- "id": "email",
17
+ "id": "email-example-with-revealed-radio-expanded",
18
18
  "label": {
19
19
  "text": "By email"
20
20
  },
21
21
  "value": "email"
22
22
  },
23
23
  {
24
- "id": "phone",
24
+ "id": "phone-example-with-revealed-radio-expanded",
25
25
  "label": {
26
26
  "text": "By phone"
27
27
  },
@@ -29,34 +29,34 @@
29
29
  "checked": true,
30
30
  "other": {
31
31
  "otherType": "radios",
32
- "id": "phone-time",
32
+ "id": "phone-time-example-with-revealed-radio-expanded",
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-radio-expanded",
39
39
  "label": {
40
40
  "text": "Anytime of day"
41
41
  }
42
42
  },
43
43
  {
44
44
  "value": "morning",
45
- "id": "morning",
45
+ "id": "morning-example-with-revealed-radio-expanded",
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-radio-expanded",
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-radio-expanded",
60
60
  "label": {
61
61
  "text": "Evening"
62
62
  }
@@ -66,4 +66,4 @@
66
66
  }
67
67
  ]
68
68
  })
69
- }}
69
+ }}