govuk_publishing_components 60.0.2 → 60.2.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 (386) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-page-views.js +11 -1
  4. data/app/assets/javascripts/govuk_publishing_components/components/feedback.js +0 -14
  5. data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +570 -595
  6. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +5 -0
  7. data/app/views/govuk_publishing_components/audit/_applications.html.erb +13 -13
  8. data/app/views/govuk_publishing_components/audit/_component_contents.html.erb +2 -2
  9. data/app/views/govuk_publishing_components/audit/_components.html.erb +17 -19
  10. data/app/views/govuk_publishing_components/audit/_items_in_applications.html.erb +3 -3
  11. data/app/views/govuk_publishing_components/audit/show.html.erb +5 -6
  12. data/app/views/govuk_publishing_components/component_guide/component_doc/_call.html.erb +2 -2
  13. data/app/views/govuk_publishing_components/component_guide/example.html.erb +4 -5
  14. data/app/views/govuk_publishing_components/component_guide/index.html.erb +9 -10
  15. data/app/views/govuk_publishing_components/component_guide/preview.html.erb +1 -1
  16. data/app/views/govuk_publishing_components/component_guide/show.html.erb +9 -10
  17. data/app/views/govuk_publishing_components/components/_accordion.html.erb +5 -5
  18. data/app/views/govuk_publishing_components/components/_action_link.html.erb +2 -2
  19. data/app/views/govuk_publishing_components/components/_add_another.html.erb +3 -3
  20. data/app/views/govuk_publishing_components/components/_attachment.html.erb +4 -4
  21. data/app/views/govuk_publishing_components/components/_back_link.html.erb +1 -1
  22. data/app/views/govuk_publishing_components/components/_back_to_top_link.html.erb +1 -1
  23. data/app/views/govuk_publishing_components/components/_big_number.html.erb +1 -1
  24. data/app/views/govuk_publishing_components/components/_cards.html.erb +4 -4
  25. data/app/views/govuk_publishing_components/components/_character_count.html.erb +1 -1
  26. data/app/views/govuk_publishing_components/components/_checkboxes.html.erb +3 -3
  27. data/app/views/govuk_publishing_components/components/_contents_list.html.erb +6 -9
  28. data/app/views/govuk_publishing_components/components/_contents_list_with_body.html.erb +2 -2
  29. data/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +2 -2
  30. data/app/views/govuk_publishing_components/components/_contextual_footer.html.erb +1 -1
  31. data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +6 -6
  32. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +6 -6
  33. data/app/views/govuk_publishing_components/components/_date_input.html.erb +5 -5
  34. data/app/views/govuk_publishing_components/components/_details.html.erb +1 -1
  35. data/app/views/govuk_publishing_components/components/_devolved_nations.html.erb +1 -1
  36. data/app/views/govuk_publishing_components/components/_document_list.html.erb +8 -8
  37. data/app/views/govuk_publishing_components/components/_emergency_banner.html.erb +3 -3
  38. data/app/views/govuk_publishing_components/components/_feedback.html.erb +2 -2
  39. data/app/views/govuk_publishing_components/components/_fieldset.html.erb +3 -4
  40. data/app/views/govuk_publishing_components/components/_figure.html.erb +1 -1
  41. data/app/views/govuk_publishing_components/components/_file_upload.html.erb +5 -5
  42. data/app/views/govuk_publishing_components/components/_glance_metric.html.erb +1 -1
  43. data/app/views/govuk_publishing_components/components/_global_banner.html.erb +2 -2
  44. data/app/views/govuk_publishing_components/components/_google_tag_manager_script.html.erb +7 -7
  45. data/app/views/govuk_publishing_components/components/_govspeak_html_publication.html.erb +1 -1
  46. data/app/views/govuk_publishing_components/components/_image_card.html.erb +4 -5
  47. data/app/views/govuk_publishing_components/components/_input.html.erb +14 -14
  48. data/app/views/govuk_publishing_components/components/_intervention.html.erb +4 -6
  49. data/app/views/govuk_publishing_components/components/_label.html.erb +1 -1
  50. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +6 -9
  51. data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +2 -2
  52. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +15 -15
  53. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +16 -19
  54. data/app/views/govuk_publishing_components/components/_machine_readable_metadata.html.erb +18 -17
  55. data/app/views/govuk_publishing_components/components/_metadata.html.erb +4 -4
  56. data/app/views/govuk_publishing_components/components/_notice.html.erb +1 -1
  57. data/app/views/govuk_publishing_components/components/_option_select.html.erb +8 -9
  58. data/app/views/govuk_publishing_components/components/_organisation_logo.html.erb +1 -1
  59. data/app/views/govuk_publishing_components/components/_password_input.html.erb +17 -17
  60. data/app/views/govuk_publishing_components/components/_phase_banner.html.erb +2 -3
  61. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +6 -8
  62. data/app/views/govuk_publishing_components/components/_print_link.html.erb +3 -3
  63. data/app/views/govuk_publishing_components/components/_published_dates.html.erb +6 -7
  64. data/app/views/govuk_publishing_components/components/_radio.html.erb +7 -8
  65. data/app/views/govuk_publishing_components/components/_related_navigation.html.erb +4 -6
  66. data/app/views/govuk_publishing_components/components/_reorderable_list.html.erb +7 -7
  67. data/app/views/govuk_publishing_components/components/_search_with_autocomplete.html.erb +2 -2
  68. data/app/views/govuk_publishing_components/components/_secondary_navigation.html.erb +1 -1
  69. data/app/views/govuk_publishing_components/components/_select.html.erb +1 -1
  70. data/app/views/govuk_publishing_components/components/_select_with_search.html.erb +1 -1
  71. data/app/views/govuk_publishing_components/components/_share_links.html.erb +18 -18
  72. data/app/views/govuk_publishing_components/components/_signup_link.html.erb +3 -3
  73. data/app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb +3 -3
  74. data/app/views/govuk_publishing_components/components/_skip_link.html.erb +2 -3
  75. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +9 -10
  76. data/app/views/govuk_publishing_components/components/_step_by_step_nav_header.html.erb +2 -3
  77. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +5 -9
  78. data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +8 -8
  79. data/app/views/govuk_publishing_components/components/_summary_list.html.erb +1 -1
  80. data/app/views/govuk_publishing_components/components/_table.html.erb +3 -3
  81. data/app/views/govuk_publishing_components/components/_tag.html.erb +1 -1
  82. data/app/views/govuk_publishing_components/components/_textarea.html.erb +4 -4
  83. data/app/views/govuk_publishing_components/components/_translation_nav.html.erb +1 -2
  84. data/app/views/govuk_publishing_components/components/_warning_text.html.erb +2 -2
  85. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_document.html.erb +1 -1
  86. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_external.html.erb +1 -1
  87. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_generic.html.erb +2 -2
  88. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_html.html.erb +1 -1
  89. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_pdf.html.erb +1 -1
  90. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_spreadsheet.html.erb +3 -3
  91. data/app/views/govuk_publishing_components/components/cross_service_header/_one_login_header.html.erb +10 -10
  92. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +7 -3
  93. data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +10 -10
  94. data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +6 -8
  95. data/app/views/govuk_publishing_components/components/govuk_logo/_govuk_logo_crown_only.html.erb +1 -2
  96. data/app/views/govuk_publishing_components/components/layout_for_public/_account-layout.html.erb +2 -2
  97. data/app/views/govuk_publishing_components/components/layout_for_public/_account-navigation.html.erb +2 -2
  98. data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +1 -1
  99. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +2 -3
  100. data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +1 -1
  101. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +4 -4
  102. data/app/views/govuk_publishing_components/components/search/_search_icon.html.erb +2 -3
  103. data/app/views/layouts/govuk_publishing_components/application.html.erb +3 -3
  104. data/lib/govuk_publishing_components/presenters/component_wrapper_helper.rb +1 -1
  105. data/lib/govuk_publishing_components/presenters/heading_helper.rb +3 -3
  106. data/lib/govuk_publishing_components/presenters/meta_tags.rb +1 -0
  107. data/lib/govuk_publishing_components/version.rb +1 -1
  108. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +99 -73
  109. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
  110. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +99 -73
  111. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -1
  112. data/node_modules/govuk-frontend/dist/govuk/common/configuration.mjs +29 -2
  113. data/node_modules/govuk-frontend/dist/govuk/common/configuration.mjs.map +1 -1
  114. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
  115. data/node_modules/govuk-frontend/dist/govuk/common/index.mjs +5 -11
  116. data/node_modules/govuk-frontend/dist/govuk/common/index.mjs.map +1 -1
  117. data/node_modules/govuk-frontend/dist/govuk/component.mjs.map +1 -1
  118. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js +13 -11
  119. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js.map +1 -1
  120. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs +13 -11
  121. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -1
  122. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs +4 -4
  123. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs.map +1 -1
  124. data/node_modules/govuk-frontend/dist/govuk/components/accordion/fixtures.json +102 -97
  125. data/node_modules/govuk-frontend/dist/govuk/components/back-link/fixtures.json +21 -32
  126. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/fixtures.json +25 -45
  127. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-default.html +6 -0
  128. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js +7 -5
  129. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js.map +1 -1
  130. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs +7 -5
  131. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs.map +1 -1
  132. data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs.map +1 -1
  133. data/node_modules/govuk-frontend/dist/govuk/components/button/fixtures.json +66 -210
  134. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +10 -8
  135. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js.map +1 -1
  136. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs +10 -8
  137. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs.map +1 -1
  138. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs +1 -1
  139. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs.map +1 -1
  140. data/node_modules/govuk-frontend/dist/govuk/components/character-count/fixtures.json +72 -86
  141. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js +10 -5
  142. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js.map +1 -1
  143. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs +10 -5
  144. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs.map +1 -1
  145. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs.map +1 -1
  146. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/fixtures.json +305 -464
  147. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-default.html +24 -19
  148. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-divider-and-none.html +2 -4
  149. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-divider-none-and-conditional-items.html +2 -4
  150. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-error-message.html +12 -3
  151. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/{template-with-fieldset-and-error-message.html → template-with-hint.html} +5 -5
  152. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-hints-on-items.html +2 -4
  153. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-pre-checked-values.html +36 -27
  154. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-very-long-option-text.html +2 -5
  155. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/fixtures.json +115 -79
  156. data/node_modules/govuk-frontend/dist/govuk/components/date-input/fixtures.json +147 -159
  157. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-default.html +30 -22
  158. data/node_modules/govuk-frontend/dist/govuk/components/details/fixtures.json +22 -22
  159. data/node_modules/govuk-frontend/dist/govuk/components/error-message/fixtures.json +10 -10
  160. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js +8 -12
  161. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js.map +1 -1
  162. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs +8 -12
  163. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs.map +1 -1
  164. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs +2 -2
  165. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs.map +1 -1
  166. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/fixtures.json +21 -21
  167. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js +9 -7
  168. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js.map +1 -1
  169. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs +9 -7
  170. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs.map +1 -1
  171. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs.map +1 -1
  172. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/fixtures.json +19 -19
  173. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/fixtures.json +19 -19
  174. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js +10 -8
  175. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js.map +1 -1
  176. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs +10 -8
  177. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs.map +1 -1
  178. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs +1 -1
  179. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs.map +1 -1
  180. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/fixtures.json +99 -150
  181. data/node_modules/govuk-frontend/dist/govuk/components/footer/fixtures.json +53 -64
  182. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +10 -4
  183. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss.map +1 -1
  184. data/node_modules/govuk-frontend/dist/govuk/components/header/fixtures.json +155 -103
  185. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +12 -6
  186. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js.map +1 -1
  187. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +12 -6
  188. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs.map +1 -1
  189. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs +1 -0
  190. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs.map +1 -1
  191. data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width-with-navigation.html +0 -1
  192. data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width.html +0 -1
  193. data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-html.html +0 -3
  194. data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-text-without-link.html +0 -3
  195. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-full-width-border.html +0 -1
  196. data/node_modules/govuk-frontend/dist/govuk/components/hint/fixtures.json +7 -7
  197. data/node_modules/govuk-frontend/dist/govuk/components/input/fixtures.json +158 -179
  198. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/fixtures.json +7 -7
  199. data/node_modules/govuk-frontend/dist/govuk/components/label/fixtures.json +18 -18
  200. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/fixtures.json +74 -108
  201. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js +7 -5
  202. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js.map +1 -1
  203. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs +7 -5
  204. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs.map +1 -1
  205. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs.map +1 -1
  206. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-text-as-html.html +7 -1
  207. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +4 -0
  208. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss.map +1 -1
  209. data/node_modules/govuk-frontend/dist/govuk/components/pagination/fixtures.json +80 -98
  210. data/node_modules/govuk-frontend/dist/govuk/components/pagination/macro-options.json +4 -4
  211. data/node_modules/govuk-frontend/dist/govuk/components/panel/fixtures.json +22 -22
  212. data/node_modules/govuk-frontend/dist/govuk/components/password-input/fixtures.json +53 -48
  213. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js +9 -7
  214. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js.map +1 -1
  215. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs +9 -7
  216. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs.map +1 -1
  217. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs.map +1 -1
  218. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/fixtures.json +8 -8
  219. data/node_modules/govuk-frontend/dist/govuk/components/radios/fixtures.json +213 -328
  220. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js +10 -5
  221. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js.map +1 -1
  222. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs +10 -5
  223. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs.map +1 -1
  224. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.mjs.map +1 -1
  225. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-default.html +18 -16
  226. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-hint.html +24 -0
  227. data/node_modules/govuk-frontend/dist/govuk/components/select/fixtures.json +99 -115
  228. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +72 -5
  229. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss.map +1 -1
  230. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json +228 -62
  231. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/macro-options.json +6 -0
  232. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js +11 -6
  233. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js.map +1 -1
  234. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs +11 -6
  235. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs.map +1 -1
  236. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs.map +1 -1
  237. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/{template-with-navigation-with-an-active-item.html → template-inverse.html} +7 -2
  238. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-a-single-navigation-item-and-collapsenavigationonmobile-set-to-true.html +38 -0
  239. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-a-single-navigation-item.html +35 -0
  240. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-collapsenavigationonmobile-set-to-false.html +60 -0
  241. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template.njk +3 -0
  242. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +1 -2
  243. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss.map +1 -1
  244. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/fixtures.json +10 -10
  245. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js +12 -19
  246. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js.map +1 -1
  247. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs +12 -19
  248. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs.map +1 -1
  249. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs +3 -9
  250. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs.map +1 -1
  251. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/fixtures.json +282 -518
  252. data/node_modules/govuk-frontend/dist/govuk/components/table/fixtures.json +75 -75
  253. data/node_modules/govuk-frontend/dist/govuk/components/tabs/fixtures.json +44 -39
  254. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js +13 -14
  255. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js.map +1 -1
  256. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs +13 -14
  257. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs.map +1 -1
  258. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs +3 -3
  259. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs.map +1 -1
  260. data/node_modules/govuk-frontend/dist/govuk/components/tag/fixtures.json +14 -26
  261. data/node_modules/govuk-frontend/dist/govuk/components/task-list/fixtures.json +14 -71
  262. data/node_modules/govuk-frontend/dist/govuk/components/textarea/fixtures.json +81 -81
  263. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/fixtures.json +9 -9
  264. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +5 -2
  265. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss.map +1 -1
  266. data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs +5 -3
  267. data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs.map +1 -1
  268. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
  269. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
  270. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
  271. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js.map +1 -1
  272. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +31 -2
  273. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss.map +1 -1
  274. data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss +4 -1
  275. data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss.map +1 -1
  276. data/node_modules/govuk-frontend/dist/govuk/i18n.mjs +4 -2
  277. data/node_modules/govuk-frontend/dist/govuk/i18n.mjs.map +1 -1
  278. data/node_modules/govuk-frontend/dist/govuk/init.mjs +52 -43
  279. data/node_modules/govuk-frontend/dist/govuk/init.mjs.map +1 -1
  280. data/node_modules/govuk-frontend/dist/govuk/macros/logo.njk +2 -2
  281. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +2 -2
  282. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss.map +1 -1
  283. data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss +13 -0
  284. data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss.map +1 -1
  285. data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +1 -1
  286. data/node_modules/govuk-frontend/package.json +13 -13
  287. metadata +27 -102
  288. data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-with-focusable-elements-inside.html +0 -26
  289. data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-with-one-section-open.html +0 -30
  290. data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-with-translations.html +0 -30
  291. data/node_modules/govuk-frontend/dist/govuk/components/back-link/template-with-custom-link.html +0 -1
  292. data/node_modules/govuk-frontend/dist/govuk/components/back-link/template-with-custom-text.html +0 -1
  293. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-multiple-levels.html +0 -16
  294. data/node_modules/govuk-frontend/dist/govuk/components/button/template-input-disabled.html +0 -1
  295. data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-disabled.html +0 -3
  296. data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-link.html +0 -3
  297. data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-start.html +0 -6
  298. data/node_modules/govuk-frontend/dist/govuk/components/button/template-prevent-double-click.html +0 -3
  299. data/node_modules/govuk-frontend/dist/govuk/components/button/template-secondary-disabled.html +0 -3
  300. data/node_modules/govuk-frontend/dist/govuk/components/button/template-secondary-link.html +0 -3
  301. data/node_modules/govuk-frontend/dist/govuk/components/button/template-start-link.html +0 -6
  302. data/node_modules/govuk-frontend/dist/govuk/components/button/template-warning-disabled.html +0 -3
  303. data/node_modules/govuk-frontend/dist/govuk/components/button/template-warning-link.html +0 -3
  304. data/node_modules/govuk-frontend/dist/govuk/components/button/template-with-active-state.html +0 -3
  305. data/node_modules/govuk-frontend/dist/govuk/components/button/template-with-focus-state.html +0 -3
  306. data/node_modules/govuk-frontend/dist/govuk/components/button/template-with-hover-state.html +0 -3
  307. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-custom-textarea-description.html +0 -9
  308. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-error.html +0 -12
  309. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-translations.html +0 -9
  310. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-disabled.html +0 -27
  311. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-a-medium-legend.html +0 -33
  312. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-item-checked.html +0 -39
  313. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-items-with-special-characters.html +0 -39
  314. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-disabled-item.html +0 -29
  315. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-error-message-and-hints-on-items.html +0 -39
  316. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-id-and-name.html +0 -30
  317. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-single-option-and-hint-set-aria-describedby-on-input.html +0 -16
  318. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-single-option-set-aria-describedby-on-input.html +0 -13
  319. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-without-fieldset.html +0 -22
  320. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-client-side-implementation.html +0 -60
  321. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-autocomplete-values.html +0 -36
  322. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-default-items.html +0 -36
  323. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-input-attributes.html +0 -36
  324. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-optional-form-group-classes.html +0 -36
  325. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template-translated.html +0 -5
  326. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-direct-media-capture.html +0 -6
  327. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-image-files-only.html +0 -6
  328. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-multiple-files.html +0 -6
  329. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-disabled.html +0 -6
  330. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-disabled.html +0 -13
  331. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-with-optional-form-group-classes.html +0 -6
  332. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-meta.html +0 -56
  333. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-label.html +0 -59
  334. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-navigation-label.html +0 -59
  335. data/node_modules/govuk-frontend/dist/govuk/components/input/template-disabled.html +0 -6
  336. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-autocapitalize-turned-off.html +0 -6
  337. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-autocomplete-attribute.html +0 -6
  338. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-optional-form-group-classes.html +0 -6
  339. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-pattern-attribute.html +0 -6
  340. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-prefix-and-long-suffix.html +0 -10
  341. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-spellcheck-disabled.html +0 -6
  342. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-spellcheck-enabled.html +0 -6
  343. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-auto-focus-disabled-with-type-as-success.html +0 -12
  344. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-auto-focus-explicitly-enabled-with-type-as-success.html +0 -12
  345. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-custom-tabindex.html +0 -12
  346. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-paragraph-as-html-heading.html +0 -10
  347. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-rolealert-overridden-to-roleregion-with-type-as-success.html +0 -12
  348. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-success-with-custom-html.html +0 -16
  349. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-a-list.html +0 -16
  350. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-accessible-labels-on-item-links.html +0 -39
  351. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-navigation-landmark.html +0 -39
  352. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-prev-and-next-only-in-a-different-language.html +0 -22
  353. data/node_modules/govuk-frontend/dist/govuk/components/panel/template-custom-heading-level.html +0 -8
  354. data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-new-password-autocomplete.html +0 -11
  355. data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-translations.html +0 -11
  356. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-prechecked-using-value.html +0 -16
  357. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-prechecked.html +0 -19
  358. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-inline-extreme.html +0 -69
  359. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-disabled.html +0 -27
  360. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-a-medium-legend.html +0 -24
  361. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-items-with-special-characters.html +0 -39
  362. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-disabled.html +0 -29
  363. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-idprefix.html +0 -16
  364. data/node_modules/govuk-frontend/dist/govuk/components/select/template-id.html +0 -7
  365. data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-no-items.html +0 -7
  366. data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-optional-form-group-classes.html +0 -10
  367. data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-selected-value.html +0 -10
  368. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-a-custom-header-level.html +0 -28
  369. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-check-your-answers.html +0 -98
  370. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-overridden-widths.html +0 -58
  371. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-translated.html +0 -51
  372. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-with-no-first-action.html +0 -58
  373. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-with-some-actions.html +0 -45
  374. data/node_modules/govuk-frontend/dist/govuk/components/table/template-with-small-text-modifier-for-tables-with-a-lot-of-data.html +0 -19
  375. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-blue.html +0 -3
  376. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-example-with-3-states.html +0 -49
  377. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-autocomplete-attribute.html +0 -6
  378. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-optional-form-group-classes.html +0 -6
  379. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-spellcheck-disabled.html +0 -6
  380. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-spellcheck-enabled.html +0 -6
  381. /data/node_modules/govuk-frontend/dist/govuk/components/date-input/{template-complete-question.html → template-with-items.html} +0 -0
  382. /data/node_modules/govuk-frontend/dist/govuk/components/table/{template-table-with-head-and-caption.html → template-with-head-and-caption.html} +0 -0
  383. /data/node_modules/govuk-frontend/dist/govuk/components/table/{template-table-with-head.html → template-with-head.html} +0 -0
  384. /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
  385. /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
  386. /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
