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
@@ -30,6 +30,11 @@
30
30
  margin-left: 22px;
31
31
  }
32
32
 
33
+ li:target {
34
+ background: govuk-colour("light-grey");
35
+ border-bottom: solid 3px $govuk-border-colour;
36
+ }
37
+
33
38
  @include govuk-media-query($media-type: print) {
34
39
  border-top: 1px solid $govuk-text-colour;
35
40
 
@@ -5,12 +5,12 @@
5
5
  <%= render "govuk_publishing_components/components/heading", {
6
6
  text: title,
7
7
  font_size: "l",
8
- margin_bottom: 6
8
+ margin_bottom: 6,
9
9
  } %>
10
10
 
11
11
  <% if @applications.any? %>
12
12
  <%= render "govuk_publishing_components/components/details", {
13
- title: "How to use this information"
13
+ title: "How to use this information",
14
14
  } do %>
15
15
  <p class="govuk-body">This page shows information about component use on GOV.UK. This information has been cross referenced with the components in the gem to produce warnings where e.g. JavaScript for a component exists but has not been included in an application.</p>
16
16
  <p class="govuk-body">Warnings should be investigated, although there may be a reason why the application has been configured as it is. Note that 'code' can refer to templates or ruby code.</p>
@@ -34,18 +34,18 @@
34
34
 
35
35
  <% accordion_content = capture do %>
36
36
  <% if application[:application_found] %>
37
- <% github_link = 'https://github.com/alphagov/' + application[:dir] + '/blob/main/' %>
37
+ <% github_link = "https://github.com/alphagov/" + application[:dir] + "/blob/main/" %>
38
38
 
39
39
  <% if @other_applications %>
40
40
  <% if application[:uses_individual_asset_model] %>
41
41
  <%= render "govuk_publishing_components/components/warning_text", {
42
- text: raw("This application uses <a class=\"govuk-link\" href=\"https://github.com/alphagov/govuk_publishing_components/blob/main/docs/set-up-individual-component-css-loading.md\">per page asset loading</a> for components. Warnings about missing stylesheets have been suppressed.")
42
+ text: raw("This application uses <a class=\"govuk-link\" href=\"https://github.com/alphagov/govuk_publishing_components/blob/main/docs/set-up-individual-component-css-loading.md\">per page asset loading</a> for components. Warnings about missing stylesheets have been suppressed."),
43
43
  } %>
44
44
  <% end %>
45
45
 
46
46
  <% if application[:uses_static] %>
47
47
  <%= render "govuk_publishing_components/components/warning_text", {
48
- text: raw("This application uses <a href=\"https://github.com/alphagov/static\" class=\"govuk-link\">static</a>, which can contain assets for components used in more than one application. Warnings for missing component assets in this application that are already included in static have been suppressed.")
48
+ text: raw("This application uses <a href=\"https://github.com/alphagov/static\" class=\"govuk-link\">static</a>, which can contain assets for components used in more than one application. Warnings for missing component assets in this application that are already included in static have been suppressed."),
49
49
  } %>
50
50
  <% end %>
51
51
 
@@ -80,13 +80,13 @@
80
80
  <%
81
81
  items << {
82
82
  field: "#{item[:name]} (#{item[:value].length})",
83
- value: content
83
+ value: content,
84
84
  }
85
85
  %>
86
86
  <% end %>
87
87
 
88
88
  <%= render "govuk_publishing_components/components/summary_list", {
89
- items: items
89
+ items: items,
90
90
  } %>
91
91
 
92
92
  <% if application[:gem_style_references].any? %>
@@ -101,7 +101,7 @@
101
101
  <ul class="govuk-list govuk-list--bullet">
102
102
  <% application[:gem_style_references].each do |ref| %>
103
103
  <li>
104
- <%= link_to ref, github_link + ref, class: 'govuk-link' %>
104
+ <%= link_to ref, github_link + ref, class: "govuk-link" %>
105
105
  </li>
106
106
  <% end %>
107
107
  </ul>
@@ -118,7 +118,7 @@
118
118
  <ul class="govuk-list govuk-list--bullet">
119
119
  <% application[:jquery_references].each do |ref| %>
120
120
  <li>
121
- <%= link_to ref, github_link + ref, class: 'govuk-link' %>
121
+ <%= link_to ref, github_link + ref, class: "govuk-link" %>
122
122
  </li>
123
123
  <% end %>
124
124
  </ul>
@@ -143,13 +143,13 @@
143
143
  <%
144
144
  {
145
145
  heading: {
146
- text: application[:name]
146
+ text: application[:name],
147
147
  },
148
148
  summary: {
149
- text: sanitize(summary)
149
+ text: sanitize(summary),
150
150
  },
151
151
  content: {
152
- html: accordion_content
152
+ html: accordion_content,
153
153
  },
154
154
  }
155
155
  %>
@@ -157,7 +157,7 @@
157
157
 
158
158
  <% if ENV["MAIN_COMPONENT_GUIDE"] %>
159
159
  <%= render "govuk_publishing_components/components/accordion", {
160
- items: application_items
160
+ items: application_items,
161
161
  } %>
162
162
  <% else %>
163
163
  <p class="govuk-body"><%= sanitize(summary) %></p>
@@ -3,7 +3,7 @@
3
3
  </p>
4
4
  <table class="govuk-table">
5
5
  <thead class="govuk-table__head">
6
- <tr class="govuk-table__row" <% if show_application_name %>data-audit-headings<% end %>>
6
+ <tr class="govuk-table__row" <% if show_application_name %> data-audit-headings<% end %>>
7
7
  <th scope="col" class="govuk-table__header sticky-table-header" data-component-type="total">Component</th>
8
8
  <th scope="col" class="govuk-table__header sticky-table-header" data-component-type="template" title="Component has a template">
9
9
  Template
@@ -61,7 +61,7 @@
61
61
  </th>
62
62
  </tr>
63
63
  </thead>
64
- <tbody class="govuk-table__body" <% if show_application_name %>data-audit-list<% end %>>
64
+ <tbody class="govuk-table__body" <% if show_application_name %> data-audit-list<% end %>>
65
65
  <% passed_components[:component_file_details].each do |component| %>
66
66
  <tr class="govuk-table__row" data-application="<%= component[:application] %>">
67
67
  <th scope="row" class="govuk-table__header" data-component-type="total">
@@ -24,7 +24,7 @@
24
24
  text: "Lists what files each component has",
25
25
  },
