govuk_publishing_components 60.1.0 → 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 (212) 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/views/govuk_publishing_components/audit/_applications.html.erb +13 -13
  7. data/app/views/govuk_publishing_components/audit/_component_contents.html.erb +2 -2
  8. data/app/views/govuk_publishing_components/audit/_components.html.erb +17 -19
  9. data/app/views/govuk_publishing_components/audit/_items_in_applications.html.erb +3 -3
  10. data/app/views/govuk_publishing_components/audit/show.html.erb +5 -6
  11. data/app/views/govuk_publishing_components/component_guide/component_doc/_call.html.erb +2 -2
  12. data/app/views/govuk_publishing_components/component_guide/example.html.erb +4 -5
  13. data/app/views/govuk_publishing_components/component_guide/index.html.erb +9 -10
  14. data/app/views/govuk_publishing_components/component_guide/preview.html.erb +1 -1
  15. data/app/views/govuk_publishing_components/component_guide/show.html.erb +9 -10
  16. data/app/views/govuk_publishing_components/components/_accordion.html.erb +5 -5
  17. data/app/views/govuk_publishing_components/components/_action_link.html.erb +2 -2
  18. data/app/views/govuk_publishing_components/components/_add_another.html.erb +3 -3
  19. data/app/views/govuk_publishing_components/components/_attachment.html.erb +4 -4
  20. data/app/views/govuk_publishing_components/components/_back_link.html.erb +1 -1
  21. data/app/views/govuk_publishing_components/components/_back_to_top_link.html.erb +1 -1
  22. data/app/views/govuk_publishing_components/components/_big_number.html.erb +1 -1
  23. data/app/views/govuk_publishing_components/components/_cards.html.erb +4 -4
  24. data/app/views/govuk_publishing_components/components/_character_count.html.erb +1 -1
  25. data/app/views/govuk_publishing_components/components/_checkboxes.html.erb +3 -3
  26. data/app/views/govuk_publishing_components/components/_contents_list.html.erb +6 -9
  27. data/app/views/govuk_publishing_components/components/_contents_list_with_body.html.erb +2 -2
  28. data/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +2 -2
  29. data/app/views/govuk_publishing_components/components/_contextual_footer.html.erb +1 -1
  30. data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +6 -6
  31. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +6 -6
  32. data/app/views/govuk_publishing_components/components/_date_input.html.erb +5 -5
  33. data/app/views/govuk_publishing_components/components/_details.html.erb +1 -1
  34. data/app/views/govuk_publishing_components/components/_devolved_nations.html.erb +1 -1
  35. data/app/views/govuk_publishing_components/components/_document_list.html.erb +8 -8
  36. data/app/views/govuk_publishing_components/components/_emergency_banner.html.erb +3 -3
  37. data/app/views/govuk_publishing_components/components/_feedback.html.erb +2 -2
  38. data/app/views/govuk_publishing_components/components/_fieldset.html.erb +3 -4
  39. data/app/views/govuk_publishing_components/components/_figure.html.erb +1 -1
  40. data/app/views/govuk_publishing_components/components/_file_upload.html.erb +5 -5
  41. data/app/views/govuk_publishing_components/components/_glance_metric.html.erb +1 -1
  42. data/app/views/govuk_publishing_components/components/_global_banner.html.erb +2 -2
  43. data/app/views/govuk_publishing_components/components/_google_tag_manager_script.html.erb +7 -7
  44. data/app/views/govuk_publishing_components/components/_govspeak_html_publication.html.erb +1 -1
  45. data/app/views/govuk_publishing_components/components/_image_card.html.erb +4 -5
  46. data/app/views/govuk_publishing_components/components/_input.html.erb +14 -14
  47. data/app/views/govuk_publishing_components/components/_intervention.html.erb +4 -6
  48. data/app/views/govuk_publishing_components/components/_label.html.erb +1 -1
  49. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +6 -9
  50. data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +2 -2
  51. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +15 -15
  52. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +16 -19
  53. data/app/views/govuk_publishing_components/components/_machine_readable_metadata.html.erb +18 -17
  54. data/app/views/govuk_publishing_components/components/_metadata.html.erb +4 -4
  55. data/app/views/govuk_publishing_components/components/_notice.html.erb +1 -1
  56. data/app/views/govuk_publishing_components/components/_option_select.html.erb +8 -9
  57. data/app/views/govuk_publishing_components/components/_organisation_logo.html.erb +1 -1
  58. data/app/views/govuk_publishing_components/components/_password_input.html.erb +17 -17
  59. data/app/views/govuk_publishing_components/components/_phase_banner.html.erb +2 -3
  60. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +6 -8
  61. data/app/views/govuk_publishing_components/components/_print_link.html.erb +3 -3
  62. data/app/views/govuk_publishing_components/components/_published_dates.html.erb +6 -7
  63. data/app/views/govuk_publishing_components/components/_radio.html.erb +7 -8
  64. data/app/views/govuk_publishing_components/components/_related_navigation.html.erb +4 -6
  65. data/app/views/govuk_publishing_components/components/_reorderable_list.html.erb +7 -7
  66. data/app/views/govuk_publishing_components/components/_search_with_autocomplete.html.erb +2 -2
  67. data/app/views/govuk_publishing_components/components/_secondary_navigation.html.erb +1 -1
  68. data/app/views/govuk_publishing_components/components/_select.html.erb +1 -1
  69. data/app/views/govuk_publishing_components/components/_select_with_search.html.erb +1 -1
  70. data/app/views/govuk_publishing_components/components/_share_links.html.erb +18 -18
  71. data/app/views/govuk_publishing_components/components/_signup_link.html.erb +3 -3
  72. data/app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb +3 -3
  73. data/app/views/govuk_publishing_components/components/_skip_link.html.erb +2 -3
  74. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +9 -10
  75. data/app/views/govuk_publishing_components/components/_step_by_step_nav_header.html.erb +2 -3
  76. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +5 -9
  77. data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +8 -8
  78. data/app/views/govuk_publishing_components/components/_summary_list.html.erb +1 -1
  79. data/app/views/govuk_publishing_components/components/_table.html.erb +3 -3
  80. data/app/views/govuk_publishing_components/components/_tag.html.erb +1 -1
  81. data/app/views/govuk_publishing_components/components/_textarea.html.erb +4 -4
  82. data/app/views/govuk_publishing_components/components/_translation_nav.html.erb +1 -2
  83. data/app/views/govuk_publishing_components/components/_warning_text.html.erb +2 -2
  84. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_document.html.erb +1 -1
  85. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_external.html.erb +1 -1
  86. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_generic.html.erb +2 -2
  87. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_html.html.erb +1 -1
  88. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_pdf.html.erb +1 -1
  89. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_spreadsheet.html.erb +3 -3
  90. data/app/views/govuk_publishing_components/components/cross_service_header/_one_login_header.html.erb +10 -10
  91. data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +10 -10
  92. data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +6 -8
  93. data/app/views/govuk_publishing_components/components/govuk_logo/_govuk_logo_crown_only.html.erb +1 -2
  94. data/app/views/govuk_publishing_components/components/layout_for_public/_account-layout.html.erb +2 -2
  95. data/app/views/govuk_publishing_components/components/layout_for_public/_account-navigation.html.erb +2 -2
  96. data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +1 -1
  97. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +2 -3
  98. data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +1 -1
  99. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +4 -4
  100. data/app/views/govuk_publishing_components/components/search/_search_icon.html.erb +2 -3
  101. data/app/views/layouts/govuk_publishing_components/application.html.erb +3 -3
  102. data/lib/govuk_publishing_components/presenters/component_wrapper_helper.rb +1 -1
  103. data/lib/govuk_publishing_components/presenters/heading_helper.rb +3 -3
  104. data/lib/govuk_publishing_components/presenters/meta_tags.rb +1 -0
  105. data/lib/govuk_publishing_components/version.rb +1 -1
  106. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +97 -72
  107. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
  108. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +97 -72
  109. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -1
  110. data/node_modules/govuk-frontend/dist/govuk/common/configuration.mjs +29 -2
  111. data/node_modules/govuk-frontend/dist/govuk/common/configuration.mjs.map +1 -1
  112. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
  113. data/node_modules/govuk-frontend/dist/govuk/common/index.mjs +4 -10
  114. data/node_modules/govuk-frontend/dist/govuk/common/index.mjs.map +1 -1
  115. data/node_modules/govuk-frontend/dist/govuk/component.mjs.map +1 -1
  116. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js +13 -11
  117. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js.map +1 -1
  118. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs +13 -11
  119. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -1
  120. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs +4 -4
  121. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs.map +1 -1
  122. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js +7 -5
  123. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js.map +1 -1
  124. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs +7 -5
  125. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs.map +1 -1
  126. data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs.map +1 -1
  127. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +10 -8
  128. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js.map +1 -1
  129. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs +10 -8
  130. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs.map +1 -1
  131. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs +1 -1
  132. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs.map +1 -1
  133. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js +10 -5
  134. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js.map +1 -1
  135. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs +10 -5
  136. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs.map +1 -1
  137. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs.map +1 -1
  138. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/fixtures.json +36 -0
  139. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js +8 -12
  140. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js.map +1 -1
  141. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs +8 -12
  142. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs.map +1 -1
  143. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs +2 -2
  144. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs.map +1 -1
  145. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js +9 -7
  146. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js.map +1 -1
  147. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs +9 -7
  148. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs.map +1 -1
  149. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs.map +1 -1
  150. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js +10 -8
  151. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js.map +1 -1
  152. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs +10 -8
  153. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs.map +1 -1
  154. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs +1 -1
  155. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs.map +1 -1
  156. data/node_modules/govuk-frontend/dist/govuk/components/footer/fixtures.json +4 -2
  157. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +10 -5
  158. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js.map +1 -1
  159. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +10 -5
  160. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs.map +1 -1
  161. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs.map +1 -1
  162. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js +7 -5
  163. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js.map +1 -1
  164. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs +7 -5
  165. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs.map +1 -1
  166. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs.map +1 -1
  167. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +4 -0
  168. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss.map +1 -1
  169. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js +9 -7
  170. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js.map +1 -1
  171. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs +9 -7
  172. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs.map +1 -1
  173. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs.map +1 -1
  174. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js +10 -5
  175. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js.map +1 -1
  176. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs +10 -5
  177. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs.map +1 -1
  178. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.mjs.map +1 -1
  179. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json +30 -0
  180. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js +10 -5
  181. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js.map +1 -1
  182. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs +10 -5
  183. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs.map +1 -1
  184. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs.map +1 -1
  185. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +1 -2
  186. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss.map +1 -1
  187. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js +12 -19
  188. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js.map +1 -1
  189. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs +12 -19
  190. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs.map +1 -1
  191. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs +3 -9
  192. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs.map +1 -1
  193. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js +12 -13
  194. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js.map +1 -1
  195. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs +12 -13
  196. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs.map +1 -1
  197. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs +3 -3
  198. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs.map +1 -1
  199. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +1 -1
  200. data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs +5 -3
  201. data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs.map +1 -1
  202. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
  203. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
  204. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
  205. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js.map +1 -1
  206. data/node_modules/govuk-frontend/dist/govuk/i18n.mjs +4 -2
  207. data/node_modules/govuk-frontend/dist/govuk/i18n.mjs.map +1 -1
  208. data/node_modules/govuk-frontend/dist/govuk/init.mjs +52 -43
  209. data/node_modules/govuk-frontend/dist/govuk/init.mjs.map +1 -1
  210. data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +1 -1
  211. data/node_modules/govuk-frontend/package.json +11 -11
  212. metadata +15 -1
@@ -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,