govuk_publishing_components 60.0.1 → 60.1.0

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 (236) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-form-tracker.js +3 -1
  3. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +0 -2
  4. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +5 -0
  5. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +9 -3
  6. data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +1 -2
  7. data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +0 -1
  8. data/config/locales/ku.yml +230 -0
  9. data/config/locales/ky.yml +13 -26
  10. data/config/locales/ti.yml +231 -0
  11. data/lib/govuk_publishing_components/version.rb +1 -1
  12. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +3 -2
  13. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
  14. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +3 -2
  15. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -1
  16. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
  17. data/node_modules/govuk-frontend/dist/govuk/common/index.mjs +1 -1
  18. data/node_modules/govuk-frontend/dist/govuk/common/index.mjs.map +1 -1
  19. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js.map +1 -1
  20. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -1
  21. data/node_modules/govuk-frontend/dist/govuk/components/accordion/fixtures.json +102 -97
  22. data/node_modules/govuk-frontend/dist/govuk/components/back-link/fixtures.json +21 -32
  23. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/fixtures.json +25 -45
  24. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-default.html +6 -0
  25. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js.map +1 -1
  26. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs.map +1 -1
  27. data/node_modules/govuk-frontend/dist/govuk/components/button/fixtures.json +66 -210
  28. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js.map +1 -1
  29. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs.map +1 -1
  30. data/node_modules/govuk-frontend/dist/govuk/components/character-count/fixtures.json +72 -86
  31. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js.map +1 -1
  32. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs.map +1 -1
  33. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/fixtures.json +305 -464
  34. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-default.html +24 -19
  35. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-divider-and-none.html +2 -4
  36. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-divider-none-and-conditional-items.html +2 -4
  37. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-error-message.html +12 -3
  38. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/{template-with-fieldset-and-error-message.html → template-with-hint.html} +5 -5
  39. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-hints-on-items.html +2 -4
  40. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-pre-checked-values.html +36 -27
  41. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-very-long-option-text.html +2 -5
  42. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/fixtures.json +79 -79
  43. data/node_modules/govuk-frontend/dist/govuk/components/date-input/fixtures.json +147 -159
  44. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-default.html +30 -22
  45. data/node_modules/govuk-frontend/dist/govuk/components/details/fixtures.json +22 -22
  46. data/node_modules/govuk-frontend/dist/govuk/components/error-message/fixtures.json +10 -10
  47. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js.map +1 -1
  48. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs.map +1 -1
  49. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/fixtures.json +21 -21
  50. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js.map +1 -1
  51. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs.map +1 -1
  52. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/fixtures.json +19 -19
  53. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/fixtures.json +19 -19
  54. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js.map +1 -1
  55. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs.map +1 -1
  56. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/fixtures.json +99 -150
  57. data/node_modules/govuk-frontend/dist/govuk/components/footer/fixtures.json +50 -63
  58. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +10 -4
  59. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss.map +1 -1
  60. data/node_modules/govuk-frontend/dist/govuk/components/header/fixtures.json +155 -103
  61. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +2 -1
  62. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js.map +1 -1
  63. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +2 -1
  64. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs.map +1 -1
  65. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs +1 -0
  66. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs.map +1 -1
  67. data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width-with-navigation.html +0 -1
  68. data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width.html +0 -1
  69. data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-html.html +0 -3
  70. data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-text-without-link.html +0 -3
  71. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-full-width-border.html +0 -1
  72. data/node_modules/govuk-frontend/dist/govuk/components/hint/fixtures.json +7 -7
  73. data/node_modules/govuk-frontend/dist/govuk/components/input/fixtures.json +158 -179
  74. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/fixtures.json +7 -7
  75. data/node_modules/govuk-frontend/dist/govuk/components/label/fixtures.json +18 -18
  76. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/fixtures.json +74 -108
  77. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js.map +1 -1
  78. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs.map +1 -1
  79. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-text-as-html.html +7 -1
  80. data/node_modules/govuk-frontend/dist/govuk/components/pagination/fixtures.json +80 -98
  81. data/node_modules/govuk-frontend/dist/govuk/components/pagination/macro-options.json +4 -4
  82. data/node_modules/govuk-frontend/dist/govuk/components/panel/fixtures.json +22 -22
  83. data/node_modules/govuk-frontend/dist/govuk/components/password-input/fixtures.json +53 -48
  84. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js.map +1 -1
  85. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs.map +1 -1
  86. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/fixtures.json +8 -8
  87. data/node_modules/govuk-frontend/dist/govuk/components/radios/fixtures.json +213 -328
  88. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js.map +1 -1
  89. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs.map +1 -1
  90. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-default.html +18 -16
  91. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-hint.html +24 -0
  92. data/node_modules/govuk-frontend/dist/govuk/components/select/fixtures.json +99 -115
  93. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +72 -5
  94. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss.map +1 -1
  95. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json +198 -62
  96. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/macro-options.json +6 -0
  97. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js +1 -1
  98. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js.map +1 -1
  99. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs +1 -1
  100. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs.map +1 -1
  101. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/{template-with-navigation-with-an-active-item.html → template-inverse.html} +7 -2
  102. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-a-single-navigation-item-and-collapsenavigationonmobile-set-to-true.html +38 -0
  103. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-a-single-navigation-item.html +35 -0
  104. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-collapsenavigationonmobile-set-to-false.html +60 -0
  105. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template.njk +3 -0
  106. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/fixtures.json +10 -10
  107. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js.map +1 -1
  108. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs.map +1 -1
  109. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/fixtures.json +282 -518
  110. data/node_modules/govuk-frontend/dist/govuk/components/table/fixtures.json +75 -75
  111. data/node_modules/govuk-frontend/dist/govuk/components/tabs/fixtures.json +44 -39
  112. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js +1 -1
  113. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js.map +1 -1
  114. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs +1 -1
  115. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs.map +1 -1
  116. data/node_modules/govuk-frontend/dist/govuk/components/tag/fixtures.json +14 -26
  117. data/node_modules/govuk-frontend/dist/govuk/components/task-list/fixtures.json +14 -71
  118. data/node_modules/govuk-frontend/dist/govuk/components/textarea/fixtures.json +81 -81
  119. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/fixtures.json +9 -9
  120. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +5 -2
  121. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss.map +1 -1
  122. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
  123. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
  124. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
  125. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js.map +1 -1
  126. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +31 -2
  127. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss.map +1 -1
  128. data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss +4 -1
  129. data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss.map +1 -1
  130. data/node_modules/govuk-frontend/dist/govuk/macros/logo.njk +2 -2
  131. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +2 -2
  132. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss.map +1 -1
  133. data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss +13 -0
  134. data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss.map +1 -1
  135. data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +1 -1
  136. data/node_modules/govuk-frontend/package.json +7 -7
  137. metadata +15 -102
  138. data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-with-focusable-elements-inside.html +0 -26
  139. data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-with-one-section-open.html +0 -30
  140. data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-with-translations.html +0 -30
  141. data/node_modules/govuk-frontend/dist/govuk/components/back-link/template-with-custom-link.html +0 -1
  142. data/node_modules/govuk-frontend/dist/govuk/components/back-link/template-with-custom-text.html +0 -1
  143. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-multiple-levels.html +0 -16
  144. data/node_modules/govuk-frontend/dist/govuk/components/button/template-input-disabled.html +0 -1
  145. data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-disabled.html +0 -3
  146. data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-link.html +0 -3
  147. data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-start.html +0 -6
  148. data/node_modules/govuk-frontend/dist/govuk/components/button/template-prevent-double-click.html +0 -3
  149. data/node_modules/govuk-frontend/dist/govuk/components/button/template-secondary-disabled.html +0 -3
  150. data/node_modules/govuk-frontend/dist/govuk/components/button/template-secondary-link.html +0 -3
  151. data/node_modules/govuk-frontend/dist/govuk/components/button/template-start-link.html +0 -6
  152. data/node_modules/govuk-frontend/dist/govuk/components/button/template-warning-disabled.html +0 -3
  153. data/node_modules/govuk-frontend/dist/govuk/components/button/template-warning-link.html +0 -3
  154. data/node_modules/govuk-frontend/dist/govuk/components/button/template-with-active-state.html +0 -3
  155. data/node_modules/govuk-frontend/dist/govuk/components/button/template-with-focus-state.html +0 -3
  156. data/node_modules/govuk-frontend/dist/govuk/components/button/template-with-hover-state.html +0 -3
  157. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-custom-textarea-description.html +0 -9
  158. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-error.html +0 -12
  159. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-translations.html +0 -9
  160. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-disabled.html +0 -27
  161. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-a-medium-legend.html +0 -33
  162. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-item-checked.html +0 -39
  163. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-items-with-special-characters.html +0 -39
  164. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-disabled-item.html +0 -29
  165. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-error-message-and-hints-on-items.html +0 -39
  166. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-id-and-name.html +0 -30
  167. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-single-option-and-hint-set-aria-describedby-on-input.html +0 -16
  168. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-single-option-set-aria-describedby-on-input.html +0 -13
  169. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-without-fieldset.html +0 -22
  170. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-client-side-implementation.html +0 -60
  171. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-autocomplete-values.html +0 -36
  172. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-default-items.html +0 -36
  173. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-input-attributes.html +0 -36
  174. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-optional-form-group-classes.html +0 -36
  175. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template-translated.html +0 -5
  176. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-direct-media-capture.html +0 -6
  177. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-image-files-only.html +0 -6
  178. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-multiple-files.html +0 -6
  179. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-disabled.html +0 -6
  180. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-disabled.html +0 -13
  181. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-with-optional-form-group-classes.html +0 -6
  182. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-meta.html +0 -56
  183. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-label.html +0 -59
  184. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-navigation-label.html +0 -59
  185. data/node_modules/govuk-frontend/dist/govuk/components/input/template-disabled.html +0 -6
  186. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-autocapitalize-turned-off.html +0 -6
  187. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-autocomplete-attribute.html +0 -6
  188. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-optional-form-group-classes.html +0 -6
  189. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-pattern-attribute.html +0 -6
  190. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-prefix-and-long-suffix.html +0 -10
  191. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-spellcheck-disabled.html +0 -6
  192. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-spellcheck-enabled.html +0 -6
  193. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-auto-focus-disabled-with-type-as-success.html +0 -12
  194. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-auto-focus-explicitly-enabled-with-type-as-success.html +0 -12
  195. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-custom-tabindex.html +0 -12
  196. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-paragraph-as-html-heading.html +0 -10
  197. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-rolealert-overridden-to-roleregion-with-type-as-success.html +0 -12
  198. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-success-with-custom-html.html +0 -16
  199. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-a-list.html +0 -16
  200. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-accessible-labels-on-item-links.html +0 -39
  201. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-navigation-landmark.html +0 -39
  202. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-prev-and-next-only-in-a-different-language.html +0 -22
  203. data/node_modules/govuk-frontend/dist/govuk/components/panel/template-custom-heading-level.html +0 -8
  204. data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-new-password-autocomplete.html +0 -11
  205. data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-translations.html +0 -11
  206. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-prechecked-using-value.html +0 -16
  207. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-prechecked.html +0 -19
  208. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-inline-extreme.html +0 -69
  209. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-disabled.html +0 -27
  210. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-a-medium-legend.html +0 -24
  211. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-items-with-special-characters.html +0 -39
  212. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-disabled.html +0 -29
  213. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-idprefix.html +0 -16
  214. data/node_modules/govuk-frontend/dist/govuk/components/select/template-id.html +0 -7
  215. data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-no-items.html +0 -7
  216. data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-optional-form-group-classes.html +0 -10
  217. data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-selected-value.html +0 -10
  218. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-a-custom-header-level.html +0 -28
  219. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-check-your-answers.html +0 -98
  220. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-overridden-widths.html +0 -58
  221. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-translated.html +0 -51
  222. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-with-no-first-action.html +0 -58
  223. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-with-some-actions.html +0 -45
  224. data/node_modules/govuk-frontend/dist/govuk/components/table/template-with-small-text-modifier-for-tables-with-a-lot-of-data.html +0 -19
  225. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-blue.html +0 -3
  226. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-example-with-3-states.html +0 -49
  227. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-autocomplete-attribute.html +0 -6
  228. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-optional-form-group-classes.html +0 -6
  229. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-spellcheck-disabled.html +0 -6
  230. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-spellcheck-enabled.html +0 -6
  231. /data/node_modules/govuk-frontend/dist/govuk/components/date-input/{template-complete-question.html → template-with-items.html} +0 -0
  232. /data/node_modules/govuk-frontend/dist/govuk/components/table/{template-table-with-head-and-caption.html → template-with-head-and-caption.html} +0 -0
  233. /data/node_modules/govuk-frontend/dist/govuk/components/table/{template-table-with-head.html → template-with-head.html} +0 -0
  234. /data/node_modules/govuk-frontend/dist/govuk/components/task-list/{template-example-with-all-possible-colours.html → template-with-all-possible-colours.html} +0 -0
  235. /data/node_modules/govuk-frontend/dist/govuk/components/task-list/{template-example-with-hint-text-and-additional-states.html → template-with-hint-text-and-additional-states.html} +0 -0
  236. /data/node_modules/govuk-frontend/dist/govuk/components/task-list/{template-example-with-very-long-single-word-tags.html → template-with-very-long-single-word-tags.html} +0 -0