26
26
  content: {
27
- html: component_files
27
+ html: component_files,
28
28
  },
29
29
  }
30
30
  %>
@@ -37,7 +37,7 @@
37
37
  <a href="<%= component[:link] %>" class="govuk-link"><%= component[:component] %></a>
38
38
  </dt>
39
39
  <dd class="govuk-summary-list__value">
40
- <%= component[:sub_components].join(', ') %>
40
+ <%= component[:sub_components].join(", ") %>
41
41
  </dd>
42
42
  </div>
43
43
  <% end %>
@@ -53,24 +53,23 @@
53
53
  text: "Shows which components contain other components",
54
54
  },
55
55
  content: {
56
- html: components_within_components
56
+ html: components_within_components,
57
57
  },
58
58
  }
59
59
  %>
60
60
 
61
- <%= render 'items_in_applications',
62
- heading: 'Gem components used by applications',
63
- summary: 'Shows which applications use gem components',
61
+ <%= render "items_in_applications",
62
+ heading: "Gem components used by applications",
63
+ summary: "Shows which applications use gem components",
64
64
  content: @components[:components_by_application],
65
- items: component_items
66
- %>
65
+ items: component_items %>
67
66
 
68
67
  <% helpers_by_component = capture do %>
69
68
  <dl class="govuk-summary-list">
70
69
  <% @components[:helper_usage].each do |helper| %>
71
70
  <div class="govuk-summary-list__row">
72
71
  <dt class="govuk-summary-list__key">