@@ -57,7 +57,7 @@
57
57
  <!DOCTYPE html>
58
58
  <html class="govuk-template govuk-template--rebranded" lang="<%= html_lang %>">
59
59
  <head>
60
- <meta charset="utf-8" />
60
+ <meta charset="utf-8">
61
61
  <title><%= title %></title>
62
62
 
63
63
  <%= javascript_include_tag "govuk_publishing_components/vendor/lux/lux-measurer", { async: true } %>
@@ -66,26 +66,26 @@
66
66
  {
67
67
  async: true,
68
68
  data: {
69
- "lux-reporter-script": path_to_javascript("govuk_publishing_components/vendor/lux/lux-reporter")
70
- }
69
+ "lux-reporter-script": path_to_javascript("govuk_publishing_components/vendor/lux/lux-reporter"),
70
+ },
71
71
  } %>
72
72
 
73
- <% # Used for Google Analytics 4 debugging. Must be placed before load-analytics script. %>
74
- <meta name="govuk:components_gem_version" content="<%= GovukPublishingComponents::VERSION %>" />
73
+ <%# Used for Google Analytics 4 debugging. Must be placed before load-analytics script. %>
74
+ <meta name="govuk:components_gem_version" content="<%= GovukPublishingComponents::VERSION %>">
75
75
  <%= javascript_include_tag "govuk_publishing_components/load-analytics", type: "module" %>
