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
@@ -37,7 +37,7 @@
37
37
  <%= tag.nav(**component_helper.all_attributes) do %>
38
38
  <%= content_tag(
39
39
  :h2, {class: "gem-c-contents-list__title"}.merge(
40
- title_fallback == "en" ? {:lang => "en",} : {}
40
+ title_fallback == "en" ? {:lang => "en"} : {},
41
41
  )
42
42
  ) do %>
43
43
  <%= title || t("components.contents_list.contents") %>
@@ -52,14 +52,12 @@
52
52
  unless disable_ga4
53
53
  ga4_data[:event_name] = cl_helper.get_ga4_event_name(contents_item[:href]) if contents_item[:href]
54
54
  ga4_data[:index_link] = index_link
55
- end
56
- %>
55
+ end %>
57
56
  <%= link_to_if !contents_item[:active], link_text, contents_item[:href],
58
57
  class: link_classes,
59
58
  data: {
60
- ga4_link: (!disable_ga4 ? ga4_data.to_json : nil)
61
- }
62
- %>
59
+ ga4_link: (!disable_ga4 ? ga4_data.to_json : nil),
60
+ } %>
63
61
  <% index_link += 1 unless disable_ga4 %>
64
62
  <% if contents_item[:items] && contents_item[:items].any? %>
65
63
  <ol class="gem-c-contents-list__nested-list">
@@ -75,9 +73,8 @@
75
73
  <%= link_to_if !nested_contents_item[:active], nested_contents_item[:text], nested_contents_item[:href],
76
74
  class: link_classes,
77
75
  data: {
78
- ga4_link: (!disable_ga4 ? ga4_data.to_json : nil)
79
- }
80
- %>
76
+ ga4_link: (!disable_ga4 ? ga4_data.to_json : nil),
77
+ } %>
81
78
  </li>
82
79
  <% index_link += 1 unless disable_ga4 %>
83
80
  <% end %>
@@ -12,14 +12,14 @@
12
12
  <%= tag.div(**component_helper.all_attributes) do %>
13
13
  <% if contents.any? %>
14
14
  <div class="gem-c-contents-list-with-body__list-container">
15
- <%= render 'govuk_publishing_components/components/contents_list', contents: contents %>
15
+ <%= render "govuk_publishing_components/components/contents_list", contents: contents %>
16
16
  </div>
17
17
  <% end %>
18
18
  <%= block %>
19
19
  <% if contents.any? %>
20
20
  <div data-sticky-element class="gem-c-contents-list-with-body__link-wrapper">
21
21
  <div class="gem-c-contents-list-with-body__link-container">
22
- <%= render 'govuk_publishing_components/components/back_to_top_link', href: "#contents" %>
22
+ <%= render "govuk_publishing_components/components/back_to_top_link", href: "#contents" %>
23
23
  </div>
24
24
  </div>
25
25
  <% end %>
@@ -11,10 +11,10 @@
11
11
 
12
12
  <%= tag.div(**component_helper.all_attributes) do %>
13
13
  <% if breadcrumb_selector.step_by_step %>
14
- <%= render 'govuk_publishing_components/components/step_by_step_nav_header', breadcrumb_selector.breadcrumbs %>
14
+ <%= render "govuk_publishing_components/components/step_by_step_nav_header", breadcrumb_selector.breadcrumbs %>
15
15
  <% elsif breadcrumb_selector.breadcrumbs %>
16
16
  <div class="govuk-!-display-none-print">
17
- <%= render 'govuk_publishing_components/components/breadcrumbs',
17
+ <%= render "govuk_publishing_components/components/breadcrumbs",
18
18
  breadcrumbs: breadcrumb_selector.breadcrumbs,
19
19
  inverse: inverse,
20
20
  collapse_on_mobile: collapse_on_mobile %>
@@ -9,7 +9,7 @@
9
9
  <% unless navigation.content_tagged_to_current_step_by_step? %>