73
- <a href="https://github.com/alphagov/govuk_publishing_components/blob/main/<%= helper[:link] %>" class="govuk-link"><%= helper[:name] %></a>
72
+ <a href="https://github.com/alphagov/govuk_publishing_components/blob/main/<%= helper[:link] %>" class="govuk-link"><%= helper[:name] %></a>
74
73
  </dt>
75
74
  <dd class="govuk-summary-list__value">
76
75
  <details class="govuk-details" data-module="govuk-details">
@@ -82,14 +81,14 @@
82
81
  <div class="govuk-details__text">
83
82
  <ul class="govuk-list govuk-list--bullet">
84
83
  <% helper[:used_by].each do |component| %>
85
- <% github_link = 'https://github.com/alphagov/govuk_publishing_components/tree/main/app/views/govuk_publishing_components/components/' %>
84
+ <% github_link = "https://github.com/alphagov/govuk_publishing_components/tree/main/app/views/govuk_publishing_components/components/" %>
86
85
  <li>
87
86
  <a href="<%= github_link %><%= component[:link] %>" class="govuk-link"><%= component[:name] %></a>
88
87
  </li>
89
- <% end %>
88
+ <% end %>
90
89
  </ul>
91
90
  </div>
92
- </details>
91
+ </details>
93
92
  </dd>
94
93
  </div>
95
94
  <% end %>
@@ -105,20 +104,19 @@
105
104
  text: "Shows which gem components use common helpers",
106
105
  },
107
106
  content: {
108
- html: helpers_by_component
107
+ html: helpers_by_component,
109
108
  },
110
109
  }
111
110
  %>
112
111
 
113
- <%= render 'items_in_applications',
114
- heading: 'Gem helpers used by applications',
115
- summary: 'Shows any applications that use helpers from the components gem',
112
+ <%= render "items_in_applications",
113
+ heading: "Gem helpers used by applications",
114
+ summary: "Shows any applications that use helpers from the components gem",
116
115
  content: @components[:helpers_used_by_applications],
117
- items: component_items
118
- %>
116
+ items: component_items %>
119
117
 
120
118
  <%= render "govuk_publishing_components/components/accordion", {
121
- items: component_items
119
+ items: component_items,
122
120
  } %>
123
121
  <% else %>
124
122
  <p class="govuk-body">No components found.</p>
@@ -5,11 +5,11 @@
5
5
  <% content.each do |item| %>
6
6
  <div class="govuk-summary-list__row">
7
7
  <dt class="govuk-summary-list__key">
8
- <%= item[:name] %> (<%= pluralize(item[:count], 'use') %>)
8
+ <%= item[:name] %> (<%= pluralize(item[:count], "use") %>)
9
9
  </dt>
10
10
  <dd class="govuk-summary-list__value">
11
11
  <% item[:locations].each do |application| %>
12
- <% github_link = 'https://github.com/alphagov/' + application[:name] + '/blob/main/' %>
12
+ <% github_link = "https://github.com/alphagov/" + application[:name] + "/blob/main/" %>
13
13
  <details class="govuk-details govuk-!-margin-bottom-2" data-module="govuk-details">
14
14
  <summary class="govuk-details__summary">
15
15
  <span class="govuk-details__summary-text">
@@ -43,7 +43,7 @@
43
43
  text: summary,
44
44
  },
45
45
  content: {
46
- html: accordion_content
46
+ html: accordion_content,
47
47
  },
48
48
  }
49
49
  %>
@@ -5,13 +5,12 @@
5
5
  %>
6
6
 
7
7
  <% content_for :title, "Component audit" %>
8
- <%= render 'govuk_publishing_components/components/heading', {
8
+ <%= render "govuk_publishing_components/components/heading", {
9
9
  text: "Components audit",
10
10
  heading_level: 1,
11
11
  font_size: "xl",
12
- margin_bottom: 8
13
- }
14
- %>
12
+ margin_bottom: 8,
13
+ } %>
15
14
 
16
15
  <% applications = capture do %>
17
16
  <%= render "applications" %>
@@ -33,8 +32,8 @@
33
32
  id: "components-gem",
34
33
  label: "Components",
35
34
  content: components,
36
- }
37
- ]
35
+ },
36
+ ],
38
37
  } %>