@@ -5,6 +5,11 @@
5
5
  "name": "default",
6
6
  "options": {
7
7
  "name": "nationality",
8
+ "fieldset": {
9
+ "legend": {
10
+ "text": "What is your nationality?"
11
+ }
12
+ },
8
13
  "items": [
9
14
  {
10
15
  "value": "british",
@@ -22,14 +27,22 @@
22
27
  },
23
28
  "hidden": false,
24
29
  "description": "",
25
- "previewLayoutModifiers": [],
26
- "screenshot": false,
27
- "html": "<div class=\"govuk-form-group\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality\" name=\"nationality\" type=\"checkbox\" value=\"british\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality\">\n British\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-2\" name=\"nationality\" type=\"checkbox\" value=\"irish\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-2\">\n Irish\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-3\" name=\"nationality\" type=\"checkbox\" value=\"other\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-3\">\n Citizen of another country\n </label>\n </div>\n </div>\n</div>"
30
+ "pageTemplateOptions": {},
31
+ "screenshot": true,
32
+ "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n What is your nationality?\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality\" name=\"nationality\" type=\"checkbox\" value=\"british\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality\">\n British\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-2\" name=\"nationality\" type=\"checkbox\" value=\"irish\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-2\">\n Irish\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-3\" name=\"nationality\" type=\"checkbox\" value=\"other\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-3\">\n Citizen of another country\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
28
33
  },
29
34
  {
30
- "name": "with pre-checked values",
35
+ "name": "with hint",
31
36
  "options": {
32
37
  "name": "nationality",
38
+ "fieldset": {
39
+ "legend": {
40
+ "text": "What is your nationality?"
41
+ }
42
+ },
43
+ "hint": {
44
+ "text": "Select all that apply"
45
+ },
33
46
  "items": [
34
47
  {
35
48
  "value": "british",
@@ -41,22 +54,64 @@
41
54
  },
42
55
  {
43
56
  "value": "other",
44
- "text": "Citizen of another country",
57
+ "text": "Citizen of another country"
58
+ }
59
+ ]
60
+ },
61
+ "hidden": false,
62
+ "description": "",
63
+ "pageTemplateOptions": {},
64
+ "screenshot": false,
65
+ "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"nationality-hint\">\n <legend class=\"govuk-fieldset__legend\">\n What is your nationality?\n </legend>\n <div id=\"nationality-hint\" class=\"govuk-hint\">\n Select all that apply\n </div>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality\" name=\"nationality\" type=\"checkbox\" value=\"british\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality\">\n British\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-2\" name=\"nationality\" type=\"checkbox\" value=\"irish\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-2\">\n Irish\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-3\" name=\"nationality\" type=\"checkbox\" value=\"other\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-3\">\n Citizen of another country\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
66
+ },
67
+ {
68
+ "name": "with pre-checked values",
69
+ "options": {
70
+ "name": "how-contacted-checked",
71
+ "idPrefix": "how-contacted-checked",
72
+ "fieldset": {
73
+ "legend": {
74
+ "text": "How do you want to be contacted?"
75
+ }
76
+ },
77
+ "values": [
78
+ "email",
79
+ "text"
80
+ ],
81
+ "items": [
82
+ {
83
+ "value": "email",
84
+ "text": "Email",
45
85
  "conditional": {
46
- "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"other-country\">\n Country\n </label>\n <input class=\"govuk-input\" id=\"other-country\" name=\"other-country\" type=\"text\" value=\"Ravka\">\n</div>\n"
86
+ "html": "<label class=\"govuk-label\" for=\"context-email\">Email address</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"context-email\" type=\"text\" id=\"context-email\">\n"
87
+ }
88
+ },
89
+ {
90
+ "value": "phone",
91
+ "text": "Phone",
92
+ "conditional": {
93
+ "html": "<label class=\"govuk-label\" for=\"contact-phone\">Phone number</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-phone\" type=\"text\" id=\"contact-phone\">\n"
94
+ }
95
+ },
96
+ {
97
+ "value": "text",
98
+ "text": "Text message",
99
+ "conditional": {
100
+ "html": "<label class=\"govuk-label\" for=\"contact-text-message\">Mobile phone number</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-text-message\" type=\"text\" id=\"contact-text-message\">\n"
47
101
  }
48
102
  }
49
- ],
50
- "values": [
51
- "british",
52
- "other"
53
103
  ]
54
104
  },
55
105
  "hidden": false,
56
106
  "description": "",
57
- "previewLayoutModifiers": [],
58
- "screenshot": false,
59
- "html": "<div class=\"govuk-form-group\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality\" name=\"nationality\" type=\"checkbox\" value=\"british\" checked>\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality\">\n British\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-2\" name=\"nationality\" type=\"checkbox\" value=\"irish\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-2\">\n Irish\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-3\" name=\"nationality\" type=\"checkbox\" value=\"other\" checked data-aria-controls=\"conditional-nationality-3\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-3\">\n Citizen of another country\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional\" id=\"conditional-nationality-3\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"other-country\">\n Country\n </label>\n <input class=\"govuk-input\" id=\"other-country\" name=\"other-country\" type=\"text\" value=\"Ravka\">\n</div>\n </div>\n </div>\n</div>"
107
+ "pageTemplateOptions": {},
108
+ "screenshot": {
109
+ "variants": [
110
+ "default",
111
+ "no-js"
112
+ ]
113
+ },
114
+ "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n How do you want to be contacted?\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-checked\" name=\"how-contacted-checked\" type=\"checkbox\" value=\"email\" checked data-aria-controls=\"conditional-how-contacted-checked\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-checked\">\n Email\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional\" id=\"conditional-how-contacted-checked\">\n <label class=\"govuk-label\" for=\"context-email\">Email address</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"context-email\" type=\"text\" id=\"context-email\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-checked-2\" name=\"how-contacted-checked\" type=\"checkbox\" value=\"phone\" data-aria-controls=\"conditional-how-contacted-checked-2\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-checked-2\">\n Phone\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-how-contacted-checked-2\">\n <label class=\"govuk-label\" for=\"contact-phone\">Phone number</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-phone\" type=\"text\" id=\"contact-phone\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-checked-3\" name=\"how-contacted-checked\" type=\"checkbox\" value=\"text\" checked data-aria-controls=\"conditional-how-contacted-checked-3\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-checked-3\">\n Text message\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional\" id=\"conditional-how-contacted-checked-3\">\n <label class=\"govuk-label\" for=\"contact-text-message\">Mobile phone number</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-text-message\" type=\"text\" id=\"contact-text-message\">\n </div>\n </div>\n </fieldset>\n</div>"
60
115
  },
61
116
  {
62
117
  "name": "with divider and None",
@@ -64,9 +119,7 @@
64
119
  "name": "with-divider-and-none",
65
120
  "fieldset": {
66
121
  "legend": {
67
- "text": "Which types of waste do you transport regularly?",
68
- "classes": "govuk-fieldset__legend--l",
69
- "isPageHeading": true
122
+ "text": "Which types of waste do you transport regularly?"
70
123
  }
71
124
  },
72
125
  "items": [
@@ -94,9 +147,9 @@
94
147
  },
95
148
  "hidden": false,
96
149
  "description": "",
97
- "previewLayoutModifiers": [],
150
+ "pageTemplateOptions": {},
98
151
  "screenshot": true,
99
- "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n Which types of waste do you transport regularly?\n </h1>\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none\" name=\"with-divider-and-none\" type=\"checkbox\" value=\"animal\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none\">\n Waste from animal carcasses\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-2\" name=\"with-divider-and-none\" type=\"checkbox\" value=\"mines\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-2\">\n Waste from mines or quarries\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-3\" name=\"with-divider-and-none\" type=\"checkbox\" value=\"farm\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-3\">\n Farm or agricultural waste\n </label>\n </div>\n <div class=\"govuk-checkboxes__divider\">or</div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-5\" name=\"with-divider-and-none\" type=\"checkbox\" value=\"none\" data-behaviour=\"exclusive\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-5\">\n None of these\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
152
+ "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n Which types of waste do you transport regularly?\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none\" name=\"with-divider-and-none\" type=\"checkbox\" value=\"animal\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none\">\n Waste from animal carcasses\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-2\" name=\"with-divider-and-none\" type=\"checkbox\" value=\"mines\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-2\">\n Waste from mines or quarries\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-3\" name=\"with-divider-and-none\" type=\"checkbox\" value=\"farm\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-3\">\n Farm or agricultural waste\n </label>\n </div>\n <div class=\"govuk-checkboxes__divider\">or</div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-5\" name=\"with-divider-and-none\" type=\"checkbox\" value=\"none\" data-behaviour=\"exclusive\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-5\">\n None of these\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
100
153
  },
101
154
  {
102
155
  "name": "with divider, None and conditional items",
@@ -104,9 +157,7 @@
104
157
  "name": "with-divider-and-none-and-conditional-items",
105
158
  "fieldset": {
106
159
  "legend": {
107
- "text": "Do you have any access needs?",
108
- "classes": "govuk-fieldset__legend--l",
109
- "isPageHeading": true
160
+ "text": "Do you have any access needs?"
110
161
  }
111
162
  },
112
163
  "items": [
@@ -141,58 +192,17 @@
141
192
  },
142
193
  "hidden": false,
143
194
  "description": "",
144
- "previewLayoutModifiers": [],
145
- "screenshot": false,
146
- "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n Do you have any access needs?\n </h1>\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-and-conditional-items\" name=\"with-divider-and-none-and-conditional-items\" type=\"checkbox\" value=\"accessible-toilets\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-and-conditional-items\">\n Accessible toilets available\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-and-conditional-items-2\" name=\"with-divider-and-none-and-conditional-items\" type=\"checkbox\" value=\"braille\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-and-conditional-items-2\">\n Braille translation service available\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-and-conditional-items-3\" name=\"with-divider-and-none-and-conditional-items\" type=\"checkbox\" value=\"disabled-car-parking\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-and-conditional-items-3\">\n Disabled car parking available\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-and-conditional-items-4\" name=\"with-divider-and-none-and-conditional-items\" type=\"checkbox\" value=\"another-access-need\" data-aria-controls=\"conditional-with-divider-and-none-and-conditional-items-4\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-and-conditional-items-4\">\n Another access need\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-with-divider-and-none-and-conditional-items-4\">\n <label class=\"govuk-label\" for=\"other-access-needs\">Other access needs</label>\n <textarea class=\"govuk-textarea govuk-!-width-one-third\" name=\"other-access-needs\" id=\"other-access-needs\"></textarea>\n </div>\n <div class=\"govuk-checkboxes__divider\">or</div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-and-conditional-items-6\" name=\"with-divider-and-none-and-conditional-items\" type=\"checkbox\" value=\"none\" data-behaviour=\"exclusive\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-and-conditional-items-6\">\n None of these\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
147
- },
148
- {
149
- "name": "with id and name",
150
- "options": {
151
- "name": "with-id-and-name",
152
- "fieldset": {
153
- "legend": {
154
- "text": "What is your nationality?"
155
- }
156
- },
157
- "hint": {
158
- "text": "If you have dual nationality, select all options that are relevant to you."
159
- },
160
- "items": [
161
- {
162
- "name": "british",
163
- "id": "item_british",
164
- "value": "yes",
165
- "text": "British"
166
- },
167
- {
168
- "name": "irish",
169
- "id": "item_irish",
170
- "value": "irish",
171
- "text": "Irish"
172
- },
173
- {
174
- "name": "custom-name-scottish",
175
- "text": "Scottish",
176
- "value": "scottish"
177
- }
178
- ]
179
- },
180
- "hidden": false,
181
- "description": "",
182
- "previewLayoutModifiers": [],
195
+ "pageTemplateOptions": {},
183
196
  "screenshot": false,
184
- "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"with-id-and-name-hint\">\n <legend class=\"govuk-fieldset__legend\">\n What is your nationality?\n </legend>\n <div id=\"with-id-and-name-hint\" class=\"govuk-hint\">\n If you have dual nationality, select all options that are relevant to you.\n </div>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"item_british\" name=\"british\" type=\"checkbox\" value=\"yes\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"item_british\">\n British\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"item_irish\" name=\"irish\" type=\"checkbox\" value=\"irish\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"item_irish\">\n Irish\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-id-and-name-3\" name=\"custom-name-scottish\" type=\"checkbox\" value=\"scottish\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-id-and-name-3\">\n Scottish\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
197
+ "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n Do you have any access needs?\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-and-conditional-items\" name=\"with-divider-and-none-and-conditional-items\" type=\"checkbox\" value=\"accessible-toilets\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-and-conditional-items\">\n Accessible toilets available\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-and-conditional-items-2\" name=\"with-divider-and-none-and-conditional-items\" type=\"checkbox\" value=\"braille\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-and-conditional-items-2\">\n Braille translation service available\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-and-conditional-items-3\" name=\"with-divider-and-none-and-conditional-items\" type=\"checkbox\" value=\"disabled-car-parking\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-and-conditional-items-3\">\n Disabled car parking available\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-and-conditional-items-4\" name=\"with-divider-and-none-and-conditional-items\" type=\"checkbox\" value=\"another-access-need\" data-aria-controls=\"conditional-with-divider-and-none-and-conditional-items-4\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-and-conditional-items-4\">\n Another access need\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-with-divider-and-none-and-conditional-items-4\">\n <label class=\"govuk-label\" for=\"other-access-needs\">Other access needs</label>\n <textarea class=\"govuk-textarea govuk-!-width-one-third\" name=\"other-access-needs\" id=\"other-access-needs\"></textarea>\n </div>\n <div class=\"govuk-checkboxes__divider\">or</div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-divider-and-none-and-conditional-items-6\" name=\"with-divider-and-none-and-conditional-items\" type=\"checkbox\" value=\"none\" data-behaviour=\"exclusive\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-divider-and-none-and-conditional-items-6\">\n None of these\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
185
198
  },
186
199
  {
187
200
  "name": "with hints on items",
188
201
  "options": {
189
202
  "name": "with-hints-on-items",
190
- "screenshot": true,
191
203
  "fieldset": {
192
204
  "legend": {
193
- "text": "How do you want to sign in?",
194
- "classes": "govuk-fieldset__legend--l",
195
- "isPageHeading": true
205
+ "text": "How do you want to sign in?"
196
206
  }
197
207
  },
198
208
  "items": [
@@ -218,48 +228,9 @@
218
228
  },
219
229
  "hidden": false,
220
230
  "description": "",
221
- "previewLayoutModifiers": [],
231
+ "pageTemplateOptions": {},
222
232
  "screenshot": false,
223
- "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n How do you want to sign in?\n </h1>\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"government-gateway\" name=\"gateway\" type=\"checkbox\" value=\"gov-gateway\" aria-describedby=\"government-gateway-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"government-gateway\">\n Sign in with Government Gateway\n </label>\n <div id=\"government-gateway-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n You&#39;ll have a user ID if you&#39;ve registered for Self Assessment or filed a tax return online before.\n </div>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"govuk-verify\" name=\"verify\" type=\"checkbox\" value=\"gov-verify\" aria-describedby=\"govuk-verify-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"govuk-verify\">\n Sign in with GOV.UK Verify\n </label>\n <div id=\"govuk-verify-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n You&#39;ll have an account if you&#39;ve already proved your identity with either Barclays, CitizenSafe, Digidentity, Experian, Post Office, Royal Mail or SecureIdentity.\n </div>\n </div>\n </div>\n </fieldset>\n</div>"
224
- },
225
- {
226
- "name": "with disabled item",
227
- "options": {
228
- "name": "sign-in",
229
- "fieldset": {
230
- "legend": {
231
- "text": "How do you want to sign in?",
232
- "classes": "govuk-fieldset__legend--l",
233
- "isPageHeading": true
234
- }
235
- },
236
- "items": [
237
- {
238
- "name": "gateway",
239
- "id": "government-gateway",
240
- "value": "gov-gateway",
241
- "text": "Sign in with Government Gateway",
242
- "hint": {
243
- "text": "You'll have a user ID if you've registered for Self Assessment or filed a tax return online before."
244
- }
245
- },
246
- {
247
- "name": "verify",
248
- "id": "govuk-verify",
249
- "value": "gov-verify",
250
- "text": "Sign in with GOV.UK Verify",
251
- "hint": {
252
- "text": "You'll have an account if you've already proved your identity with either Barclays, CitizenSafe, Digidentity, Experian, Post Office, Royal Mail or SecureIdentity."
253
- },
254
- "disabled": true
255
- }
256
- ]
257
- },
258
- "hidden": false,
259
- "description": "",
260
- "previewLayoutModifiers": [],
261
- "screenshot": false,
262
- "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n How do you want to sign in?\n </h1>\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"government-gateway\" name=\"gateway\" type=\"checkbox\" value=\"gov-gateway\" aria-describedby=\"government-gateway-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"government-gateway\">\n Sign in with Government Gateway\n </label>\n <div id=\"government-gateway-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n You&#39;ll have a user ID if you&#39;ve registered for Self Assessment or filed a tax return online before.\n </div>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"govuk-verify\" name=\"verify\" type=\"checkbox\" value=\"gov-verify\" disabled aria-describedby=\"govuk-verify-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"govuk-verify\">\n Sign in with GOV.UK Verify\n </label>\n <div id=\"govuk-verify-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n You&#39;ll have an account if you&#39;ve already proved your identity with either Barclays, CitizenSafe, Digidentity, Experian, Post Office, Royal Mail or SecureIdentity.\n </div>\n </div>\n </div>\n </fieldset>\n</div>"
233
+ "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n How do you want to sign in?\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"government-gateway\" name=\"gateway\" type=\"checkbox\" value=\"gov-gateway\" aria-describedby=\"government-gateway-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"government-gateway\">\n Sign in with Government Gateway\n </label>\n <div id=\"government-gateway-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n You&#39;ll have a user ID if you&#39;ve registered for Self Assessment or filed a tax return online before.\n </div>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"govuk-verify\" name=\"verify\" type=\"checkbox\" value=\"gov-verify\" aria-describedby=\"govuk-verify-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"govuk-verify\">\n Sign in with GOV.UK Verify\n </label>\n <div id=\"govuk-verify-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n You&#39;ll have an account if you&#39;ve already proved your identity with either Barclays, CitizenSafe, Digidentity, Experian, Post Office, Royal Mail or SecureIdentity.\n </div>\n </div>\n </div>\n </fieldset>\n</div>"
263
234
  },
264
235
  {
265
236
  "name": "with legend as a page heading",
@@ -292,148 +263,10 @@
292
263
  },
293
264
  "hidden": false,
294
265
  "description": "",
295
- "previewLayoutModifiers": [],
266
+ "pageTemplateOptions": {},
296
267
  "screenshot": false,
297
268
  "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"waste-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n Which types of waste do you transport regularly?\n </h1>\n </legend>\n <div id=\"waste-hint\" class=\"govuk-hint\">\n Select all that apply\n </div>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste\" name=\"waste\" type=\"checkbox\" value=\"animal\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste\">\n Waste from animal carcasses\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste-2\" name=\"waste\" type=\"checkbox\" value=\"mines\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste-2\">\n Waste from mines or quarries\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste-3\" name=\"waste\" type=\"checkbox\" value=\"farm\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste-3\">\n Farm or agricultural waste\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
298
269
  },
299
- {
300
- "name": "with a medium legend",
301
- "options": {
302
- "name": "waste",
303
- "fieldset": {
304
- "legend": {
305
- "text": "Which types of waste do you transport regularly?",
306
- "classes": "govuk-fieldset__legend--m"
307
- }
308
- },
309
- "hint": {
310
- "text": "Select all that apply"
311
- },
312
- "errorMessage": {
313
- "text": "Select which types of waste you transport regularly"
314
- },
315
- "items": [
316
- {
317
- "value": "animal",
318
- "text": "Waste from animal carcasses"
319
- },
320
- {
321
- "value": "mines",
322
- "text": "Waste from mines or quarries"
323
- },
324
- {
325
- "value": "farm",
326
- "text": "Farm or agricultural waste"
327
- }
328
- ]
329
- },
330
- "hidden": false,
331
- "description": "",
332
- "previewLayoutModifiers": [],
333
- "screenshot": false,
334
- "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"waste-hint waste-error\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n Which types of waste do you transport regularly?\n </legend>\n <div id=\"waste-hint\" class=\"govuk-hint\">\n Select all that apply\n </div>\n <p id=\"waste-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Select which types of waste you transport regularly\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste\" name=\"waste\" type=\"checkbox\" value=\"animal\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste\">\n Waste from animal carcasses\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste-2\" name=\"waste\" type=\"checkbox\" value=\"mines\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste-2\">\n Waste from mines or quarries\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste-3\" name=\"waste\" type=\"checkbox\" value=\"farm\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste-3\">\n Farm or agricultural waste\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
335
- },
336
- {
337
- "name": "without fieldset",
338
- "options": {
339
- "name": "colours",
340
- "items": [
341
- {
342
- "value": "red",
343
- "text": "Red"
344
- },
345
- {
346
- "value": "green",
347
- "text": "Green"
348
- },
349
- {
350
- "value": "blue",
351
- "text": "Blue"
352
- }
353
- ]
354
- },
355
- "hidden": false,
356
- "description": "",
357
- "previewLayoutModifiers": [],
358
- "screenshot": false,
359
- "html": "<div class=\"govuk-form-group\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"colours\" name=\"colours\" type=\"checkbox\" value=\"red\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"colours\">\n Red\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"colours-2\" name=\"colours\" type=\"checkbox\" value=\"green\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"colours-2\">\n Green\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"colours-3\" name=\"colours\" type=\"checkbox\" value=\"blue\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"colours-3\">\n Blue\n </label>\n </div>\n </div>\n</div>"
360
- },
361
- {
362
- "name": "with single option set 'aria-describedby' on input",
363
- "options": {
364
- "name": "t-and-c",
365
- "errorMessage": {
366
- "text": "Please accept the terms and conditions"
367
- },
368
- "items": [
369
- {
370
- "value": "yes",
371
- "text": "I agree to the terms and conditions"
372
- }
373
- ]
374
- },
375
- "hidden": false,
376
- "description": "",
377
- "previewLayoutModifiers": [],
378
- "screenshot": false,
379
- "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <p id=\"t-and-c-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Please accept the terms and conditions\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"t-and-c\" name=\"t-and-c\" type=\"checkbox\" value=\"yes\" aria-describedby=\"t-and-c-error\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"t-and-c\">\n I agree to the terms and conditions\n </label>\n </div>\n </div>\n</div>"
380
- },
381
- {
382
- "name": "with single option (and hint) set 'aria-describedby' on input",
383
- "options": {
384
- "name": "t-and-c-with-hint",
385
- "errorMessage": {
386
- "text": "Please accept the terms and conditions"
387
- },
388
- "items": [
389
- {
390
- "value": "yes",
391
- "text": "I agree to the terms and conditions",
392
- "hint": {
393
- "text": "Go on, you know you want to!"
394
- }
395
- }
396
- ]
397
- },
398
- "hidden": false,
399
- "description": "",
400
- "previewLayoutModifiers": [],
401
- "screenshot": false,
402
- "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <p id=\"t-and-c-with-hint-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Please accept the terms and conditions\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"t-and-c-with-hint\" name=\"t-and-c-with-hint\" type=\"checkbox\" value=\"yes\" aria-describedby=\"t-and-c-with-hint-error t-and-c-with-hint-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"t-and-c-with-hint\">\n I agree to the terms and conditions\n </label>\n <div id=\"t-and-c-with-hint-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n Go on, you know you want to!\n </div>\n </div>\n </div>\n</div>"
403
- },
404
- {
405
- "name": "with fieldset and error message",
406
- "options": {
407
- "name": "nationality",
408
- "errorMessage": {
409
- "text": "Please accept the terms and conditions"
410
- },
411
- "fieldset": {
412
- "legend": {
413
- "text": "What is your nationality?"
414
- }
415
- },
416
- "items": [
417
- {
418
- "value": "british",
419
- "text": "British"
420
- },
421
- {
422
- "value": "irish",
423
- "text": "Irish"
424
- },
425
- {
426
- "value": "other",
427
- "text": "Citizen of another country"
428
- }
429
- ]
430
- },
431
- "hidden": false,
432
- "description": "",
433
- "previewLayoutModifiers": [],
434
- "screenshot": false,
435
- "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"nationality-error\">\n <legend class=\"govuk-fieldset__legend\">\n What is your nationality?\n </legend>\n <p id=\"nationality-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Please accept the terms and conditions\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality\" name=\"nationality\" type=\"checkbox\" value=\"british\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality\">\n British\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-2\" name=\"nationality\" type=\"checkbox\" value=\"irish\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-2\">\n Irish\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-3\" name=\"nationality\" type=\"checkbox\" value=\"other\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-3\">\n Citizen of another country\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
436
- },
437
270
  {
438
271
  "name": "with error message",
439
272
  "options": {
@@ -446,190 +279,74 @@
446
279
  "text": "Which types of waste do you transport regularly?"
447
280
  }
448
281
  },
449
- "items": [
450
- {
451
- "value": "animal",
452
- "text": "Waste from animal carcasses"
453
- },
454
- {
455
- "value": "mines",
456
- "text": "Waste from mines or quarries"
457
- },
458
- {
459
- "value": "farm",
460
- "text": "Farm or agricultural waste"
461
- }
462
- ]
463
- },
464
- "hidden": false,
465
- "description": "",
466
- "previewLayoutModifiers": [],
467
- "screenshot": false,
468
- "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"waste-error\">\n <legend class=\"govuk-fieldset__legend\">\n Which types of waste do you transport regularly?\n </legend>\n <p id=\"waste-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Please select an option\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste\" name=\"waste\" type=\"checkbox\" value=\"animal\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste\">\n Waste from animal carcasses\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste-2\" name=\"waste\" type=\"checkbox\" value=\"mines\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste-2\">\n Waste from mines or quarries\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste-3\" name=\"waste\" type=\"checkbox\" value=\"farm\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste-3\">\n Farm or agricultural waste\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
469
- },
470
- {
471
- "name": "with error message and hints on items",
472
- "options": {
473
- "name": "waste",
474
- "errorMessage": {
475
- "text": "Please select an option"
476
- },
477
- "fieldset": {
478
- "legend": {
479
- "text": "Which types of waste do you transport regularly?"
480
- }
481
- },
482
- "items": [
483
- {
484
- "value": "animal",
485
- "text": "Waste from animal carcasses",
486
- "hint": {
487
- "text": "Nullam id dolor id nibh ultricies vehicula ut id elit."
488
- }
489
- },
490
- {
491
- "value": "mines",
492
- "text": "Waste from mines or quarries",
493
- "hint": {
494
- "text": "Nullam id dolor id nibh ultricies vehicula ut id elit."
495
- }
496
- },
497
- {
498
- "value": "farm",
499
- "text": "Farm or agricultural waste",
500
- "hint": {
501
- "text": "Nullam id dolor id nibh ultricies vehicula ut id elit."
502
- }
503
- }
504
- ]
505
- },
506
- "hidden": false,
507
- "description": "",
508
- "previewLayoutModifiers": [],
509
- "screenshot": false,
510
- "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"waste-error\">\n <legend class=\"govuk-fieldset__legend\">\n Which types of waste do you transport regularly?\n </legend>\n <p id=\"waste-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Please select an option\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste\" name=\"waste\" type=\"checkbox\" value=\"animal\" aria-describedby=\"waste-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste\">\n Waste from animal carcasses\n </label>\n <div id=\"waste-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n Nullam id dolor id nibh ultricies vehicula ut id elit.\n </div>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste-2\" name=\"waste\" type=\"checkbox\" value=\"mines\" aria-describedby=\"waste-2-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste-2\">\n Waste from mines or quarries\n </label>\n <div id=\"waste-2-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n Nullam id dolor id nibh ultricies vehicula ut id elit.\n </div>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste-3\" name=\"waste\" type=\"checkbox\" value=\"farm\" aria-describedby=\"waste-3-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste-3\">\n Farm or agricultural waste\n </label>\n <div id=\"waste-3-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n Nullam id dolor id nibh ultricies vehicula ut id elit.\n </div>\n </div>\n </div>\n </fieldset>\n</div>"
511
- },
512
- {
513
- "name": "with very long option text",
514
- "options": {
515
- "name": "waste",
516
- "hint": {
517
- "text": "Nullam id dolor id nibh ultricies vehicula ut id elit."
518
- },
519
- "errorMessage": {
520
- "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
521
- },
522
- "fieldset": {
523
- "legend": {
524
- "text": "Maecenas faucibus mollis interdum?"
525
- }
526
- },
527
- "items": [
528
- {
529
- "value": "nullam",
530
- "text": "Nullam id dolor id nibh ultricies vehicula ut id elit. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas faucibus mollis interdum. Donec id elit non mi porta gravida at eget metus."
531
- },
532
- {
533
- "value": "aenean",
534
- "text": "Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec sed odio dui. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cras mattis consectetur purus sit amet fermentum."
535
- },
536
- {
537
- "value": "fusce",
538
- "text": "Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Etiam porta sem malesuada magna mollis euismod. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. Sed posuere consectetur est at lobortis."
539
- }
540
- ]
541
- },
542
- "hidden": false,
543
- "description": "",
544
- "previewLayoutModifiers": [],
545
- "screenshot": false,
546
- "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"waste-hint waste-error\">\n <legend class=\"govuk-fieldset__legend\">\n Maecenas faucibus mollis interdum?\n </legend>\n <div id=\"waste-hint\" class=\"govuk-hint\">\n Nullam id dolor id nibh ultricies vehicula ut id elit.\n </div>\n <p id=\"waste-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste\" name=\"waste\" type=\"checkbox\" value=\"nullam\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste\">\n Nullam id dolor id nibh ultricies vehicula ut id elit. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas faucibus mollis interdum. Donec id elit non mi porta gravida at eget metus.\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste-2\" name=\"waste\" type=\"checkbox\" value=\"aenean\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste-2\">\n Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec sed odio dui. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cras mattis consectetur purus sit amet fermentum.\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste-3\" name=\"waste\" type=\"checkbox\" value=\"fusce\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste-3\">\n Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Etiam porta sem malesuada magna mollis euismod. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. Sed posuere consectetur est at lobortis.\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
547
- },
548
- {
549
- "name": "with conditional items",
550
- "options": {
551
- "name": "with-conditional-items",
552
- "idPrefix": "how-contacted",
553
- "fieldset": {
554
- "legend": {
555
- "text": "How do you want to be contacted?"
556
- }
557
- },
558
- "items": [
559
- {
560
- "value": "email",
561
- "text": "Email",
562
- "conditional": {
563
- "html": "<label class=\"govuk-label\" for=\"context-email\">Email address</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"context-email\" type=\"text\" id=\"context-email\">\n"
282
+ "items": [
283
+ {
284
+ "value": "animal",
285
+ "text": "Waste from animal carcasses",
286
+ "hint": {
287
+ "text": "Nullam id dolor id nibh ultricies vehicula ut id elit."
564
288
  }
565
289
  },
566
290
  {
567
- "value": "phone",
568
- "text": "Phone",
569
- "conditional": {
570
- "html": "<label class=\"govuk-label\" for=\"contact-phone\">Phone number</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-phone\" type=\"text\" id=\"contact-phone\">\n"
291
+ "value": "mines",
292
+ "text": "Waste from mines or quarries",
293
+ "hint": {
294
+ "text": "Nullam id dolor id nibh ultricies vehicula ut id elit."
571
295
  }
572
296
  },
573
297
  {
574
- "value": "text",
575
- "text": "Text message",
576
- "conditional": {
577
- "html": "<label class=\"govuk-label\" for=\"contact-text-message\">Mobile phone number</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-text-message\" type=\"text\" id=\"contact-text-message\">\n"
298
+ "value": "farm",
299
+ "text": "Farm or agricultural waste",
300
+ "hint": {
301
+ "text": "Nullam id dolor id nibh ultricies vehicula ut id elit."
578
302
  }
579
303
  }
580
304
  ]
581
305
  },
582
306
  "hidden": false,
583
307
  "description": "",
584
- "previewLayoutModifiers": [],
308
+ "pageTemplateOptions": {},
585
309
  "screenshot": false,
586
- "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n How do you want to be contacted?\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted\" name=\"with-conditional-items\" type=\"checkbox\" value=\"email\" data-aria-controls=\"conditional-how-contacted\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted\">\n Email\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-how-contacted\">\n <label class=\"govuk-label\" for=\"context-email\">Email address</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"context-email\" type=\"text\" id=\"context-email\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-2\" name=\"with-conditional-items\" type=\"checkbox\" value=\"phone\" data-aria-controls=\"conditional-how-contacted-2\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-2\">\n Phone\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-how-contacted-2\">\n <label class=\"govuk-label\" for=\"contact-phone\">Phone number</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-phone\" type=\"text\" id=\"contact-phone\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-3\" name=\"with-conditional-items\" type=\"checkbox\" value=\"text\" data-aria-controls=\"conditional-how-contacted-3\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-3\">\n Text message\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-how-contacted-3\">\n <label class=\"govuk-label\" for=\"contact-text-message\">Mobile phone number</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-text-message\" type=\"text\" id=\"contact-text-message\">\n </div>\n </div>\n </fieldset>\n</div>"
310
+ "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"waste-error\">\n <legend class=\"govuk-fieldset__legend\">\n Which types of waste do you transport regularly?\n </legend>\n <p id=\"waste-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Please select an option\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste\" name=\"waste\" type=\"checkbox\" value=\"animal\" aria-describedby=\"waste-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste\">\n Waste from animal carcasses\n </label>\n <div id=\"waste-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n Nullam id dolor id nibh ultricies vehicula ut id elit.\n </div>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste-2\" name=\"waste\" type=\"checkbox\" value=\"mines\" aria-describedby=\"waste-2-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste-2\">\n Waste from mines or quarries\n </label>\n <div id=\"waste-2-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n Nullam id dolor id nibh ultricies vehicula ut id elit.\n </div>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste-3\" name=\"waste\" type=\"checkbox\" value=\"farm\" aria-describedby=\"waste-3-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste-3\">\n Farm or agricultural waste\n </label>\n <div id=\"waste-3-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n Nullam id dolor id nibh ultricies vehicula ut id elit.\n </div>\n </div>\n </div>\n </fieldset>\n</div>"
587
311
  },
588
312
  {
589
- "name": "with conditional items with special characters",
313
+ "name": "with very long option text",
590
314
  "options": {
591
- "name": "contact-prefs",
592
- "idPrefix": "user.profile[contact-prefs]",
315
+ "name": "waste",
316
+ "hint": {
317
+ "text": "Nullam id dolor id nibh ultricies vehicula ut id elit."
318
+ },
593
319
  "fieldset": {
594
320
  "legend": {
595
- "text": "How do you want to be contacted?"
321
+ "text": "Maecenas faucibus mollis interdum?"
596
322
  }
597
323
  },
598
324
  "items": [
599
325
  {
600
- "value": "email",
601
- "text": "Email",
602
- "conditional": {
603
- "html": "<label class=\"govuk-label\" for=\"context-email\">Email address</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"context-email\" type=\"text\" id=\"context-email\">\n"
604
- }
326
+ "value": "nullam",
327
+ "text": "Nullam id dolor id nibh ultricies vehicula ut id elit. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas faucibus mollis interdum. Donec id elit non mi porta gravida at eget metus."
605
328
  },
606
329
  {
607
- "value": "phone",
608
- "text": "Phone",
609
- "conditional": {
610
- "html": "<label class=\"govuk-label\" for=\"contact-phone\">Phone number</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-phone\" type=\"text\" id=\"contact-phone\">\n"
611
- }
330
+ "value": "aenean",
331
+ "text": "Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec sed odio dui. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cras mattis consectetur purus sit amet fermentum."
612
332
  },
613
333
  {
614
- "value": "text",
615
- "text": "Text message",
616
- "conditional": {
617
- "html": "<label class=\"govuk-label\" for=\"contact-text-message\">Mobile phone number</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-text-message\" type=\"text\" id=\"contact-text-message\">\n"
618
- }
334
+ "value": "fusce",
335
+ "text": "Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Etiam porta sem malesuada magna mollis euismod. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. Sed posuere consectetur est at lobortis."
619
336
  }
620
337
  ]
621
338
  },
622
339
  "hidden": false,
623
340
  "description": "",
624
- "previewLayoutModifiers": [],
341
+ "pageTemplateOptions": {},
625
342
  "screenshot": false,
626
- "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n How do you want to be contacted?\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"user.profile[contact-prefs]\" name=\"contact-prefs\" type=\"checkbox\" value=\"email\" data-aria-controls=\"conditional-user.profile[contact-prefs]\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"user.profile[contact-prefs]\">\n Email\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-user.profile[contact-prefs]\">\n <label class=\"govuk-label\" for=\"context-email\">Email address</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"context-email\" type=\"text\" id=\"context-email\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"user.profile[contact-prefs]-2\" name=\"contact-prefs\" type=\"checkbox\" value=\"phone\" data-aria-controls=\"conditional-user.profile[contact-prefs]-2\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"user.profile[contact-prefs]-2\">\n Phone\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-user.profile[contact-prefs]-2\">\n <label class=\"govuk-label\" for=\"contact-phone\">Phone number</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-phone\" type=\"text\" id=\"contact-phone\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"user.profile[contact-prefs]-3\" name=\"contact-prefs\" type=\"checkbox\" value=\"text\" data-aria-controls=\"conditional-user.profile[contact-prefs]-3\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"user.profile[contact-prefs]-3\">\n Text message\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-user.profile[contact-prefs]-3\">\n <label class=\"govuk-label\" for=\"contact-text-message\">Mobile phone number</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-text-message\" type=\"text\" id=\"contact-text-message\">\n </div>\n </div>\n </fieldset>\n</div>"
343
+ "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"waste-hint\">\n <legend class=\"govuk-fieldset__legend\">\n Maecenas faucibus mollis interdum?\n </legend>\n <div id=\"waste-hint\" class=\"govuk-hint\">\n Nullam id dolor id nibh ultricies vehicula ut id elit.\n </div>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste\" name=\"waste\" type=\"checkbox\" value=\"nullam\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste\">\n Nullam id dolor id nibh ultricies vehicula ut id elit. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas faucibus mollis interdum. Donec id elit non mi porta gravida at eget metus.\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste-2\" name=\"waste\" type=\"checkbox\" value=\"aenean\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste-2\">\n Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec sed odio dui. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cras mattis consectetur purus sit amet fermentum.\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"waste-3\" name=\"waste\" type=\"checkbox\" value=\"fusce\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"waste-3\">\n Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Etiam porta sem malesuada magna mollis euismod. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. Sed posuere consectetur est at lobortis.\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
627
344
  },
628
345
  {
629
- "name": "with conditional item checked",
346
+ "name": "with conditional items",
630
347
  "options": {
631
- "name": "how-contacted-checked",
632
- "idPrefix": "how-contacted-checked",
348
+ "name": "with-conditional-items",
349
+ "idPrefix": "how-contacted",
633
350
  "fieldset": {
634
351
  "legend": {
635
352
  "text": "How do you want to be contacted?"
@@ -639,7 +356,6 @@
639
356
  {
640
357
  "value": "email",
641
358
  "text": "Email",
642
- "checked": true,
643
359
  "conditional": {
644
360
  "html": "<label class=\"govuk-label\" for=\"context-email\">Email address</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"context-email\" type=\"text\" id=\"context-email\">\n"
645
361
  }
@@ -662,9 +378,9 @@
662
378
  },
663
379
  "hidden": false,
664
380
  "description": "",
665
- "previewLayoutModifiers": [],
666
- "screenshot": true,
667
- "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n How do you want to be contacted?\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-checked\" name=\"how-contacted-checked\" type=\"checkbox\" value=\"email\" checked data-aria-controls=\"conditional-how-contacted-checked\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-checked\">\n Email\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional\" id=\"conditional-how-contacted-checked\">\n <label class=\"govuk-label\" for=\"context-email\">Email address</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"context-email\" type=\"text\" id=\"context-email\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-checked-2\" name=\"how-contacted-checked\" type=\"checkbox\" value=\"phone\" data-aria-controls=\"conditional-how-contacted-checked-2\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-checked-2\">\n Phone\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-how-contacted-checked-2\">\n <label class=\"govuk-label\" for=\"contact-phone\">Phone number</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-phone\" type=\"text\" id=\"contact-phone\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-checked-3\" name=\"how-contacted-checked\" type=\"checkbox\" value=\"text\" data-aria-controls=\"conditional-how-contacted-checked-3\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-checked-3\">\n Text message\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-how-contacted-checked-3\">\n <label class=\"govuk-label\" for=\"contact-text-message\">Mobile phone number</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-text-message\" type=\"text\" id=\"contact-text-message\">\n </div>\n </div>\n </fieldset>\n</div>"
381
+ "pageTemplateOptions": {},
382
+ "screenshot": false,
383
+ "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n How do you want to be contacted?\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted\" name=\"with-conditional-items\" type=\"checkbox\" value=\"email\" data-aria-controls=\"conditional-how-contacted\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted\">\n Email\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-how-contacted\">\n <label class=\"govuk-label\" for=\"context-email\">Email address</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"context-email\" type=\"text\" id=\"context-email\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-2\" name=\"with-conditional-items\" type=\"checkbox\" value=\"phone\" data-aria-controls=\"conditional-how-contacted-2\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-2\">\n Phone\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-how-contacted-2\">\n <label class=\"govuk-label\" for=\"contact-phone\">Phone number</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-phone\" type=\"text\" id=\"contact-phone\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-3\" name=\"with-conditional-items\" type=\"checkbox\" value=\"text\" data-aria-controls=\"conditional-how-contacted-3\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-3\">\n Text message\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-how-contacted-3\">\n <label class=\"govuk-label\" for=\"contact-text-message\">Mobile phone number</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-text-message\" type=\"text\" id=\"contact-text-message\">\n </div>\n </div>\n </fieldset>\n</div>"
668
384
  },
669
385
  {
670
386
  "name": "with optional form-group classes showing group error",
@@ -706,7 +422,7 @@
706
422
  },
707
423
  "hidden": false,
708
424
  "description": "",
709
- "previewLayoutModifiers": [],
425
+ "pageTemplateOptions": {},
710
426
  "screenshot": false,
711
427
  "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n How do you want to be contacted?\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-checked\" name=\"how-contacted-checked\" type=\"checkbox\" value=\"email\" data-aria-controls=\"conditional-how-contacted-checked\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-checked\">\n Email\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-how-contacted-checked\">\n <label class=\"govuk-label\" for=\"context-email\">Email address</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"context-email\" type=\"text\" id=\"context-email\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-checked-2\" name=\"how-contacted-checked\" type=\"checkbox\" value=\"phone\" checked data-aria-controls=\"conditional-how-contacted-checked-2\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-checked-2\">\n Phone\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional\" id=\"conditional-how-contacted-checked-2\">\n <label class=\"govuk-label\" for=\"contact-phone\">Phone number</label>\n <span id=\"contact-phone-error\" class=\"govuk-error-message\">Problem with input</span>\n <input class=\"govuk-input govuk-input--error govuk-!-width-one-third\" name=\"contact-phone\" type=\"text\" id=\"contact-phone\" aria-describedby=\"contact-phone-error\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-checked-3\" name=\"how-contacted-checked\" type=\"checkbox\" value=\"text\" data-aria-controls=\"conditional-how-contacted-checked-3\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-checked-3\">\n Text message\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-how-contacted-checked-3\">\n <label class=\"govuk-label\" for=\"contact-text-message\">Mobile phone number</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-text-message\" type=\"text\" id=\"contact-text-message\">\n </div>\n </div>\n </fieldset>\n</div>"
712
428
  },
@@ -738,7 +454,7 @@
738
454
  },
739
455
  "hidden": false,
740
456
  "description": "",
741
- "previewLayoutModifiers": [],
457
+ "pageTemplateOptions": {},
742
458
  "screenshot": true,
743
459
  "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n Filter by\n </legend>\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality\" name=\"nationality\" type=\"checkbox\" value=\"a\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality\">\n a thing\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-2\" name=\"nationality\" type=\"checkbox\" value=\"b\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-2\">\n another thing\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-3\" name=\"nationality\" type=\"checkbox\" value=\"c\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-3\">\n this thing\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
744
460
  },
@@ -770,7 +486,7 @@
770
486
  },
771
487
  "hidden": false,
772
488
  "description": "",
773
- "previewLayoutModifiers": [],
489
+ "pageTemplateOptions": {},
774
490
  "screenshot": false,
775
491
  "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n Filter by\n </legend>\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality\" name=\"nationality\" type=\"checkbox\" value=\"nullam\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality\">\n Nullam id dolor id nibh ultricies vehicula ut id elit. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas faucibus mollis interdum. Donec id elit non mi porta gravida at eget metus.\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-2\" name=\"nationality\" type=\"checkbox\" value=\"aenean\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-2\">\n Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec sed odio dui. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cras mattis consectetur purus sit amet fermentum.\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-3\" name=\"nationality\" type=\"checkbox\" value=\"fusce\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-3\">\n Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Etiam porta sem malesuada magna mollis euismod. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. Sed posuere consectetur est at lobortis.\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
776
492
  },
@@ -805,7 +521,7 @@
805
521
  },
806
522
  "hidden": false,
807
523
  "description": "",
808
- "previewLayoutModifiers": [],
524
+ "pageTemplateOptions": {},
809
525
  "screenshot": false,
810
526
  "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"nationality-error\">\n <legend class=\"govuk-fieldset__legend\">\n Filter by\n </legend>\n <p id=\"nationality-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Select a thing\n </p>\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality\" name=\"nationality\" type=\"checkbox\" value=\"a\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality\">\n a thing\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-2\" name=\"nationality\" type=\"checkbox\" value=\"b\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-2\">\n another thing\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-3\" name=\"nationality\" type=\"checkbox\" value=\"c\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-3\">\n this thing\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
811
527
  },
@@ -840,43 +556,10 @@
840
556
  },