10
10
  <%= tag.div(**component_helper.all_attributes) do %>
11
11
  <%# Rendering related navigation because no step by step list %>
12
- <%= render 'govuk_publishing_components/components/related_navigation',
12
+ <%= render "govuk_publishing_components/components/related_navigation",
13
13
  content_item: content_item,
14
14
  disable_ga4: disable_ga4,
15
15
  context: :footer %>
@@ -15,28 +15,28 @@
15
15
  <%= tag.div(**component_helper.all_attributes) do %>
16
16
  <% if navigation.content_tagged_to_a_reasonable_number_of_step_by_steps? %>
17
17
  <%# Rendering step by step related items because there are a few but not too many of them %>
18
- <%= render 'govuk_publishing_components/components/step_by_step_nav_related', links: navigation.step_nav_helper.related_links, disable_ga4: disable_ga4 %>
18
+ <%= render "govuk_publishing_components/components/step_by_step_nav_related", links: navigation.step_nav_helper.related_links, disable_ga4: disable_ga4 %>
19
19
  <% end %>
20
20
 
21
21
  <% if navigation.content_tagged_to_current_step_by_step? %>
22
22
  <%# Rendering step by step sidebar because there's 1 step by step list %>
23
- <%= render 'govuk_publishing_components/components/step_by_step_nav', navigation.step_nav_helper.sidebar %>
23
+ <%= render "govuk_publishing_components/components/step_by_step_nav", navigation.step_nav_helper.sidebar %>
24
24
  <% else %>
25
25
  <%# Rendering related navigation sidebar because no step by step list %>
26
- <%= render 'govuk_publishing_components/components/related_navigation', content_item: content_item, context: :sidebar, disable_ga4: disable_ga4, ga4_tracking_counts: ga4_tracking_counts %>
26
+ <%= render "govuk_publishing_components/components/related_navigation", content_item: content_item, context: :sidebar, disable_ga4: disable_ga4, ga4_tracking_counts: ga4_tracking_counts %>
27
27
  <% end %>
28
28
 
29
29
  <% if navigation.content_tagged_to_other_step_by_steps? %>
30
30
  <%# Rendering step by step related items because there are a few but not too many of them %>
31
- <%= render 'govuk_publishing_components/components/step_by_step_nav_related', {
31
+ <%= render "govuk_publishing_components/components/step_by_step_nav_related", {
32
32
  pretitle: t("components.contextual_sidebar.pretitle"),
33
33
  links: navigation.step_nav_helper.also_part_of_step_nav,
34
34
  always_display_as_list: true,
35
- disable_ga4: disable_ga4
35
+ disable_ga4: disable_ga4,
36
36
  } %>
37
37
  <% end %>
38
38
 
39
39
  <% if show_ukraine_cta %>
40
- <%= render 'govuk_publishing_components/components/contextual_sidebar/ukraine_cta', content_item: content_item, disable_ga4: disable_ga4, ga4_tracking_counts: ga4_tracking_counts %>
40
+ <%= render "govuk_publishing_components/components/contextual_sidebar/ukraine_cta", content_item: content_item, disable_ga4: disable_ga4, ga4_tracking_counts: ga4_tracking_counts %>
41
41
  <% end %>
42
42
  <% end %>
@@ -1,7 +1,7 @@
1
1
  <%
2
2
  add_gem_component_stylesheet("cookie-banner")
3
3
 
4
- id ||= 'global-cookie-message'
4
+ id ||= "global-cookie-message"
5
5
  title ||= t("components.cookie_banner.title")
6
6
  text ||= t("components.cookie_banner.text")
7
7
  if text.kind_of?(Array)
@@ -61,12 +61,12 @@
61
61
  <%= render "govuk_publishing_components/components/button", {
62
62
  name: "cookies",
63
63
  text: services_cookies.dig(:yes, :text) || "Yes",
64
- data_attributes: { "accept-cookies": "true", }.merge(services_cookies.dig(:yes, :data_attributes) || {})
64
+ data_attributes: { "accept-cookies": "true" }.merge(services_cookies.dig(:yes, :data_attributes) || {}),
65
65
  } %>
66
66
  <%= render "govuk_publishing_components/components/button", {
67
67
  name: "cookies",
68
68
  text: services_cookies.dig(:no, :text) || "No",
69
- data_attributes: { "reject-cookies": "true", }.merge(services_cookies.dig(:no, :data_attributes) || {})
69
+ data_attributes: { "reject-cookies": "true" }.merge(services_cookies.dig(:no, :data_attributes) || {}),
70
70
  } %>
71
71
  <% if services_cookies[:cookie_preferences] %>
72
72
  <%= link_to services_cookies.dig(:cookie_preferences, :text), services_cookies.dig(:cookie_preferences, :href), class: "govuk-link" %>
@@ -78,14 +78,14 @@
78
78
  data_attributes: {
79
79
  "accept-cookies": "true",
80
80
  "cookie-types": "all",
81
- }
81
+ },
82
82
  } %>