39
38
  <% else %>
40
39
  <%= render "components" %>
@@ -2,8 +2,8 @@
2
2
  component_code =
3
3
  if example.has_block?
4
4
  "<%= render \"#{@component_doc.partial_path}\", #{example.pretty_data} do %\>\n" +
5
- " #{example.block.html_safe}" +
6
- "<% end %\>"
5
+ " #{example.block.html_safe}" +
6
+ "<% end %\>"
7
7
  else
8
8
  "<%= render \"#{@component_doc.partial_path}\", #{example.pretty_data} %\>"
9
9
  end
@@ -1,18 +1,17 @@
1
1
  <% content_for :title, "#{@component_example.name} example - #{@component_doc.name} component" %>
2
2
  <% content_for :application_stylesheet do %>
3
3
  <% if @component_doc.source == "application" && application_stylesheet_in_use? %>
4
- <%= render 'application_stylesheet' %>
4
+ <%= render "application_stylesheet" %>
5
5
  <% end %>
6
6
  <% end %>
7
7
 
8
- <%= render 'govuk_publishing_components/components/heading', {
8
+ <%= render "govuk_publishing_components/components/heading", {
9
9
  text: @component_example.name,
10
10
  context: "#{@component_doc.name} example",
11
11
  heading_level: 1,
12
12
  font_size: "xl",
13
- margin_bottom: 8
14
- }
15
- %>
13
+ margin_bottom: 8,
14
+ } %>
16
15
 
17
16
  <% code_example = capture do %>
18
17
  <%= render partial: "govuk_publishing_components/component_guide/component_doc/call", locals: { component_doc: @component_doc, example: @component_example } %>
@@ -1,10 +1,9 @@
1
- <%= render 'govuk_publishing_components/components/heading', {
1
+ <%= render "govuk_publishing_components/components/heading", {
2
2
  text: GovukPublishingComponents::Config.component_guide_title,
3
3
  heading_level: 1,
4
4
  font_size: "xl",
5
- margin_bottom: 8
6
- }
7
- %>
5
+ margin_bottom: 8,
6
+ } %>
8
7
 
9
8
  <div class="component-markdown">
10
9
  <p>Components are packages of template, style, behaviour and documentation that live in your application.</p>
@@ -17,7 +16,7 @@
17
16
 
18
17
  <form role="search" data-module="filter-components" class="component-search">
19
18
  <%= render "govuk_publishing_components/components/search", {
20
- label_text: "Search components"
19
+ label_text: "Search components",
21
20
  } %>
22
21
  </form>
23
22
 
@@ -37,21 +36,21 @@
37
36
  <h2 class="component-doc-h2">Gem components used by this app (<%= @used_components.length %>)</h2>
38
37
 
39
38
  <%= render "govuk_publishing_components/components/details", {
40
- title: "Suggested imports for this application"
39
+ title: "Suggested imports for this application",
41
40
  } do %>
42
41
  <%= render "govuk_publishing_components/components/textarea", {
43
42
  label: {
44
- text: "Add this to your application's main scss file, before your other local imports."
43
+ text: "Add this to your application's main scss file, before your other local imports.",
45
44
  },
46
45
  name: "main-sass",
47
- value: @components_in_use_sass
46
+ value: @components_in_use_sass,
48
47
  } %>
49
48
  <%= render "govuk_publishing_components/components/textarea", {
50
49
  label: {
51
- text: "Add this to your application's main js file, before your other local imports."
50
+ text: "Add this to your application's main js file, before your other local imports.",
52
51
  },
53
52
  name: "main-js",
54
- value: @components_in_use_js
53
+ value: @components_in_use_js,
55
54
  } %>
56
55
  <% end %>
57
56
  <pre>
@@ -1,6 +1,6 @@
1
1
  <% content_for :application_stylesheet do %>
2
2
  <% if @component_doc.source == "application" && application_stylesheet_in_use? %>
3
- <%= render 'application_stylesheet' %>
3
+ <%= render "application_stylesheet" %>
4
4
  <% end %>
5
5
  <% end %>
6
6
 