841
557
  "hidden": false,
842
558
  "description": "",
843
- "previewLayoutModifiers": [],
559
+ "pageTemplateOptions": {},
844
560
  "screenshot": false,
845
561
  "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n Filter by\n </legend>\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality\" name=\"nationality\" type=\"checkbox\" value=\"a\" aria-describedby=\"nationality-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality\">\n a thing\n </label>\n <div id=\"nationality-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n hint for a thing\n </div>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-2\" name=\"nationality\" type=\"checkbox\" value=\"b\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-2\">\n another thing\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-3\" name=\"nationality\" type=\"checkbox\" value=\"c\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-3\">\n this thing\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
846
562
  },
847
- {
848
- "name": "small with disabled",
849
- "options": {
850
- "idPrefix": "nationality",
851
- "name": "nationality",
852
- "classes": "govuk-checkboxes--small",
853
- "fieldset": {
854
- "legend": {
855
- "text": "Filter by"
856
- }
857
- },
858
- "items": [
859
- {
860
- "value": "a",
861
- "text": "a thing"
862
- },
863
- {
864
- "value": "b",
865
- "text": "another thing"
866
- },
867
- {
868
- "value": "c",
869
- "text": "this thing",
870
- "disabled": true
871
- }
872
- ]
873
- },
874
- "hidden": false,
875
- "description": "",
876
- "previewLayoutModifiers": [],
877
- "screenshot": false,
878
- "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n Filter by\n </legend>\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality\" name=\"nationality\" type=\"checkbox\" value=\"a\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality\">\n a thing\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-2\" name=\"nationality\" type=\"checkbox\" value=\"b\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-2\">\n another thing\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-3\" name=\"nationality\" type=\"checkbox\" value=\"c\" disabled>\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-3\">\n this thing\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
879
- },
880
563
  {
881
564
  "name": "small with conditional reveal",
882
565
  "options": {
@@ -904,7 +587,7 @@
904
587
  },
905
588
  "hidden": false,
906
589
  "description": "",
907
- "previewLayoutModifiers": [],
590
+ "pageTemplateOptions": {},
908
591
  "screenshot": false,
909
592
  "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n How do you want to be contacted?\n </legend>\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted\" name=\"how-contacted\" type=\"checkbox\" value=\"a\" data-aria-controls=\"conditional-how-contacted\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted\">\n a thing\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-how-contacted\">\n <label class=\"govuk-label\" for=\"context-email\">Foo</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"context-email\" type=\"text\" id=\"context-email\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-2\" name=\"how-contacted\" type=\"checkbox\" value=\"b\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-2\">\n another thing\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
910
593
  },