83
83
  <%= render "govuk_publishing_components/components/button", {
84
84
  name: "cookies",
85
85
  text: t("components.cookie_banner.buttons.reject_cookies"),
86
86
  data_attributes: {
87
87
  "reject-cookies": "true",
88
- }
88
+ },
89
89
  } %>
90
90
  <a class="govuk-link" href="<%= cookie_preferences_href %>"><%= t("components.cookie_banner.buttons.view_cookies") %></a>
91
91
  <% end %>
@@ -96,7 +96,7 @@
96
96
  event_name: "select_content",
97
97
  type: "cookie banner",
98
98
  action: "closed",
99
- section: t("components.cookie_banner.confirmation_message.accepted", locale: :en)
99
+ section: t("components.cookie_banner.confirmation_message.accepted", locale: :en),
100
100
  }.to_json unless disable_ga4
101
101
  %>
102
102
  <button
@@ -6,7 +6,7 @@
6
6
  items ||= [
7
7
  { :name => "day", :width => 2 },
8
8
  { :name => "month", :width => 2 },
9
- { :name => "year", :width => 4 }
9
+ { :name => "year", :width => 4 },
10
10
  ]
11
11
  autocomplete_date_of_birth ||= nil
12
12
  legend_text ||= nil
@@ -39,7 +39,7 @@
39
39
  <%= render "govuk_publishing_components/components/hint", {
40
40
  id: hint_id,
41
41
  text: hint,
42
- margin_bottom: 2
42
+ margin_bottom: 2,
43
43
  } %>
44
44
  <% end %>
45
45
 
@@ -56,7 +56,7 @@
56
56
  <%= tag.div class: "govuk-date-input__item" do %>
57
57
  <%= render "govuk_publishing_components/components/input", {
58
58
  label: {
59
- text: item[:label] || item[:name].capitalize
59
+ text: item[:label] || item[:name].capitalize,
60
60
  },
61
61
  grouped: true,
62
62
  has_error: has_error,
@@ -66,7 +66,7 @@
66
66
  id: item[:id],
67
67
  type: "number",
68
68
  data: item[:data],
69
- autocomplete: autocomplete_date_of_birth ? "bday-#{item[:name]}" : nil
69
+ autocomplete: autocomplete_date_of_birth ? "bday-#{item[:name]}" : nil,
70
70
  } %>
71
71
  <% end %>
72
72
  <% end %>
@@ -78,7 +78,7 @@
78
78
  describedby: aria_described_by,
79
79
  legend_text: legend_text,
80
80
  text: fieldset_content,
81
- role: "group"
81
+ role: "group",
82
82
  } %>
83
83
  <% else %>
84
84
  <%= fieldset_content %>
@@ -29,7 +29,7 @@
29
29
  %>