@@ -1,18 +1,17 @@
1
1
  <% content_for :title, "#{@component_doc.name} component" %>
2
2
  <% content_for :application_stylesheet do %>
3
3
  <% if @component_doc.source == "application" && application_stylesheet_in_use? %>
4
- <%= render 'application_stylesheet' %>
4
+ <%= render "application_stylesheet" %>
5
5
  <% end %>
6
6
  <% end %>
7
7
 
8
- <%= render 'govuk_publishing_components/components/heading', {
8
+ <%= render "govuk_publishing_components/components/heading", {
9
9
  text: @component_doc.name,
10
10
  context: "Component",
11
11
  heading_level: 1,
12
12
  font_size: "xl",
13
- margin_bottom: 8
14
- }
15
- %>
13
+ margin_bottom: 8,
14
+ } %>
16
15
 
17
16
  <div class="component-show">
18
17
  <div class="govuk-grid-row">
@@ -23,7 +22,7 @@
23
22
  <a class="component-violation__link" href="https://github.com/alphagov/govuk_publishing_components/blob/main/docs/accessibility_acceptance_criteria.md">Please define accessibility acceptance criteria for this component.</a>
24
23
  </div>
25
24
  <% end %>
26
- <%= render 'govuk_publishing_components/components/lead_paragraph', text: @component_doc.description %>
25
+ <%= render "govuk_publishing_components/components/lead_paragraph", text: @component_doc.description %>
27
26
  <% if @component_doc.body.present? %>
28
27
  <div class="component-body">
29
28
  <div class="component-markdown">
@@ -40,12 +39,12 @@
40
39
  other_examples_links = []
41
40
  other_examples_links << {
42
41
  href: "#standard-options",
43
- text: "Standard options"
42
+ text: "Standard options",
44
43
  } if @component_doc.uses_component_wrapper_helper?
45
44
  other_examples_links.concat(@component_doc.other_examples.map do | example |
46
45
  {
47
46
  href: "##{example.id}",
48
- text: example.name
47
+ text: example.name,
49
48
  }
50
49
  end)
51
50
  content_items = [
@@ -56,12 +55,12 @@
56
55
  ({
57
56
  href: "#other-examples",
58
57
  text: "Other examples",
59
- items: other_examples_links
58
+ items: other_examples_links,
60
59
  } if @component_doc.other_examples.any? or @component_doc.uses_component_wrapper_helper?),
61
60
  ].compact
62
61
  %>
63
62
  <%= render "govuk_publishing_components/components/contents_list", {
64
- contents: content_items
63
+ contents: content_items,
65
64
  } %>
66
65
  </div>
67
66
 
@@ -58,7 +58,7 @@
58
58
  end
59
59
 
60
60
  section_classes = %w(govuk-accordion__section)
61
- section_classes << 'govuk-accordion__section--expanded' if item[:expanded]
61
+ section_classes << "govuk-accordion__section--expanded" if item[:expanded]
62
62
 
63
63
  summary_classes = %w(govuk-accordion__section-summary govuk-body)
64
64
  %>
@@ -68,14 +68,14 @@
68
68
  content_tag(
69
69
  shared_helper.get_heading_level,
70
70
  content_tag(
71
- 'span',
71
+ "span",
72
72
  item[:heading][:text],
73
73
  class: "govuk-accordion__section-button",
74
- id: "#{id}-heading-#{index}"
74
+ id: "#{id}-heading-#{index}",
75
75
  ),
76
76
  class: "govuk-accordion__section-heading",
77
77
  id: item[:heading][:id],
78
- data: item[:data_attributes]
78
+ data: item[:data_attributes],
79
79
  )
80
80
  %>
81
81
  <%= tag.div(item[:summary][:text], id: "#{id}-summary-#{index}", class: summary_classes) if item[:summary].present? %>
@@ -84,7 +84,7 @@
84
84
  item[:content][:html],
85
85
  id: "#{id}-content-#{index}",
86
86
  class: "govuk-accordion__section-content",
87
- data: ga4_link_data_attributes
87
+ data: ga4_link_data_attributes,
88
88
  ) %>