76
76
 
77
77
  <%= csrf_meta_tags %>
78
78
 
79
79
  <%= stylesheet_link_tag "application", media: "all" %>
80
- <link rel="icon" sizes="48x48" href="<%= asset_path 'favicon.ico' %>">
81
- <link rel="icon" sizes="any" href="<%= asset_path 'favicon.svg' %>" type="image/svg+xml">
82
- <link rel="mask-icon" href="<%= asset_path 'govuk-icon-mask.svg' %>" color="#1d70b8">
83
- <link rel="apple-touch-icon" href="<%= asset_path 'govuk-icon-180.png' %>">
80
+ <link rel="icon" sizes="48x48" href="<%= asset_path "favicon.ico" %>">
81
+ <link rel="icon" sizes="any" href="<%= asset_path "favicon.svg" %>" type="image/svg+xml">
82
+ <link rel="mask-icon" href="<%= asset_path "govuk-icon-mask.svg" %>" color="#1d70b8">
83
+ <link rel="apple-touch-icon" href="<%= asset_path "govuk-icon-180.png" %>">
84
84
 
85
- <meta name="theme-color" content="#1d70b8" />
85
+ <meta name="theme-color" content="#1d70b8">
86
86
  <meta name="viewport" content="width=device-width, initial-scale=1">