30
30
  <%= tag.details(**component_helper.all_attributes) do %>
31
31
  <%= tag.summary class: "govuk-details__summary", aria: summary_aria_attributes do %>
32
- <span class="govuk-details__summary-text" <% unless disable_ga4 %>data-ga4-expandable<% end %>>
32
+ <span class="govuk-details__summary-text" <% unless disable_ga4 %> data-ga4-expandable<% end %>>
33
33
  <%= title %>
34
34
  </span>
35
35
  <% end %>
@@ -22,7 +22,7 @@
22
22
  event_name: "navigation",
23
23
  type: "devolved nations banner",
24
24
  section: t("components.devolved_nations.applies_to", locale: :en) + " " + devolved_nations_helper.ga4_applicable_nations_title_text,
25
- }.to_json
25
+ }.to_json,
26
26
  })
27
27
  end
28
28
  %>
@@ -25,7 +25,7 @@
25
25
  ga4_link: {
26
26
  "event_name": "navigation",
27
27
  "type": "document list",
28
- }.merge(ga4_extra_data)
28
+ }.merge(ga4_extra_data),
29
29
  })
30
30
  end
31
31
  %>
@@ -43,12 +43,12 @@
43
43
  item_classes = "#{brand_helper.color_class} #{title_with_context_class if item[:link][:context]}"
44
44
 
45
45
  if item[:link][:path]
46
- rel = [
47
- "external",
48
- "nofollow",
49
- "noopener",
50
- "noreferrer",
51
- "opener",
46
+ rel = %w[
47
+ external
48
+ nofollow
49
+ noopener
50
+ noreferrer
51
+ opener
52
52
  ].include?(item[:link][:rel]) ? item[:link][:rel] : nil
53
53
 
54
54
  link_to(
@@ -91,7 +91,7 @@
91
91
  ) do %>
92
92
  <% if item_metadata_key.to_s.eql?("public_updated_at") %>
93
93
  <time datetime="<%= item_metadata_value.iso8601 %>">
94
- <%= l(item_metadata_value, format: '%e %B %Y') %>
94
+ <%= l(item_metadata_value, format: "%e %B %Y") %>
95
95
  </time>
96
96
  <% else %>
97
97
  <%= item_metadata_value %>
@@ -41,7 +41,7 @@
41
41
  event_name: "navigation",
42
42
  type: "emergency banner",
43
43
  section: heading,
44
- }.to_json
44
+ }.to_json,
45
45
  })
46
46
  end
47
47
  %>
@@ -49,11 +49,11 @@
49
49
  <div class="govuk-width-container">
50
50
  <div class="govuk-grid-row">
51
51
  <div class="govuk-grid-column-two-thirds">
52
- <%= content_tag('h2', id: "emergency-banner-heading", class: heading_classes) do %>
52
+ <%= content_tag("h2", id: "emergency-banner-heading", class: heading_classes) do %>
53
53
  <%= heading %>
54
54
  <% end %>
55
55
  <% if short_description %>
56
- <%= content_tag('p', class: description_classes) do %>
56
+ <%= content_tag("p", class: description_classes) do %>
57
57
  <%= short_description %>
58
58
  <% end %>
59
59
  <% end %>
@@ -3,8 +3,8 @@
3
3
  add_gem_component_stylesheet("feedback")
4
4
 
5
5
  email_regex = /[^\s=\/?&]+(?:@|%40)[^\s=\/?&]+/
6
- url_without_pii = request.original_url.gsub(email_regex, '[email]').encode
7
- path_without_pii = request.fullpath.gsub(email_regex, '[email]').encode
6
+ url_without_pii = request.original_url.gsub(email_regex, "[email]").encode
7
+ path_without_pii = request.fullpath.gsub(email_regex, "[email]").encode
8
8
 
9
9
  disable_ga4 ||= false
10
10
 