89
89
  <% end %>
90
90
  <% end %>
@@ -32,8 +32,8 @@
32
32
  <svg xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true" viewBox="0 0 27 27">
33
33
  <circle class="gem-c-action-link__icon__circle" cx="13.5" cy="13.5" r="13.5" />
34
34
  <g class="gem-c-action-link__icon__arrow">
35
- <path d="m17.701 13.526-3.827-3.828L14.973 8.6l4.926 4.926-4.926 4.926-1.099-1.099 3.827-3.827Z"/>
36
- <path d="M8.363 12.749h9.762v1.554H8.363v-1.554Z"/>
35
+ <path d="m17.701 13.526-3.827-3.828L14.973 8.6l4.926 4.926-4.926 4.926-1.099-1.099 3.827-3.827Z" />
36
+ <path d="M8.363 12.749h9.762v1.554H8.363v-1.554Z" />
37
37
  </g>
38
38
  </svg>
39
39
  </span>
@@ -24,7 +24,7 @@
24
24
  <%= render "govuk_publishing_components/components/fieldset", {
25
25
  classes: "js-add-another__fieldset",
26
26
  legend_text: "#{fieldset_legend} #{index + 1}",
27
- heading_size: "m"
27
+ heading_size: "m",
28
28
  } do %>
29
29
  <div class="js-add-another__destroy-checkbox">
30
30
  <%= item[:destroy_checkbox] %>
@@ -36,7 +36,7 @@
36
36
  <%= render "govuk_publishing_components/components/fieldset", {
37
37
  classes: "js-add-another__empty",
38
38
  legend_text: "#{fieldset_legend} #{items.length + 1}",
39
- heading_size: "m"
39
+ heading_size: "m",
40
40
  } do %>
41
41
  <%= empty %>
42
42
  <% end %>
@@ -44,7 +44,7 @@
44
44
  <%= render "govuk_publishing_components/components/fieldset", {
45
45
  classes: "js-add-another__fieldset",
46
46
  legend_text: "#{fieldset_legend} #{items.length + 1}",
47
- heading_size: "m"
47
+ heading_size: "m",
48
48
  } do %>
49
49
  <%= empty %>
50
50
  <% end %>
@@ -14,7 +14,7 @@
14
14
  component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
15
15
  component_helper.add_class("gem-c-attachment")
16
16
  component_helper.add_data_attribute({ module: "ga4-link-tracker" })
17
- ga4_link = { 'event_name': 'navigation', 'type': 'attachment' }
17
+ ga4_link = { 'event_name': "navigation", 'type': "attachment" }
18
18
 
19
19
  case attachment.type
20
20
  when "file"
@@ -43,7 +43,7 @@
43
43
  )
44
44
  end
45
45
 
46
- ga4_link[:event_name] = 'file_download'
46
+ ga4_link[:event_name] = "file_download"
47
47
 
48
48
  when "html"