@@ -943,10 +626,87 @@
943
626
  },
944
627
  "hidden": false,
945
628
  "description": "",
946
- "previewLayoutModifiers": [],
947
- "screenshot": true,
629
+ "pageTemplateOptions": {},
630
+ "screenshot": false,
948
631
  "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n Which types of waste do you transport regularly?\n </legend>\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"small-with-divider-and-none\" name=\"small-with-divider-and-none\" type=\"checkbox\" value=\"animal\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"small-with-divider-and-none\">\n Waste from animal carcasses\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"small-with-divider-and-none-2\" name=\"small-with-divider-and-none\" type=\"checkbox\" value=\"mines\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"small-with-divider-and-none-2\">\n Waste from mines or quarries\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"small-with-divider-and-none-3\" name=\"small-with-divider-and-none\" type=\"checkbox\" value=\"farm\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"small-with-divider-and-none-3\">\n Farm or agricultural waste\n </label>\n </div>\n <div class=\"govuk-checkboxes__divider\">or</div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"small-with-divider-and-none-5\" name=\"small-with-divider-and-none\" type=\"checkbox\" value=\"none\" data-behaviour=\"exclusive\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"small-with-divider-and-none-5\">\n None of these\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
949
632
  },
633
+ {
634
+ "name": "with id and name",
635
+ "options": {
636
+ "name": "with-id-and-name",
637
+ "fieldset": {
638
+ "legend": {
639
+ "text": "What is your nationality?"
640
+ }
641
+ },
642
+ "hint": {
643
+ "text": "If you have dual nationality, select all options that are relevant to you."
644
+ },
645
+ "items": [
646
+ {
647
+ "name": "british",
648
+ "id": "item_british",
649
+ "value": "yes",
650
+ "text": "British"
651
+ },
652
+ {
653
+ "name": "irish",
654
+ "id": "item_irish",
655
+ "value": "irish",
656
+ "text": "Irish"
657
+ },
658
+ {
659
+ "name": "custom-name-scottish",
660
+ "text": "Scottish",
661
+ "value": "scottish"
662
+ }
663
+ ]
664
+ },
665
+ "hidden": true,
666
+ "description": "",
667
+ "pageTemplateOptions": {},
668
+ "screenshot": false,
669
+ "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"with-id-and-name-hint\">\n <legend class=\"govuk-fieldset__legend\">\n What is your nationality?\n </legend>\n <div id=\"with-id-and-name-hint\" class=\"govuk-hint\">\n If you have dual nationality, select all options that are relevant to you.\n </div>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"item_british\" name=\"british\" type=\"checkbox\" value=\"yes\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"item_british\">\n British\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"item_irish\" name=\"irish\" type=\"checkbox\" value=\"irish\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"item_irish\">\n Irish\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"with-id-and-name-3\" name=\"custom-name-scottish\" type=\"checkbox\" value=\"scottish\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"with-id-and-name-3\">\n Scottish\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
670
+ },
671
+ {
672
+ "name": "with disabled item",
673
+ "options": {
674
+ "name": "sign-in",
675
+ "fieldset": {
676
+ "legend": {
677
+ "text": "How do you want to sign in?",
678
+ "classes": "govuk-fieldset__legend--l",
679
+ "isPageHeading": true
680
+ }
681
+ },
682
+ "items": [
683
+ {
684
+ "name": "gateway",
685
+ "id": "government-gateway",
686
+ "value": "gov-gateway",
687
+ "text": "Sign in with Government Gateway",
688
+ "hint": {
689
+ "text": "You'll have a user ID if you've registered for Self Assessment or filed a tax return online before."
690
+ }
691
+ },
692
+ {
693
+ "name": "verify",
694
+ "id": "govuk-verify",
695
+ "value": "gov-verify",
696
+ "text": "Sign in with GOV.UK Verify",
697
+ "hint": {
698
+ "text": "You'll have an account if you've already proved your identity with either Barclays, CitizenSafe, Digidentity, Experian, Post Office, Royal Mail or SecureIdentity."
699
+ },
700
+ "disabled": true
701
+ }
702
+ ]
703
+ },
704
+ "hidden": true,
705
+ "description": "",
706
+ "pageTemplateOptions": {},
707
+ "screenshot": false,
708
+ "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n How do you want to sign in?\n </h1>\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"government-gateway\" name=\"gateway\" type=\"checkbox\" value=\"gov-gateway\" aria-describedby=\"government-gateway-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"government-gateway\">\n Sign in with Government Gateway\n </label>\n <div id=\"government-gateway-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n You&#39;ll have a user ID if you&#39;ve registered for Self Assessment or filed a tax return online before.\n </div>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"govuk-verify\" name=\"verify\" type=\"checkbox\" value=\"gov-verify\" disabled aria-describedby=\"govuk-verify-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"govuk-verify\">\n Sign in with GOV.UK Verify\n </label>\n <div id=\"govuk-verify-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n You&#39;ll have an account if you&#39;ve already proved your identity with either Barclays, CitizenSafe, Digidentity, Experian, Post Office, Royal Mail or SecureIdentity.\n </div>\n </div>\n </div>\n </fieldset>\n</div>"
709
+ },
950
710
  {
951
711
  "name": "with idPrefix",
952
712
  "options": {
@@ -965,7 +725,7 @@
965
725
  },
966
726
  "hidden": true,
967
727
  "description": "",
968
- "previewLayoutModifiers": [],
728
+ "pageTemplateOptions": {},
969
729
  "screenshot": false,
970
730
  "html": "<div class=\"govuk-form-group\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality\" name=\"example-name\" type=\"checkbox\" value=\"1\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality\">\n Option 1\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"nationality-2\" name=\"example-name\" type=\"checkbox\" value=\"2\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"nationality-2\">\n Option 2\n </label>\n </div>\n </div>\n</div>"
971
731
  },