87
87
 
88
- <% # The default og:image is added below :head so that scrapers see any custom metatags first, and this is just a fallback %>
88
+ <%# The default og:image is added below :head so that scrapers see any custom metatags first, and this is just a fallback %>
89
89
  <meta property="og:image" content="<%= asset_url("govuk-opengraph-image.png", host: Plek.website_root) %>">
90
90
 
91
91
  <%= yield :head %>
@@ -93,10 +93,10 @@
93
93
  <%= tag.body class: body_css_classes do %>
94
94
  <%= javascript_tag nonce: true do -%>
95
95
  document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');
96
- <% end -%>
96
+ <% end %>
97
97
  <%= render "govuk_publishing_components/components/cookie_banner", layout_helper.cookie_banner_data %>
98
98
  <%= render "govuk_publishing_components/components/skip_link", {
99
- href: "#content"
99
+ href: "#content",
100
100
  } %>
101
101
  <% unless omit_header %>
102
102
  <% if show_cross_service_header %>
@@ -162,9 +162,9 @@
162
162
  meta: layout_helper.footer_meta,
163
163
  } %>
164
164
  <% end %>
165
- <%= javascript_include_tag 'application', type: "module" %>
165
+ <%= javascript_include_tag "application", type: "module" %>
166
166
  <% if GovukPublishingComponents::Config.use_es6_components %>
167
- <%= javascript_include_tag 'es6-components', type: "module" %>
167
+ <%= javascript_include_tag "es6-components", type: "module" %>
168
168
  <% end %>
169
169
  <% end %>
170
170
  </html>
@@ -45,7 +45,7 @@
45
45
  <div class="gem-c-layout-super-navigation-header__container govuk-clearfix">
46
46
  <div class="govuk-width-container transparent-bottom-border">