@@ -32,9 +32,8 @@
32
32
  <%= content_tag(
33
33
  shared_helper.get_heading_level,
34
34
  legend_text,
35
- class: "govuk-fieldset__heading"
36
- )
37
- %>
35
+ class: "govuk-fieldset__heading",
36
+ ) %>
38
37
  <% end %>
39
38
  <% else %>
40
39
  <%= tag.legend legend_text, class: legend_classes %>
@@ -42,7 +41,7 @@
42
41
  <% if error_message %>
43
42
  <%= render "govuk_publishing_components/components/error_message", {
44
43
  text: error_message,
45
- id: error_id
44
+ id: error_id,
46
45
  } %>
47
46
  <% end %>
48
47
  <%= text %>
@@ -26,4 +26,4 @@
26
26
  </figcaption>
27
27
  <% end %>
28
28
  <% end %>
29
- <% end %>
29
+ <% end %>
@@ -40,7 +40,7 @@
40
40
  <% label_markup = capture do %>
41
41
  <%= render "govuk_publishing_components/components/label", {
42
42
  html_for: id,
43
- heading_size: heading_size
43
+ heading_size: heading_size,
44
44
  }.merge(label.symbolize_keys) %>
45
45
  <% end %>
46
46
 
@@ -56,7 +56,7 @@
56
56
  <% if hint %>
57
57
  <%= render "govuk_publishing_components/components/hint", {
58
58
  id: hint_id,
59
- text: hint
59
+ text: hint,
60
60
  } %>
61
61
  <% end %>
62
62
 
@@ -78,15 +78,15 @@
78
78
  accept: accept,
79
79
  multiple: multiple,
80
80
  aria: {
81
- describedby: aria_described_by
81
+ describedby: aria_described_by,
82
82
  } %>
83
83
  <% end %>
84
-
84
+
85
85
  <% if javascript %>
86
86
  <%= content_tag :div, class: "govuk-drop-zone", data: { module: "govuk-file-upload" } do %>
87
87
  <%= file_upload_element %>
88
88
  <% end %>
89
89
  <% else %>
90
90
  <%= file_upload_element %>
91
- <% end %>
91
+ <% end %>
92
92
  <% end %>
@@ -24,7 +24,7 @@
24
24
  <% else %>
25
25
  <span class="gem-c-glance-metric__figure">
26
26
  <%= figure %>
27
- <% if measurement_display_label.present? %>
27
+ <% if measurement_display_label.present? %>
28
28
  <span class="gem-c-glance-metric__display-label" aria-hidden="true"><%= measurement_display_label %></span>
29
29
  <% end %>
30
30
  <% if measurement_explicit_label.present? %>
@@ -28,9 +28,9 @@
28
28
  <%= tag.div(**component_helper.all_attributes) do %>
29
29
  <p class="gem-c-global-banner__message govuk-width-container">
30
30
  <% if title_href %>
31
- <a class="<%= title_classes.join(' ') %>" href="<%= title_href %>" data-module="ga4-link-tracker" data-ga4-link="<%= ga4_data %>"><%= title %></a>
31
+ <a class="<%= title_classes.join(" ") %>" href="<%= title_href %>" data-module="ga4-link-tracker" data-ga4-link="<%= ga4_data %>"><%= title %></a>
32
32
  <% else %>
33
- <span class="<%= title_classes.join(' ') %>"><%= title %></span>
33
+ <span class="<%= title_classes.join(" ") %>"><%= title %></span>
34
34
  <% end %>
35
35
 
36
36
  <% if text %>
@@ -5,13 +5,13 @@
5
5
  gtm_attributes = []
6
6
  gtm_attributes << "gtm_auth=" + gtm_auth if gtm_auth
7
7
  gtm_attributes << "gtm_preview=#{gtm_preview}&gtm_cookies_win=x" if gtm_preview
8
- gtm_attributes = gtm_attributes.join('&')
8
+ gtm_attributes = gtm_attributes.join("&")
9
9
  %>
10
10
 