49
49
  attributes << tag.span(
@@ -102,7 +102,7 @@
102
102
  <% end %>
103
103
 
104
104
  <% if attributes.any? %>
105
- <%= tag.p raw(attributes.join(', ')), class: "gem-c-attachment__metadata" %>
105
+ <%= tag.p raw(attributes.join(", ")), class: "gem-c-attachment__metadata" %>
106
106
  <% end %>
107
107
 
108
108
  <% if attachment.preview_url.present? %>
@@ -110,7 +110,7 @@
110
110
  <% end %>
111
111
 
112
112
  <% if attachment.is_official_document && !hide_order_copy_link %>
113
- <%= tag.p link_to(t("components.attachment.order_a_copy"), "https://www.gov.uk/guidance/how-to-buy-printed-copies-of-official-documents", class: "govuk-link govuk-link--no-visited-state", target: "_blank"),
113
+ <%= tag.p link_to(t("components.attachment.order_a_copy"), "https://www.gov.uk/guidance/how-to-buy-printed-copies-of-official-documents", class: "govuk-link govuk-link--no-visited-state", target: "_blank", rel: "noopener"),
114
114
  class: "gem-c-attachment__metadata" %>
115
115
  <% end %>
116
116
 
@@ -1,7 +1,7 @@
1
1
  <%
2
2
  add_gem_component_stylesheet("back-link")
3
3
 
4
- text ||= t('components.back_link.back')
4
+ text ||= t("components.back_link.back")
5
5
  data_attributes ||= {}
6
6
  disable_ga4 ||= false
7
7
 
@@ -13,7 +13,7 @@
13
13
 
14
14
  <%= link_to href, **component_helper.all_attributes do %>
15
15
  <svg class="gem-c-back-to-top-link__icon" xmlns="http://www.w3.org/2000/svg" width="13" height="17" viewBox="0 0 13 17" aria-hidden="true" focusable="false">
16
- <path fill="currentColor" d="M6.5 0L0 6.5 1.4 8l4-4v12.7h2V4l4.3 4L13 6.4z"/>
16
+ <path fill="currentColor" d="M6.5 0L0 6.5 1.4 8l4-4v12.7h2V4l4.3 4L13 6.4z" />
17
17
  </svg>
18
18
  <%= text %>
19
19
  <% end %>
@@ -28,7 +28,7 @@
28
28
  <% end %>
29
29
 
30
30
  <% unless label.nil? %>
31
- <% # add a virtual space here to handle screen readers printing dictations without a space between the number and the label %>
31
+ <%# add a virtual space here to handle screen readers printing dictations without a space between the number and the label %>
32
32
  <span class="govuk-visually-hidden">&nbsp;</span>
33
33
  <span class="gem-c-big-number__label">
34
34
  <%= label %>
@@ -6,9 +6,9 @@
6
6
  columns ||= false
7
7
 
8
8
  ul_classes = %w[gem-c-cards__list]
9
- ul_classes << 'gem-c-cards__list--one-column' unless columns
10
- ul_classes << 'gem-c-cards__list--two-column-desktop' if columns == 2
11
- ul_classes << 'gem-c-cards__list--three-column-desktop' if columns == 3
9
+ ul_classes << "gem-c-cards__list--one-column" unless columns
10
+ ul_classes << "gem-c-cards__list--two-column-desktop" if columns == 2
11
+ ul_classes << "gem-c-cards__list--three-column-desktop" if columns == 3
12
12
 
13
13
  shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)
14
14
  component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
@@ -25,7 +25,7 @@
25
25
  <%= heading %>
26
26
  <% end %>
27
27
  <% end %>
28
- <%= content_tag('ul', class: ul_classes ) do %>
28
+ <%= content_tag("ul", class: ul_classes ) do %>
29
29
  <%
30
30
  items.each do |item|
31
31
  link = item[:link]
@@ -17,7 +17,7 @@
17
17
  module: "govuk-character-count",
18
18
  maxlength: maxlength,
19
19
  maxwords: maxwords,
20
- threshold: threshold
20
+ threshold: threshold,
21
21
  } do %>
22
22
 
23
23
  <%= render "govuk_publishing_components/components/textarea", { textarea_id: id, character_count: true, margin_bottom: 1 }.merge(textarea.symbolize_keys) %>
@@ -27,12 +27,12 @@
27
27
  <% end %>
28
28
 
29
29
  <%= tag.div class: "govuk-checkboxes", data: {
30
- module: ('govuk-checkboxes' if cb_helper.has_conditional),
31
- nested: ('true' if cb_helper.has_nested)
30
+ module: ("govuk-checkboxes" if cb_helper.has_conditional),
31
+ nested: ("true" if cb_helper.has_nested),
32
32
  } do %>
33
33
  <% cb_helper.items.each_with_index do |item, index| %>
34
34
  <% if item === :or %>
35
- <%= tag.div t('components.checkboxes.or'), class: "govuk-checkboxes__divider" %>
35
+ <%= tag.div t("components.checkboxes.or"), class: "govuk-checkboxes__divider" %>
36
36
  <% else %>
37
37
  <%= tag.div class: "govuk-checkboxes__item" do %>
38
38
  <%= cb_helper.checkbox_markup(item, index) %>