47
47
  <%= content_tag(:div, {
48
- class: header_logo_classes
48
+ class: header_logo_classes,
49
49
  }) do %>
50
50
  <%= link_to logo_link, {
51
51
  class: header_link_classes,
@@ -59,13 +59,13 @@
59
59
  "index_link": 1,
60
60
  "index_section": 0,
61
61
  "index_section_count": 2,
62
- "index_total": 1
63
- }.to_json
62
+ "index_total": 1,
63
+ }.to_json,
64
64
  },
65
65
  id: "logo",
66
66
  aria: {
67
67
  label: logo_link_title,
68
- }
68
+ },
69
69
  } do %>
70
70
  <%= render "govuk_publishing_components/components/govuk_logo/govuk_logo" %>
71
71
  <% end %>
@@ -74,8 +74,7 @@
74
74
  <nav
75
75
  aria-labelledby="super-navigation-menu-heading"
76
76
  class="gem-c-layout-super-navigation-header__content govuk-!-display-none-print"
77
- data-module="super-navigation-mega-menu"
78
- >
77
+ data-module="super-navigation-mega-menu">
79
78
  <h2 id="super-navigation-menu-heading" class="govuk-visually-hidden">
80
79
  <%= navigation_menu_heading %>
81
80
  </h2>
@@ -88,14 +87,14 @@
88
87
 
89
88
  <div class="govuk-width-container gem-c-layout-super-navigation-header__button-width-container">
90
89
  <%= content_tag(:div, {
91
- class: button_container_classes
90
+ class: button_container_classes,
92
91
  }) do %>
93
92
  <div class="gem-c-layout-super-navigation-header__navigation-item">
94
93
  <%= link_to link[:href], {
95
94
  class: item_link_classes,
96
95
  } do %>
97
96
  <% content_tag(:span, {
98
- class: item_link_inner_classes
97
+ class: item_link_inner_classes,
99
98
  }) do %>
100
99
  <%= link[:label] %>
101
100
  <% end %>
@@ -119,8 +118,8 @@
119
118
  text: link[:label],
120
119
  index_section: 1,
121
120
  index_section_count: 2,
122
- section: link[:label]
123
- }
121
+ section: link[:label],
122
+ },
124
123
  },
125
124
  hidden: true,
126
125
  id: "super-navigation-menu-toggle",
@@ -150,9 +149,9 @@
150
149
  "text": "Search",
151
150
  "index_section": 2,
152
151
  "index_section_count": 2,
153
- "section": "Search"
152
+ "section": "Search",
154
153
  }.to_json
155
- }"
154
+ }",
156
155
  },
157
156
  hidden: true,
158
157
  type: "button",
@@ -167,15 +166,13 @@
167
166
  %>
168
167
  <span
169
168
  aria-hidden="true"
170
- class="gem-c-layout-super-navigation-header__navigation-top-toggle-close-icon"
171
- focusable="false"
172
- >
169
+ class="gem-c-layout-super-navigation-header__navigation-top-toggle-close-icon">
173
170
  &times;
174
171
  </span>
175
172
  <% end %>
176
173
 
177
174
  <%= link_to "/search", {
178
- class: search_item_link_classes
175
+ class: search_item_link_classes,
179
176
  } do %>
180
177
  <span class="govuk-visually-hidden">
181
178
  <%= search_text %>
@@ -234,8 +231,8 @@
234
231
  "index_section_count": 3,
235
232
  "index_total": index_total,
236
233
  "section": column[:label],
237
- }
238
- }
234
+ },
235
+ },
239
236
  } %>
240
237
  <%= tag.p item[:description], class: "gem-c-layout-super-navigation-header__navigation-second-item-description" if has_description %>
241
238
  </li>
@@ -274,7 +271,7 @@
274
271
  role: "search",
275
272
  aria: {
276
273
  label: "Site-wide",
277
- }
274
+ },
278
275
  ) do %>