@@ -989,7 +749,7 @@
989
749
  },
990
750
  "hidden": true,
991
751
  "description": "",
992
- "previewLayoutModifiers": [],
752
+ "pageTemplateOptions": {},
993
753
  "screenshot": false,
994
754
  "html": "<div class=\"govuk-form-group\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name\" name=\"example-name\" type=\"checkbox\" value=\"1\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name\">\n Option 1\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name-5\" name=\"example-name\" type=\"checkbox\" value=\"2\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name-5\">\n Option 2\n </label>\n </div>\n </div>\n</div>"
995
755
  },
@@ -1011,7 +771,7 @@
1011
771
  },
1012
772
  "hidden": true,
1013
773
  "description": "",
1014
- "previewLayoutModifiers": [],
774
+ "pageTemplateOptions": {},
1015
775
  "screenshot": false,
1016
776
  "html": "<div class=\"govuk-form-group\">\n <div class=\"govuk-checkboxes app-checkboxes--custom-modifier\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name\" name=\"example-name\" type=\"checkbox\" value=\"1\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name\">\n Option 1\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name-2\" name=\"example-name\" type=\"checkbox\" value=\"2\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name-2\">\n Option 2\n </label>\n </div>\n </div>\n</div>"
1017
777
  },
@@ -1041,7 +801,7 @@
1041
801
  },