11
11
  <%= javascript_tag nonce: true do -%>
12
- (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
13
- new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
14
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
15
- 'https://www.googletagmanager.com/gtm.js?id='+i+dl+'&<%= raw gtm_attributes %>';f.parentNode.insertBefore(j,f);
16
- })(window,document,'script','dataLayer','<%= gtm_id %>');
17
- <% end -%>
12
+ (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
13
+ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
14
+ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
15
+ 'https://www.googletagmanager.com/gtm.js?id='+i+dl+'&<%= raw gtm_attributes %>';f.parentNode.insertBefore(j,f);
16
+ })(window,document,'script','dataLayer','<%= gtm_id %>');
17
+ <% end %>
@@ -7,7 +7,7 @@
7
7
  govspeak_locals[:disable_youtube_expansions] = local_assigns.fetch(:disable_youtube_expansions) if local_assigns.include?(:disable_youtube_expansions)
8
8
  %>
9
9
  <div class="gem-c-govspeak-html-publication">
10
- <%= render 'govuk_publishing_components/components/govspeak', govspeak_locals do %>
10
+ <%= render "govuk_publishing_components/components/govspeak", govspeak_locals do %>
11
11
  <%= yield %>
12
12
  <% end %>
13
13
  </div>
@@ -18,9 +18,9 @@
18
18
  text_wrapper_classes = %w[gem-c-image-card__text-wrapper]
19
19
  text_wrapper_classes << "gem-c-image-card__text-wrapper--two-thirds" if card_helper.two_thirds
20
20
 
21
- font_size ||= card_helper.large ? 'm' : 's'
21
+ font_size ||= card_helper.large ? "m" : "s"
22
22
  heading_class = %w[gem-c-image-card__title]
23
- heading_class << shared_helper.get_heading_size(font_size, 's')
23
+ heading_class << shared_helper.get_heading_size(font_size, "s")
24
24
 