279
276
  <%= render "govuk_publishing_components/components/search_with_autocomplete", {
280
277
  name: "keywords",
@@ -1,9 +1,10 @@
1
1
  <% local_assigns[:logo_url] = image_url("govuk_publishing_components/govuk-logo.png") %>
2
- <% local_assigns[:image_placeholders] = [
3
- image_url("govuk_publishing_components/govuk-schema-placeholder-1x1.png"),
4
- image_url("govuk_publishing_components/govuk-schema-placeholder-4x3.png"),
5
- image_url("govuk_publishing_components/govuk-schema-placeholder-16x9.png"),
6
- ] %>
2
+ <% local_assigns[:image_placeholders] =
3
+ [
4
+ image_url("govuk_publishing_components/govuk-schema-placeholder-1x1.png"),
5
+ image_url("govuk_publishing_components/govuk-schema-placeholder-4x3.png"),
6
+ image_url("govuk_publishing_components/govuk-schema-placeholder-16x9.png"),
7
+ ] %>
7
8
  <% local_assigns[:request_path] = request.path %>
8
9
  <% page = GovukPublishingComponents::Presenters::Page.new(local_assigns) %>
9
10
  <% structured_data = GovukPublishingComponents::Presenters::SchemaOrg.new(page).structured_data %>
@@ -12,21 +13,21 @@
12
13
  <%= raw(json_escape(JSON.pretty_generate(structured_data))) %>
13
14
  </script>
14
15
 
15
- <link rel="canonical" href="<%= page.canonical_url %>" />
16
+ <link rel="canonical" href="<%= page.canonical_url %>">
16
17
 
17
- <meta property="og:site_name" content="GOV.UK" />
18
- <meta property="og:type" content="article" />
19
- <meta property="og:url" content="<%= page.canonical_url %>" />
20
- <meta property="og:title" content="<% if page.withdrawn? %>[Withdrawn] <% end %><%= page.title %>" />
21
- <meta property="og:description" content="<%= strip_tags(page.description) %>" />
18
+ <meta property="og:site_name" content="GOV.UK">
19
+ <meta property="og:type" content="article">
20
+ <meta property="og:url" content="<%= page.canonical_url %>">
21
+ <meta property="og:title" content="<% if page.withdrawn? %>[Withdrawn] <% end %><%= page.title %>">
22
+ <meta property="og:description" content="<%= strip_tags(page.description) %>">
22
23
 
23
24
  <% if page.has_image? %>
24
- <meta property="og:image" content="<%= page.image_url %>" />
25
- <meta property="og:image:alt" content="<%= page.image_alt_text %>" />
25
+ <meta property="og:image" content="<%= page.image_url %>">
26
+ <meta property="og:image:alt" content="<%= page.image_alt_text %>">
26
27
 
27
- <meta name="twitter:card" content="summary_large_image" />
28
- <meta name="twitter:image" content="<%= page.image_url %>" />
29
- <meta name="twitter:image:alt" content="<%= page.image_alt_text %>" />
28
+ <meta name="twitter:card" content="summary_large_image">
29
+ <meta name="twitter:image" content="<%= page.image_url %>">
30
+ <meta name="twitter:image:alt" content="<%= page.image_alt_text %>">
30
31
  <% else %>
31
- <meta name="twitter:card" content="summary" />
32
+ <meta name="twitter:card" content="summary">
32
33
  <% end %>
@@ -44,13 +44,13 @@
44
44
  <% if from.any? %>
45
45
  <dt class="gem-c-metadata__term"><%= t("components.metadata.from") %>:</dt>
46
46
  <dd class="gem-c-metadata__definition" data-module="gem-toggle">
47
- <%= render 'govuk_publishing_components/components/metadata/sentence', items: from, toggle_id: "from-#{SecureRandom.hex(4)}" %>
47
+ <%= render "govuk_publishing_components/components/metadata/sentence", items: from, toggle_id: "from-#{SecureRandom.hex(4)}" %>
48
48
  </dd>
49
49
  <% end %>
50
50
  <% if part_of.any? %>
51
51
  <dt class="gem-c-metadata__term"><%= t("components.metadata.part_of") %>:</dt>
52
52
  <dd class="gem-c-metadata__definition" data-module="gem-toggle">
53
- <%= render 'govuk_publishing_components/components/metadata/sentence', items: part_of, toggle_id: "part-of-#{SecureRandom.hex(4)}" %>
53
+ <%= render "govuk_publishing_components/components/metadata/sentence", items: part_of, toggle_id: "part-of-#{SecureRandom.hex(4)}" %>
54
54
  </dd>
55
55
  <% end %>
56
56
  <% if local_assigns.include?(:history) %>
@@ -88,8 +88,8 @@
88
88
  data-module="gem-toggle ga4-link-tracker"
89
89
  data-ga4-track-links-only
90
90
  data-ga4-link="<%= ga4_object %>"
91
- <% end%>>
92
- <%= render 'govuk_publishing_components/components/metadata/sentence', items: definition, toggle_id: "#{index}-#{SecureRandom.hex(4)}" %>
91
+ <% end %>>
92
+ <%= render "govuk_publishing_components/components/metadata/sentence", items: definition, toggle_id: "#{index}-#{SecureRandom.hex(4)}" %>
93
93
  </dd>
94
94
  <% end %>
95
95
  <% end %>
@@ -45,7 +45,7 @@
45
45
 
46
46
  <%= description if description %>
47
47
  <% if govspeak_data_attributes %>
48
- <%= render 'govuk_publishing_components/components/govspeak', govspeak_data_attributes %>
48
+ <%= render "govuk_publishing_components/components/govspeak", govspeak_data_attributes %>
49
49
  <% end %>
50
50
  <% end %>
51
51
  <% end %>
@@ -22,9 +22,8 @@
22
22
  type: "text",
23
23
  aria: {
24
24
  describedby: checkboxes_count_id,
25
- controls: checkboxes_id
26
- }
27
- %>
25
+ controls: checkboxes_id,
26
+ } %>
28
27
  <% end %>
29
28
  <% filter_element = CGI::escapeHTML(filter) %>
30
29
  <% end %>
@@ -47,8 +46,8 @@
47
46
  <h3 class="gem-c-option-select__heading js-container-heading">
48
47
  <div class="gem-c-option-select__toggle js-container-toggle">
49
48
  <span class="gem-c-option-select__title js-container-button" id="<%= title_id %>"><%= title %></span>
50
- <svg version="1.1" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="0" height="0" class="gem-c-option-select__icon gem-c-option-select__icon--up" aria-hidden="true" focusable="false"><path d="m798.16 609.84l-256-256c-16.683-16.683-43.691-16.683-60.331 0l-256 256c-16.683 16.683-16.683 43.691 0 60.331s43.691 16.683 60.331 0l225.84-225.84 225.84 225.84c16.683 16.683 43.691 16.683 60.331 0s16.683-43.691 0-60.331z"/></svg>
51
- <svg version="1.1" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="0" height="0" class="gem-c-option-select__icon gem-c-option-select__icon--down" aria-hidden="true" focusable="false"><path d="m225.84 414.16l256 256c16.683 16.683 43.691 16.683 60.331 0l256-256c16.683-16.683 16.683-43.691 0-60.331s-43.691-16.683-60.331 0l-225.84 225.84-225.84-225.84c-16.683-16.683-43.691-16.683-60.331 0s-16.683 43.691 0 60.331z"/></svg>
49
+ <svg version="1.1" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="0" height="0" class="gem-c-option-select__icon gem-c-option-select__icon--up" aria-hidden="true" focusable="false"><path d="m798.16 609.84l-256-256c-16.683-16.683-43.691-16.683-60.331 0l-256 256c-16.683 16.683-16.683 43.691 0 60.331s43.691 16.683 60.331 0l225.84-225.84 225.84 225.84c16.683 16.683 43.691 16.683 60.331 0s16.683-43.691 0-60.331z" /></svg>
50
+ <svg version="1.1" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="0" height="0" class="gem-c-option-select__icon gem-c-option-select__icon--down" aria-hidden="true" focusable="false"><path d="m225.84 414.16l256 256c16.683 16.683 43.691 16.683 60.331 0l256-256c16.683-16.683 16.683-43.691 0-60.331s-43.691-16.683-60.331 0l-225.84 225.84-225.84-225.84c-16.683-16.683-43.691-16.683-60.331 0s-16.683 43.691 0 60.331z" /></svg>
52
51
  </div>
53
52
  </h3>
54
53
 
@@ -58,9 +57,9 @@
58
57
  <span id="<%= checkboxes_count_id %>"
59
58
  class="gem-c-option-select__count govuk-visually-hidden"
60
59
  aria-live="polite"
61
- data-single="<%= t('components.option_select.found_single') %>"
62
- data-multiple="<%= t('components.option_select.found_multiple') %>"
63
- data-selected="<%= t('components.option_select.selected') %>"></span>
60
+ data-single="<%= t("components.option_select.found_single") %>"
61
+ data-multiple="<%= t("components.option_select.found_multiple") %>"
62
+ data-selected="<%= t("components.option_select.selected") %>"></span>
64
63
  <% end %>
65
64
  <%= render "govuk_publishing_components/components/checkboxes", {
66
65
  name: "#{key}[]",
@@ -69,7 +68,7 @@
69
68
  small: true,
70
69
  visually_hide_heading: true,
71
70
  no_hint_text: true,
72
- items: options
71
+ items: options,
73
72
  } %>
74
73
  </div>
75
74
  <% end %>
@@ -21,7 +21,7 @@
21
21
 