1042
802
  "hidden": true,
1043
803
  "description": "",
1044
- "previewLayoutModifiers": [],
804
+ "pageTemplateOptions": {},
1045
805
  "screenshot": false,
1046
806
  "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"test-target-element example-name-hint\">\n <legend class=\"govuk-fieldset__legend\">\n Which option?\n </legend>\n <div id=\"example-name-hint\" class=\"govuk-hint\">\n If you have dual nationality, select all options that are relevant to you.\n </div>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name\" name=\"example-name\" type=\"checkbox\" value=\"1\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name\">\n Option 1\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name-2\" name=\"example-name\" type=\"checkbox\" value=\"2\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name-2\">\n Option 2\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
1047
807
  },
@@ -1066,7 +826,7 @@
1066
826
  },
1067
827
  "hidden": true,
1068
828
  "description": "",
1069
- "previewLayoutModifiers": [],
829
+ "pageTemplateOptions": {},
1070
830
  "screenshot": false,
1071
831
  "html": "<div class=\"govuk-form-group\">\n <div class=\"govuk-checkboxes\" data-attribute=\"value\" data-second-attribute=\"second-value\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name\" name=\"example-name\" type=\"checkbox\" value=\"1\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name\">\n Option 1\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name-2\" name=\"example-name\" type=\"checkbox\" value=\"2\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name-2\">\n Option 2\n </label>\n </div>\n </div>\n</div>"