25
25
  heading_link_classes = %w[
26
26
  gem-c-image-card__title-link
@@ -58,12 +58,11 @@
58
58
  <% if card_helper.extra_details.any? %>
59
59
  <ul class="gem-c-image-card__list <%= "gem-c-image-card__list--indented" if not card_helper.extra_details_no_indent %>">
60
60
  <% card_helper.extra_details.each do |link| %>
61
- <li class="gem-c-image-card__list-item <%= "gem-c-image-card__list-item--text" if not link[:href].present? %>">
61
+ <li class="gem-c-image-card__list-item <%= "gem-c-image-card__list-item--text" if link[:href].blank? %>">
62
62
  <% if link[:href].present? %>
63
63
  <%= link_to link[:text], link[:href],
64
64
  class: extra_link_classes,
65
- data: link[:data_attributes]
66
- %>
65
+ data: link[:data_attributes] %>
67
66
  <% else %>
68
67
  <%= link[:text] %>
69
68
  <% end %>
@@ -53,14 +53,14 @@
53
53
  aria_described_by = aria_described_by.join(" ")
54
54
  end
55
55
 
56
- checked_enterkeyhint = enterkeyhint if [
57
- "done",
58
- "enter",
59
- "go",
60
- "next",
61
- "previous",
62
- "search",
63
- "send",
56
+ checked_enterkeyhint = enterkeyhint if %w[
57
+ done
58
+ enter
59
+ go
60
+ next
61
+ previous
62
+ search
63
+ send
64
64
  ].include?(enterkeyhint)
65
65
 
66
66
  if type == "number"
@@ -75,7 +75,7 @@
75
75
  <%= render "govuk_publishing_components/components/label", {
76
76
  html_for: id,
77
77
  heading_size: heading_size,
78
- right_to_left: right_to_left_help
78
+ right_to_left: right_to_left_help,
79
79
  }.merge(label.symbolize_keys) %>
80
80
  <% end %>
81
81
 
@@ -92,7 +92,7 @@
92
92
  <%= render "govuk_publishing_components/components/hint", {
93
93
  id: hint_id,
94
94
  text: hint,
95
- right_to_left: right_to_left_help
95
+ right_to_left: right_to_left_help,
96
96
  } %>
97
97
  <% end %>
98
98
 
@@ -101,14 +101,14 @@
101
101
  id: error_id,
102
102
  text: error_message,
103
103
  items: error_items,
104
- right_to_left: right_to_left_help
104
+ right_to_left: right_to_left_help,
105
105
  } %>
106
106
  <% end %>
107
107
 
108
108
  <% input_tag = tag.input(
109
109
  aria: {
110
110
  describedby: aria_described_by,
111
- controls: controls
111
+ controls: controls,
112
112
  },
113
113
  autocomplete: autocomplete,
114
114
  autofocus: autofocus,
@@ -125,12 +125,12 @@
125
125
  spellcheck: spellcheck,
126
126
  tabindex: tabindex,
127
127
  type: type,
128
- value: value
128
+ value: value,
129
129
  ) %>
130
130
 
131
131
  <% if prefix && suffix %>
132
132
  <%= tag.div class: "govuk-input__wrapper" do %>
133
- <% # The line below relies on in-line styling for legacy browsers and it's whitespace-sensitive %>
133
+ <%# The line below relies on in-line styling for legacy browsers and it's whitespace-sensitive %>
134
134
  <%= tag.span prefix, class: "govuk-input__prefix", aria: { hidden: true } %><%= input_tag %><%= tag.span suffix, class: "govuk-input__suffix", aria: { hidden: true } %>
135
135
  <% end %>
136
136
  <% elsif prefix %>
@@ -14,7 +14,6 @@
14
14
  dismiss_data_attributes = {}
15
15
  dismiss_link_data_attributes = {}
16
16
 
17
-
18
17
  options = {
19
18
  name: name,
20
19
  dismiss_text: dismiss_text,
@@ -48,7 +47,7 @@
48
47
  end
49
48
 
50
49
  dismiss_link_data_attributes[:module] = "#{dismiss_link_data_attributes[:module]} ga4-event-tracker".strip unless disable_ga4
51
- dismiss_link_data_attributes[:ga4_event] = { event_name: "select_content", type: "intervention", section: suggestion_text, action: 'closed' }.to_json unless disable_ga4
50
+ dismiss_link_data_attributes[:ga4_event] = { event_name: "select_content", type: "intervention", section: suggestion_text, action: "closed" }.to_json unless disable_ga4
52
51
 
53
52
  component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
54
53
  component_helper.add_class("gem-c-intervention")
@@ -58,7 +57,6 @@
58
57
  component_helper.add_data_attribute({ module: "intervention", intervention_name: name })
59
58
  component_helper.add_data_attribute({ ga4_intervention_banner: "" }) unless disable_ga4 # Added to the parent element for the GA4 pageview object to use
60
59
  component_helper.set_hidden("hidden") if hide
61
-
62
60
  %>
63
61
  <% if intervention_helper.show? %>
64
62
  <%= tag.section(**component_helper.all_attributes) do %>
@@ -79,9 +77,9 @@
79
77
  width="19" height="19" viewBox="0 0 19 19"
80
78
  aria-hidden="true"
81
79
  fill="none" stroke="currentColor">
82
- <path d="M0.499997 9.5C0.499997 4.52944 4.52944 0.499999 9.5 0.499999C14.4706 0.5 18.5 4.52944 18.5 9.5C18.5 14.4706 14.4706 18.5 9.5 18.5C4.52943 18.5 0.499997 14.4706 0.499997 9.5Z"/>
83
- <path d="M13.3477 5.4209L9.67383 9.09473L6 5.4209"/>
84
- <path d="M6 13.4209L9.67383 9.74707L13.3477 13.4209"/>
80
+ <path d="M0.499997 9.5C0.499997 4.52944 4.52944 0.499999 9.5 0.499999C14.4706 0.5 18.5 4.52944 18.5 9.5C18.5 14.4706 14.4706 18.5 9.5 18.5C4.52943 18.5 0.499997 14.4706 0.499997 9.5Z" />
81
+ <path d="M13.3477 5.4209L9.67383 9.09473L6 5.4209" />
82
+ <path d="M6 13.4209L9.67383 9.74707L13.3477 13.4209" />
85
83
  </svg>
86
84
  <%= dismiss_text %>
87
85
  <% end %>
@@ -31,6 +31,6 @@
31
31
  id: hint_id,
32
32
  text: hint_text,
33
33
  right_to_left: right_to_left ? "rtl" : nil,
34
- is_radio_label_hint: is_radio_label
34
+ is_radio_label_hint: is_radio_label,
35
35
  } %>
36
36
  <% end %>
@@ -57,7 +57,7 @@
57
57
  %>
58
58
  <div class="<%= width_class %> govuk-!-display-none-print">
59
59
  <h2 class="govuk-footer__heading govuk-heading-m"><%= section[:title] %></h2>
60
- <ul class="<%= list_classes.join(' ') %>">
60
+ <ul class="<%= list_classes.join(" ") %>">
61
61
  <% index_total = section[:items].length %>
62
62
  <% section[:items].each_with_index do |item, index| %>
63
63
  <% if item[:href] && item[:text] %>
@@ -113,10 +113,9 @@
113
113
  <svg aria-hidden="true" focusable="false" class="govuk-footer__licence-logo" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 483.2 195.7" height="17" width="41">
114
114
  <path
115
115
  fill="currentColor"
116
- d="M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145"
117
- />
116
+ d="M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145" />
118
117
  </svg>
119
- <% # this is to avoid having hardcoded data attributes in locale files %>
118
+ <%# this is to avoid having hardcoded data attributes in locale files %>
120
119
  <span
121
120
  class="govuk-footer__licence-description"
122
121
  data-ga4-track-links-only
@@ -129,13 +128,12 @@
129
128
  "text": "Open Government Licence v3.0",
130
129
  "index_total": "1",
131
130
  "type": "footer",
132
- }.to_json %>"
133
- >
131
+ }.to_json %>">
134
132
  <%= t("components.layout_footer.licence_html") %>