22
22
  container_classes = [
23
23
  logo_helper.logo_container_class,
24
- brand_helper.border_color_class
24
+ brand_helper.border_color_class,
25
25
  ]
26
26
  container_classes << "gem-c-organisation-logo__container--inline" if inline
27
27
  %>
@@ -25,35 +25,35 @@
25
25
  "i18n.password-shown-announcement": password_shown_announcement,
26
26
  "i18n.password-hidden-announcement": password_hidden_announcement,
27
27
  })
28
- component_helper.add_class('govuk-form-group')
29
- component_helper.add_class('govuk-form-group--error') if error_text
30
- component_helper.add_class('govuk-password-input')
31
- component_helper.add_class('gem-c-password-input')
28
+ component_helper.add_class("govuk-form-group")
29
+ component_helper.add_class("govuk-form-group--error") if error_text
30
+ component_helper.add_class("govuk-password-input")
31
+ component_helper.add_class("gem-c-password-input")
32
32
 
33
33
  uid = SecureRandom.hex(4)
34
34
 
35
- label_for = uid + '-password-input'
35
+ label_for = uid + "-password-input"
36
36
 
37
- input_id = uid + '-password-input'
37
+ input_id = uid + "-password-input"
38
38
 
39
- aria_controls = uid + '-password-input'
39
+ aria_controls = uid + "-password-input"
40
40
 
41
41
  input_classes = %w(govuk-input govuk-password-input__input govuk-js-password-input-input)
42
42
 
43
43
  if error_text
44
- name << '-input-with-error-message'
45
- label_for << '-with-error-message'
46
- input_id << '-with-error-message'
47
- input_classes << 'govuk-input--error'
48
- aria_controls << '-with-error-message'
49
- paragraph_id = uid + '-password-input-with-error-message-error'
44
+ name << "-input-with-error-message"
45
+ label_for << "-with-error-message"
46
+ input_id << "-with-error-message"
47
+ input_classes << "govuk-input--error"
48
+ aria_controls << "-with-error-message"
49
+ paragraph_id = uid + "-password-input-with-error-message-error"
50
50
  end
51
51
  %>
52
52
 
53
53
  <%= tag.div(**component_helper.all_attributes) do %>
54
54
  <%= render "govuk_publishing_components/components/label", {
55
55
  text: label_text,
56
- html_for: label_for
56
+ html_for: label_for,
57
57
  } %>
58
58
  <% if error_text %>
59
59
  <p id="<%= paragraph_id %>" class="govuk-error-message">
@@ -71,19 +71,19 @@
71
71
  autocomplete: "current-password",
72
72
  autocapitalize: "none",
73
73
  aria: {
74
- describedby: paragraph_id
74
+ describedby: paragraph_id,
75
75
  }) %>
76
76
 
77
77
  <%= tag.button(
78
78
  type: "button",
79
79
  class: "govuk-button govuk-button--secondary govuk-password-input__toggle govuk-js-password-input-toggle",
80
80
  data: {
81
- module: "govuk-button"
81
+ module: "govuk-button",
82
82
  },
83
83
  hidden: true,
84
84
  aria: {
85
85
  controls: aria_controls,
86
- label: button_show_password_aria_label
86
+ label: button_show_password_aria_label,
87
87
  }) do %>
88
88
  <%= button_show_password_text %>
89
89
  <% end %>
@@ -7,7 +7,7 @@ message ||= nil
7
7
  inverse ||= false
8
8
  disable_ga4 ||= false
9
9
 
10
- unless message.present?
10
+ if message.blank?
11
11
  if phase == "beta"
12
12
  message = raw("This part of GOV.UK is being rebuilt &ndash; <a class=\"govuk-link\" href=\"/help/beta\">find out what beta means</a>")
13
13
  elsif phase == "alpha"
@@ -29,10 +29,9 @@ unless disable_ga4
29
29
  event_name: "navigation",
30
30
  type: "phase banner",
31
31
  section: Nokogiri::HTML(message).text,
32
- }.to_json
32
+ }.to_json,
33
33
  })
34
34
  end
35
-
36
35
  %>
37
36
 
38
37
  <%= tag.div(**component_helper.all_attributes) do %>
@@ -14,21 +14,20 @@
14
14
  <%
15
15
  title = previous_page[:title] || t("components.previous_and_next_navigation.previous")
16
16
  link_text_classes = %w[govuk-pagination__link-title]
17
- link_text_classes << "govuk-pagination__link-title--decorated" unless previous_page[:label].present?
17
+ link_text_classes << "govuk-pagination__link-title--decorated" if previous_page[:label].blank?
18
18
  %>
19
19
  <div class="govuk-pagination__prev">
20
20
  <a class="govuk-link govuk-pagination__link"
21
21
  href="<%= previous_page[:url] %>"
22
22
  rel="prev"
23
23
  <% unless disable_ga4 %>
24
- data-ga4-link = "<%= {
24
+ data-ga4-link="<%= {
25
25
  event_name: "navigation",
26
26
  type: "previous and next",
27
27
  text: previous_page[:label] || title,
28
28
  section: "Previous",
29
29
  }.to_json %>"
30
- <% end %>
31
- >
30
+ <% end %>>
32
31
  <svg class="govuk-pagination__icon govuk-pagination__icon--prev" xmlns="http://www.w3.org/2000/svg" height="13" width="15" aria-hidden="true" focusable="false" viewBox="0 0 15 13">
33
32
  <path d="m6.5938-0.0078125-6.7266 6.7266 6.7441 6.4062 1.377-1.449-4.1856-3.9768h12.896v-2h-12.984l4.2931-4.293-1.414-1.414z"></path>
34
33
  </svg>
@@ -45,21 +44,20 @@
45
44
  <%
46
45
  title = next_page[:title] || t("components.previous_and_next_navigation.next")
47
46
  link_text_classes = %w[govuk-pagination__link-title]
48
- link_text_classes << "govuk-pagination__link-title--decorated" unless next_page[:label].present?
47
+ link_text_classes << "govuk-pagination__link-title--decorated" if next_page[:label].blank?
49
48
  %>
50
49
  <div class="govuk-pagination__next">
51
50
  <a class="govuk-link govuk-pagination__link"
52
51
  href="<%= next_page[:url] %>"
53
52
  rel="next"
54
53
  <% unless disable_ga4 %>
55
- data-ga4-link = "<%= {
54
+ data-ga4-link="<%= {
56
55
  event_name: "navigation",
57
56
  type: "previous and next",
58
57
  text: next_page[:label] || title,
59
58
  section: "Next",
60
59
  }.to_json %>"
61
- <% end %>
62
- >
60
+ <% end %>>
63
61
  <svg class="govuk-pagination__icon govuk-pagination__icon--next" xmlns="http://www.w3.org/2000/svg" height="13" width="15" aria-hidden="true" focusable="false" viewBox="0 0 15 13">