1072
832
  },
@@ -1093,7 +853,7 @@
1093
853
  },
1094
854
  "hidden": true,
1095
855
  "description": "",
1096
- "previewLayoutModifiers": [],
856
+ "pageTemplateOptions": {},
1097
857
  "screenshot": false,
1098
858
  "html": "<div class=\"govuk-form-group\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name\" name=\"example-name\" type=\"checkbox\" value=\"1\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name\">\n Option 1\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name-2\" name=\"example-name\" type=\"checkbox\" value=\"2\" checked>\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name-2\">\n Option 2\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name-3\" name=\"example-name\" type=\"checkbox\" value=\"3\" checked>\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name-3\">\n Option 3\n </label>\n </div>\n </div>\n</div>"
1099
859
  },
@@ -1122,7 +882,7 @@
1122
882
  },
1123
883
  "hidden": true,
1124
884
  "description": "",
1125
- "previewLayoutModifiers": [],
885
+ "pageTemplateOptions": {},
1126
886
  "screenshot": false,
1127
887
  "html": "<div class=\"govuk-form-group\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name\" name=\"example-name\" type=\"checkbox\" value=\"1\" data-attribute=\"ABC\" data-second-attribute=\"DEF\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name\">\n Option 1\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name-2\" name=\"example-name\" type=\"checkbox\" value=\"2\" data-attribute=\"GHI\" data-second-attribute=\"JKL\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name-2\">\n Option 2\n </label>\n </div>\n </div>\n</div>"
1128
888
  },
@@ -1142,7 +902,7 @@
1142
902
  },
1143
903
  "hidden": true,
1144
904
  "description": "",
1145
- "previewLayoutModifiers": [],
905
+ "pageTemplateOptions": {},
1146
906
  "screenshot": false,
1147
907
  "html": "<div class=\"govuk-form-group\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-conditional\" name=\"example-conditional\" type=\"checkbox\" value=\"foo\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-conditional\">\n Foo\n </label>\n </div>\n </div>\n</div>"
1148
908
  },
@@ -1162,7 +922,7 @@
1162
922
  },
1163
923
  "hidden": true,
1164
924
  "description": "",
1165
- "previewLayoutModifiers": [],
925
+ "pageTemplateOptions": {},
1166
926
  "screenshot": false,
1167
927
  "html": "<div class=\"govuk-form-group\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-label-classes\" name=\"example-label-classes\" type=\"checkbox\" value=\"yes\">\n <label class=\"govuk-label govuk-checkboxes__label bold\" for=\"example-label-classes\">\n Yes\n </label>\n </div>\n </div>\n</div>"
1168
928
  },
@@ -1196,10 +956,50 @@
1196
956
  },
1197
957
  "hidden": true,
1198
958
  "description": "",
1199
- "previewLayoutModifiers": [],
959
+ "pageTemplateOptions": {},
1200
960
  "screenshot": false,
1201
961
  "html": "<div class=\"govuk-form-group\">\n <div id=\"example-multiple-hints-hint\" class=\"govuk-hint\">\n If you have dual nationality, select all options that are relevant to you.\n </div>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-multiple-hints\" name=\"example-multiple-hints\" type=\"checkbox\" value=\"british\" aria-describedby=\"example-multiple-hints-hint example-multiple-hints-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-multiple-hints\">\n British\n </label>\n <div id=\"example-multiple-hints-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n Hint for british option here\n </div>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-multiple-hints-2\" name=\"example-multiple-hints\" type=\"checkbox\" value=\"irish\" aria-describedby=\"example-multiple-hints-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-multiple-hints-2\">\n Irish\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-multiple-hints-3\" name=\"example-multiple-hints\" type=\"checkbox\" value=\"other\" aria-describedby=\"example-multiple-hints-hint example-multiple-hints-3-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-multiple-hints-3\">\n Citizen of another country\n </label>\n <div id=\"example-multiple-hints-3-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n Hint for other option here\n </div>\n </div>\n </div>\n</div>"
1202
962
  },
963
+ {
964
+ "name": "with conditional items with special characters",
965
+ "options": {
966
+ "name": "contact-prefs",
967
+ "idPrefix": "user.profile[contact-prefs]",
968
+ "fieldset": {
969
+ "legend": {
970
+ "text": "How do you want to be contacted?"
971
+ }
972
+ },
973
+ "items": [
974
+ {
975
+ "value": "email",
976
+ "text": "Email",
977
+ "conditional": {
978
+ "html": "<label class=\"govuk-label\" for=\"context-email\">Email address</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"context-email\" type=\"text\" id=\"context-email\">\n"
979
+ }
980
+ },
981
+ {
982
+ "value": "phone",
983
+ "text": "Phone",
984
+ "conditional": {
985
+ "html": "<label class=\"govuk-label\" for=\"contact-phone\">Phone number</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-phone\" type=\"text\" id=\"contact-phone\">\n"
986
+ }
987
+ },
988
+ {
989
+ "value": "text",
990
+ "text": "Text message",
991
+ "conditional": {
992
+ "html": "<label class=\"govuk-label\" for=\"contact-text-message\">Mobile phone number</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-text-message\" type=\"text\" id=\"contact-text-message\">\n"
993
+ }
994
+ }
995
+ ]
996
+ },
997
+ "hidden": true,
998
+ "description": "",
999
+ "pageTemplateOptions": {},
1000
+ "screenshot": false,
1001
+ "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n How do you want to be contacted?\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"user.profile[contact-prefs]\" name=\"contact-prefs\" type=\"checkbox\" value=\"email\" data-aria-controls=\"conditional-user.profile[contact-prefs]\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"user.profile[contact-prefs]\">\n Email\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-user.profile[contact-prefs]\">\n <label class=\"govuk-label\" for=\"context-email\">Email address</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"context-email\" type=\"text\" id=\"context-email\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"user.profile[contact-prefs]-2\" name=\"contact-prefs\" type=\"checkbox\" value=\"phone\" data-aria-controls=\"conditional-user.profile[contact-prefs]-2\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"user.profile[contact-prefs]-2\">\n Phone\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-user.profile[contact-prefs]-2\">\n <label class=\"govuk-label\" for=\"contact-phone\">Phone number</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-phone\" type=\"text\" id=\"contact-phone\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"user.profile[contact-prefs]-3\" name=\"contact-prefs\" type=\"checkbox\" value=\"text\" data-aria-controls=\"conditional-user.profile[contact-prefs]-3\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"user.profile[contact-prefs]-3\">\n Text message\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-user.profile[contact-prefs]-3\">\n <label class=\"govuk-label\" for=\"contact-text-message\">Mobile phone number</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-text-message\" type=\"text\" id=\"contact-text-message\">\n </div>\n </div>\n </fieldset>\n</div>"
1002
+ },
1203
1003
  {
1204
1004
  "name": "with error message and hint",
1205
1005
  "options": {
@@ -1228,7 +1028,7 @@
1228
1028
  },
1229
1029
  "hidden": true,
1230
1030
  "description": "",
1231
- "previewLayoutModifiers": [],
1031
+ "pageTemplateOptions": {},
1232
1032
  "screenshot": false,
1233
1033
  "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"example-hint example-error\">\n <legend class=\"govuk-fieldset__legend\">\n What is your nationality?\n </legend>\n <div id=\"example-hint\" class=\"govuk-hint\">\n If you have dual nationality, select all options that are relevant to you.\n </div>\n <p id=\"example-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Please select an option\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example\" name=\"example\" type=\"checkbox\" value=\"british\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example\">\n British\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-2\" name=\"example\" type=\"checkbox\" value=\"irish\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-2\">\n Irish\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
1234
1034
  },
@@ -1261,7 +1061,7 @@
1261
1061
  },
1262
1062
  "hidden": true,
1263
1063
  "description": "",
1264
- "previewLayoutModifiers": [],
1064
+ "pageTemplateOptions": {},
1265
1065
  "screenshot": false,
1266
1066
  "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"test-target-element example-hint example-error\">\n <legend class=\"govuk-fieldset__legend\">\n What is your nationality?\n </legend>\n <div id=\"example-hint\" class=\"govuk-hint\">\n If you have dual nationality, select all options that are relevant to you.\n </div>\n <p id=\"example-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Please select an option\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example\" name=\"example\" type=\"checkbox\" value=\"british\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example\">\n British\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-2\" name=\"example\" type=\"checkbox\" value=\"irish\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-2\">\n Irish\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
1267
1067
  },
@@ -1284,7 +1084,7 @@
1284
1084
  },
1285
1085
  "hidden": true,