135
133
  </span>
136
134
  <% end %>
137
135
  </div>
138
- <% # this is to avoid having hardcoded data attributes in locale files %>
136
+ <%# this is to avoid having hardcoded data attributes in locale files %>
139
137
  <div
140
138
  class="govuk-footer__meta-item"
141
139
  data-ga4-link="<%= {
@@ -147,8 +145,7 @@
147
145
  "text": "© Crown copyright",
148
146
  "index_total": "1",
149
147
  "type": "footer",
150
- }.to_json %>"
151
- >
148
+ }.to_json %>">
152
149
  <%= t("components.layout_footer.copyright_html") %>
153
150
  </div>
154
151
  </div>
@@ -11,7 +11,7 @@
11
11
  <!DOCTYPE html>
12
12
  <html lang="en" class="govuk-template govuk-template--rebranded">
13
13
  <head>
14
- <meta charset="utf-8" />
14
+ <meta charset="utf-8">
15
15
  <title><%= browser_title %> - GOV.UK <%= product_name %></title>
16
16
  <meta name="robots" content="noindex,nofollow,noimageindex">
17
17
  <meta name="viewport" content="width=device-width, initial-scale=1">
@@ -26,7 +26,7 @@
26
26
  <body class="gem-c-layout-for-admin govuk-template__body">
27
27
  <%= javascript_tag nonce: true do -%>
28
28
  document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');
29
- <% end -%>
29
+ <% end %>
30
30
  <%= yield %>
31
31
  <% if use_type_module %>
32
32
  <%= javascript_include_tag js_filename, type: "module" %>