64
62
  <path d="m8.107-0.0078125-1.4136 1.414 4.2926 4.293h-12.986v2h12.896l-4.1855 3.9766 1.377 1.4492 6.7441-6.4062-6.7246-6.7266z"></path>
65
63
  </svg>
@@ -1,7 +1,7 @@
1
1
  <%
2
2
  add_gem_component_stylesheet("print-link")
3
3
 
4
- text ||= t('components.print_link.text')
4
+ text ||= t("components.print_link.text")
5
5
  href ||= nil
6
6
  child_data_attributes ||= {}
7
7
  require_js ||= href.nil?
@@ -21,7 +21,7 @@
21
21
  <% if require_js %>
22
22
  <%= content_tag(:button, text, {
23
23
  class: child_classes,
24
- data: child_data_attributes
24
+ data: child_data_attributes,
25
25
  }) %>
26
26
  <% else %>
27
27
  <%= link_to(
@@ -30,7 +30,7 @@
30
30
  class: child_classes,
31
31
  rel: "alternate",
32
32
  data: child_data_attributes,
33
- role: "button"
33
+ role: "button",
34
34
  ) %>
35
35
  <% end %>
36
36
  <% end %>
@@ -16,24 +16,23 @@
16
16
  %>
17
17
  <% if published || last_updated %>
18
18
  <%= tag.div(**component_helper.all_attributes) do %>
19
- <h2 class="govuk-visually-hidden"><%= t('components.published_dates.hidden_heading') %></h2>
19
+ <h2 class="govuk-visually-hidden"><%= t("components.published_dates.hidden_heading") %></h2>
20
20
  <% if published %>
21
- <div><%= t('components.published_dates.published', date: published) %></div>
21
+ <div><%= t("components.published_dates.published", date: published) %></div>
22
22
  <% end %>
23
23
  <% if last_updated %>
24
- <%= t('components.published_dates.last_updated', date: last_updated) %>
24
+ <%= t("components.published_dates.last_updated", date: last_updated) %>
25
25
  <% if link_to_history && history.empty? %>
26
- <span aria-hidden="true">— </span><a href="#history" class="gem-c-published-dates__history-link govuk-link"><%= t('components.published_dates.see_all_updates', locale: :en) %></a>
26
+ <span aria-hidden="true">— </span><a href="#history" class="gem-c-published-dates__history-link govuk-link"><%= t("components.published_dates.see_all_updates", locale: :en) %></a>
27
27
  <% elsif history.any? %>
28
28
  <a href="#full-history"
29
29
  class="gem-c-published-dates__toggle govuk-link"
30
30
  data-controls="full-history"
31
31
  data-expanded="false"
32
- data-toggled-text="<span aria-hidden='true'>‐ </span><%= t('components.published_dates.hide_all_updates', locale: :en) %>"
32
+ data-toggled-text="<span aria-hidden='true'>‐ </span><%= t("components.published_dates.hide_all_updates", locale: :en) %>"
33
33
  data-module="ga4-event-tracker"
34
34
  data-ga4-event="<%= {event_name: "select_content", type: "content history", section: "Footer"}.to_json %>"
35
- data-ga4-expandable
36
- ><span aria-hidden="true">+ </span><%= t('components.published_dates.show_all_updates', locale: :en) %></a>
35
+ data-ga4-expandable><span aria-hidden="true">+ </span><%= t("components.published_dates.show_all_updates", locale: :en) %></a>
37
36
  <div class="gem-c-published-dates__change-history js-hidden" id="full-history">
38
37
  <ol class="gem-c-published-dates__list">
39
38
  <% history.each do |change| %>
@@ -17,7 +17,7 @@
17
17
  inline ||= false
18
18
  heading_level = shared_helper.get_heading_level
19
19
  heading_classes = %w(govuk-fieldset__heading)
20
- heading_classes << "gem-c-radio__heading-text" if heading_level == 'h1'
20
+ heading_classes << "gem-c-radio__heading-text" if heading_level == "h1"
21
21
 
22
22
  if (shared_helper.valid_heading_size?(heading_size))
23
23
  size = heading_size
@@ -69,7 +69,7 @@
69
69
  <% if hint %>
70
70
  <%= render "govuk_publishing_components/components/hint", {
71
71
  id: hint_id,
72
- text: hint
72
+ text: hint,
73
73
  } %>
74
74
  <% end %>
75
75
 
@@ -83,11 +83,11 @@
83
83
 
84
84
  <%= content_tag :div, class: radio_classes,
85
85
  data: {
86
- module: ('govuk-radios' if has_conditional)
86
+ module: ("govuk-radios" if has_conditional),
87
87
  } do %>
88
88
  <% items.each_with_index do |item, index| %>
89
89
  <% if item === :or %>
90
- <%= tag.div t('components.radio.or'), class: "govuk-radios__divider" %>
90
+ <%= tag.div t("components.radio.or"), class: "govuk-radios__divider" %>
91
91
  <% else %>
92
92
  <%
93
93
  label_id = item[:id] ? item[:id] : "#{id_prefix}-#{index}"
@@ -110,18 +110,17 @@
110
110
  id: label_id,
111
111
  type: "radio",
112
112
  aria: {
113
- describedby: label_hint_id
113
+ describedby: label_hint_id,
114
114
  },
115
115
  data: data_attrs,
116
- }
117
- %>
116
+ } %>
118
117
  <%= render "govuk_publishing_components/components/label", {
119
118
  hint_id: label_hint_id,
120
119
  html_for: label_id,
121
120
  is_radio_label: true,
122
121
  hint_text: item[:hint_text],
123
122
  text: item[:text],
124
- bold: item[:bold]
123
+ bold: item[:bold],
125
124
  } %>
126
125
  <% end %>
127
126
 
@@ -20,12 +20,10 @@
20
20
  class="gem-c-related-navigation__main-heading"
21
21
  <%= shared_helper.t_lang(
22
22
  "components.related_#{local_assigns[:context]}_navigation.related_content",
23
- default: 'components.related_navigation.related_content'
24
- )
25
- %>
26
- >
23
+ default: "components.related_navigation.related_content",
24
+ ) %>>
27
25
  <%= t("components.related_#{local_assigns[:context]}_navigation.related_content",
28
- default: t('components.related_navigation.related_content')) %>
26
+ default: t("components.related_navigation.related_content")) %>
29
27
  </h2>
30
28
  <% end %>
31
29
 
@@ -35,7 +33,7 @@
35
33
 
36
34
  <% section_index += 1 %>
37
35
 
38
- <%= render 'govuk_publishing_components/components/related_navigation/section',
36
+ <%= render "govuk_publishing_components/components/related_navigation/section",
39
37
  related_nav_helper: related_nav_helper,
40
38
  shared_helper: shared_helper,
41
39
  section_title: section_title,