1286
1086
  "description": "",
1287
- "previewLayoutModifiers": [],
1087
+ "pageTemplateOptions": {},
1288
1088
  "screenshot": false,
1289
1089
  "html": "<div class=\"govuk-form-group\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name\" name=\"example-name\" type=\"checkbox\" value=\"1\">\n <label class=\"govuk-label govuk-checkboxes__label\" data-attribute=\"value\" data-second-attribute=\"second-value\" for=\"example-name\">\n <b>Option 1</b>\n </label>\n </div>\n </div>\n</div>"
1290
1090
  },
@@ -1318,7 +1118,7 @@
1318
1118
  },
1319
1119
  "hidden": true,
1320
1120
  "description": "",
1321
- "previewLayoutModifiers": [],
1121
+ "pageTemplateOptions": {},
1322
1122
  "screenshot": false,
1323
1123
  "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <fieldset class=\"govuk-fieldset app-fieldset--custom-modifier\" aria-describedby=\"example-name-error\" data-attribute=\"value\" data-second-attribute=\"second-value\">\n <legend class=\"govuk-fieldset__legend\">\n What is your nationality?\n </legend>\n <p id=\"example-name-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Please select an option\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name\" name=\"example-name\" type=\"checkbox\" value=\"british\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name\">\n British\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name-2\" name=\"example-name\" type=\"checkbox\" value=\"irish\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name-2\">\n Irish\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
1324
1124
  },
@@ -1344,7 +1144,7 @@
1344
1144
  },
1345
1145
  "hidden": true,
1346
1146
  "description": "",
1347
- "previewLayoutModifiers": [],
1147
+ "pageTemplateOptions": {},
1348
1148
  "screenshot": false,
1349
1149
  "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n What is your <b>nationality</b>?\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name\" name=\"example-name\" type=\"checkbox\" value=\"british\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name\">\n British\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-name-2\" name=\"example-name\" type=\"checkbox\" value=\"irish\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-name-2\">\n Irish\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
1350
1150
  },
@@ -1353,7 +1153,7 @@
1353
1153
  "options": {
1354
1154
  "describedBy": "test-target-element",
1355
1155
  "name": "t-and-c",
1356
- "errorMessage": {
1156
+ "hint": {
1357
1157
  "text": "Please accept the terms and conditions"
1358
1158
  },
1359
1159
  "items": [
@@ -1365,16 +1165,16 @@
1365
1165
  },
1366
1166
  "hidden": true,
1367
1167
  "description": "",
1368
- "previewLayoutModifiers": [],
1168
+ "pageTemplateOptions": {},
1369
1169
  "screenshot": false,
1370
- "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <p id=\"t-and-c-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Please accept the terms and conditions\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"t-and-c\" name=\"t-and-c\" type=\"checkbox\" value=\"yes\" aria-describedby=\"test-target-element t-and-c-error\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"t-and-c\">\n I agree to the terms and conditions\n </label>\n </div>\n </div>\n</div>"
1170
+ "html": "<div class=\"govuk-form-group\">\n <div id=\"t-and-c-hint\" class=\"govuk-hint\">\n Please accept the terms and conditions\n </div>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"t-and-c\" name=\"t-and-c\" type=\"checkbox\" value=\"yes\" aria-describedby=\"test-target-element t-and-c-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"t-and-c\">\n I agree to the terms and conditions\n </label>\n </div>\n </div>\n</div>"
1371
1171
  },
1372
1172
  {
1373
1173
  "name": "with single option (and hint) set 'aria-describedby' on input, and describedBy",
1374
1174
  "options": {
1375
1175
  "describedBy": "test-target-element",
1376
1176
  "name": "t-and-c-with-hint",
1377
- "errorMessage": {
1177
+ "hint": {
1378
1178
  "text": "Please accept the terms and conditions"
1379
1179
  },
1380
1180
  "items": [
@@ -1389,9 +1189,9 @@
1389
1189
  },
1390
1190
  "hidden": true,
1391
1191
  "description": "",
1392
- "previewLayoutModifiers": [],
1192
+ "pageTemplateOptions": {},
1393
1193
  "screenshot": false,
1394
- "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <p id=\"t-and-c-with-hint-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Please accept the terms and conditions\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"t-and-c-with-hint\" name=\"t-and-c-with-hint\" type=\"checkbox\" value=\"yes\" aria-describedby=\"test-target-element t-and-c-with-hint-error t-and-c-with-hint-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"t-and-c-with-hint\">\n I agree to the terms and conditions\n </label>\n <div id=\"t-and-c-with-hint-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n Go on, you know you want to!\n </div>\n </div>\n </div>\n</div>"
1194
+ "html": "<div class=\"govuk-form-group\">\n <div id=\"t-and-c-with-hint-hint\" class=\"govuk-hint\">\n Please accept the terms and conditions\n </div>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"t-and-c-with-hint\" name=\"t-and-c-with-hint\" type=\"checkbox\" value=\"yes\" aria-describedby=\"test-target-element t-and-c-with-hint-hint t-and-c-with-hint-item-hint\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"t-and-c-with-hint\">\n I agree to the terms and conditions\n </label>\n <div id=\"t-and-c-with-hint-item-hint\" class=\"govuk-hint govuk-checkboxes__hint\">\n Go on, you know you want to!\n </div>\n </div>\n </div>\n</div>"
1395
1195
  },
1396
1196
  {
1397
1197
  "name": "with error and idPrefix",
@@ -1410,7 +1210,7 @@
1410
1210
  },
1411
1211
  "hidden": true,
1412
1212
  "description": "",
1413
- "previewLayoutModifiers": [],
1213
+ "pageTemplateOptions": {},
1414
1214
  "screenshot": false,
1415
1215
  "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <p id=\"id-prefix-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Please select an option\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"id-prefix\" name=\"name-of-checkboxes\" type=\"checkbox\" value=\"animal\" aria-describedby=\"id-prefix-error\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"id-prefix\">\n Waste from animal carcasses\n </label>\n </div>\n </div>\n</div>"
1416
1216
  },
@@ -1440,10 +1240,51 @@
1440
1240
  },
1441
1241
  "hidden": true,
1442
1242
  "description": "",
1443
- "previewLayoutModifiers": [],
1243
+ "pageTemplateOptions": {},
1444
1244
  "screenshot": false,
1445
1245
  "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"test-target-element example-error\">\n <legend class=\"govuk-fieldset__legend\">\n What is your nationality?\n </legend>\n <p id=\"example-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Please select an option\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example\" name=\"example\" type=\"checkbox\" value=\"british\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example\">\n British\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"example-2\" name=\"example\" type=\"checkbox\" value=\"irish\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"example-2\">\n Irish\n </label>\n </div>\n </div>\n </fieldset>\n</div>"
1446
1246
  },
1247
+ {
1248
+ "name": "with conditional item checked",
1249
+ "options": {
1250
+ "name": "how-contacted-checked",
1251
+ "idPrefix": "how-contacted-checked",
1252
+ "fieldset": {
1253
+ "legend": {
1254
+ "text": "How do you want to be contacted?"
1255
+ }
1256
+ },
1257
+ "items": [
1258
+ {
1259
+ "value": "email",
1260
+ "text": "Email",
1261
+ "checked": true,
1262
+ "conditional": {
1263
+ "html": "<label class=\"govuk-label\" for=\"context-email\">Email address</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"context-email\" type=\"text\" id=\"context-email\">\n"
1264
+ }
1265
+ },
1266
+ {
1267
+ "value": "phone",
1268
+ "text": "Phone",
1269
+ "conditional": {
1270
+ "html": "<label class=\"govuk-label\" for=\"contact-phone\">Phone number</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-phone\" type=\"text\" id=\"contact-phone\">\n"
1271
+ }
1272
+ },
1273
+ {
1274
+ "value": "text",
1275
+ "text": "Text message",
1276
+ "conditional": {
1277
+ "html": "<label class=\"govuk-label\" for=\"contact-text-message\">Mobile phone number</label>\n<input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-text-message\" type=\"text\" id=\"contact-text-message\">\n"
1278
+ }
1279
+ }
1280
+ ]
1281
+ },
1282
+ "hidden": true,
1283
+ "description": "",
1284
+ "pageTemplateOptions": {},
1285
+ "screenshot": false,
1286
+ "html": "<div class=\"govuk-form-group\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend\">\n How do you want to be contacted?\n </legend>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-checked\" name=\"how-contacted-checked\" type=\"checkbox\" value=\"email\" checked data-aria-controls=\"conditional-how-contacted-checked\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-checked\">\n Email\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional\" id=\"conditional-how-contacted-checked\">\n <label class=\"govuk-label\" for=\"context-email\">Email address</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"context-email\" type=\"text\" id=\"context-email\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-checked-2\" name=\"how-contacted-checked\" type=\"checkbox\" value=\"phone\" data-aria-controls=\"conditional-how-contacted-checked-2\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-checked-2\">\n Phone\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-how-contacted-checked-2\">\n <label class=\"govuk-label\" for=\"contact-phone\">Phone number</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-phone\" type=\"text\" id=\"contact-phone\">\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"how-contacted-checked-3\" name=\"how-contacted-checked\" type=\"checkbox\" value=\"text\" data-aria-controls=\"conditional-how-contacted-checked-3\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"how-contacted-checked-3\">\n Text message\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-how-contacted-checked-3\">\n <label class=\"govuk-label\" for=\"contact-text-message\">Mobile phone number</label>\n <input class=\"govuk-input govuk-!-width-one-third\" name=\"contact-text-message\" type=\"text\" id=\"contact-text-message\">\n </div>\n </div>\n </fieldset>\n</div>"
1287
+ },
1447
1288
  {
1448
1289
  "name": "item checked overrides values",
1449
1290
  "options": {
@@ -1470,7 +1311,7 @@
1470
1311
  },
1471
1312
  "hidden": true,
1472
1313
  "description": "",
1473
- "previewLayoutModifiers": [],
1314
+ "pageTemplateOptions": {},
1474
1315
  "screenshot": false,
1475
1316
  "html": "<div class=\"govuk-form-group\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"colors\" name=\"colors\" type=\"checkbox\" value=\"red\" checked>\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"colors\">\n Red\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"colors-2\" name=\"colors\" type=\"checkbox\" value=\"green\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"colors-2\">\n Green\n </label>\n </div>\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"colors-3\" name=\"colors\" type=\"checkbox\" value=\"blue\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"colors-3\">\n Blue\n </label>\n </div>\n </div>\n</div>"
1476
1317
  },
@@ -1490,7 +1331,7 @@
1490
1331
  },
1491
1332
  "hidden": true,
1492
1333
  "description": "",
1493
- "previewLayoutModifiers": [],
1334
+ "pageTemplateOptions": {},
1494
1335
  "screenshot": false,
1495
1336
  "html": "<div class=\"govuk-form-group\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"conditional\" name=\"conditional\" type=\"checkbox\" value=\"other\" data-aria-controls=\"conditional-conditional\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"conditional\">\n Other\n </label>\n </div>\n <div class=\"govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden\" id=\"conditional-conditional\">\n <label class=\"govuk-label\" for=\"conditional-textarea\">textarea</label>\n<textarea class=\"govuk-textarea govuk-!-width-one-third\" name=\"conditional-textarea\" id=\"conditional-textarea\">\ntest\n</textarea>\n </div>\n </div>\n</div>"
1496
1337
  }