govuk_publishing_components 35.3.2 → 35.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (271) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +11 -5
  3. data/app/assets/stylesheets/component_guide/application.scss +37 -1
  4. data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +8 -59
  5. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +10 -6
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +2 -2
  7. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +24 -0
  8. data/app/views/govuk_publishing_components/component_guide/example.html.erb +1 -1
  9. data/app/views/govuk_publishing_components/component_guide/preview.html.erb +1 -1
  10. data/app/views/govuk_publishing_components/component_guide/show.html.erb +1 -1
  11. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +49 -57
  12. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +3 -3
  13. data/app/views/govuk_publishing_components/components/_metadata.html.erb +1 -1
  14. data/app/views/govuk_publishing_components/components/_share_links.html.erb +6 -2
  15. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +1 -1
  16. data/app/views/govuk_publishing_components/components/docs/metadata.yml +1 -3
  17. data/app/views/govuk_publishing_components/components/docs/organisation_logo.yml +5 -5
  18. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_related.yml +1 -0
  19. data/app/views/layouts/govuk_publishing_components/application.html.erb +1 -0
  20. data/config/locales/cy.yml +1 -1
  21. data/lib/govuk_publishing_components/app_helpers/asset_helper.rb +4 -0
  22. data/lib/govuk_publishing_components/presenters/breadcrumbs_helper.rb +1 -1
  23. data/lib/govuk_publishing_components/version.rb +1 -1
  24. data/node_modules/axe-core/axe.d.ts +77 -6
  25. data/node_modules/axe-core/axe.js +955 -600
  26. data/node_modules/axe-core/axe.min.js +2 -2
  27. data/node_modules/axe-core/locales/_template.json +6 -6
  28. data/node_modules/axe-core/locales/ja.json +91 -11
  29. data/node_modules/axe-core/package.json +5 -5
  30. data/node_modules/axe-core/sri-history.json +4 -0
  31. data/node_modules/govuk-frontend/README.md +4 -5
  32. data/node_modules/govuk-frontend/govuk/all-ie8.scss +8 -0
  33. data/node_modules/govuk-frontend/govuk/all.js +738 -258
  34. data/node_modules/govuk-frontend/govuk/all.js.map +1 -1
  35. data/node_modules/govuk-frontend/govuk/common/closest-attribute-value.js +11 -7
  36. data/node_modules/govuk-frontend/govuk/common/closest-attribute-value.js.map +1 -1
  37. data/node_modules/govuk-frontend/govuk/common/govuk-frontend-version.js +17 -0
  38. data/node_modules/govuk-frontend/govuk/common/govuk-frontend-version.js.map +1 -0
  39. data/node_modules/govuk-frontend/govuk/common/index.js +16 -4
  40. data/node_modules/govuk-frontend/govuk/common/index.js.map +1 -1
  41. data/node_modules/govuk-frontend/govuk/common/normalise-dataset.js +20 -10
  42. data/node_modules/govuk-frontend/govuk/common/normalise-dataset.js.map +1 -1
  43. data/node_modules/govuk-frontend/govuk/common.js +16 -4
  44. data/node_modules/govuk-frontend/govuk/common.js.map +1 -1
  45. data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +3 -3
  46. data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +234 -86
  47. data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js.map +1 -1
  48. data/node_modules/govuk-frontend/govuk/components/accordion/fixtures.json +32 -13
  49. data/node_modules/govuk-frontend/govuk/components/accordion/macro-options.json +8 -2
  50. data/node_modules/govuk-frontend/govuk/components/accordion/template.njk +1 -0
  51. data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +1 -1
  52. data/node_modules/govuk-frontend/govuk/components/back-link/fixtures.json +1 -1
  53. data/node_modules/govuk-frontend/govuk/components/back-link/macro-options.json +1 -1
  54. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +1 -1
  55. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/fixtures.json +12 -12
  56. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/macro-options.json +1 -1
  57. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +8 -6
  58. data/node_modules/govuk-frontend/govuk/components/button/button.js +54 -19
  59. data/node_modules/govuk-frontend/govuk/components/button/button.js.map +1 -1
  60. data/node_modules/govuk-frontend/govuk/components/button/fixtures.json +11 -1
  61. data/node_modules/govuk-frontend/govuk/components/button/macro-options.json +7 -1
  62. data/node_modules/govuk-frontend/govuk/components/button/template.njk +1 -1
  63. data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +170 -76
  64. data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js.map +1 -1
  65. data/node_modules/govuk-frontend/govuk/components/character-count/fixtures.json +24 -24
  66. data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +3 -3
  67. data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +6 -6
  68. data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +75 -24
  69. data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js.map +1 -1
  70. data/node_modules/govuk-frontend/govuk/components/checkboxes/fixtures.json +47 -47
  71. data/node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json +1 -1
  72. data/node_modules/govuk-frontend/govuk/components/checkboxes/template.njk +3 -3
  73. data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +24 -24
  74. data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +1 -1
  75. data/node_modules/govuk-frontend/govuk/components/date-input/fixtures.json +26 -26
  76. data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +1 -1
  77. data/node_modules/govuk-frontend/govuk/components/date-input/template.njk +1 -1
  78. data/node_modules/govuk-frontend/govuk/components/details/details.js +39 -13
  79. data/node_modules/govuk-frontend/govuk/components/details/details.js.map +1 -1
  80. data/node_modules/govuk-frontend/govuk/components/details/fixtures.json +1 -1
  81. data/node_modules/govuk-frontend/govuk/components/details/macro-options.json +1 -1
  82. data/node_modules/govuk-frontend/govuk/components/error-message/fixtures.json +10 -10
  83. data/node_modules/govuk-frontend/govuk/components/error-message/macro-options.json +1 -1
  84. data/node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js +67 -27
  85. data/node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js.map +1 -1
  86. data/node_modules/govuk-frontend/govuk/components/error-summary/fixtures.json +19 -19
  87. data/node_modules/govuk-frontend/govuk/components/error-summary/macro-options.json +1 -1
  88. data/node_modules/govuk-frontend/govuk/components/fieldset/fixtures.json +19 -19
  89. data/node_modules/govuk-frontend/govuk/components/fieldset/macro-options.json +1 -1
  90. data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +6 -1
  91. data/node_modules/govuk-frontend/govuk/components/file-upload/fixtures.json +14 -14
  92. data/node_modules/govuk-frontend/govuk/components/file-upload/macro-options.json +7 -1
  93. data/node_modules/govuk-frontend/govuk/components/file-upload/template.njk +2 -1
  94. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +0 -7
  95. data/node_modules/govuk-frontend/govuk/components/footer/fixtures.json +24 -24
  96. data/node_modules/govuk-frontend/govuk/components/footer/macro-options.json +1 -1
  97. data/node_modules/govuk-frontend/govuk/components/header/fixtures.json +22 -22
  98. data/node_modules/govuk-frontend/govuk/components/header/header.js +46 -14
  99. data/node_modules/govuk-frontend/govuk/components/header/header.js.map +1 -1
  100. data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +1 -1
  101. data/node_modules/govuk-frontend/govuk/components/header/template.njk +1 -1
  102. data/node_modules/govuk-frontend/govuk/components/hint/fixtures.json +1 -1
  103. data/node_modules/govuk-frontend/govuk/components/hint/macro-options.json +1 -1
  104. data/node_modules/govuk-frontend/govuk/components/input/_index.scss +15 -3
  105. data/node_modules/govuk-frontend/govuk/components/input/fixtures.json +54 -41
  106. data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +7 -1
  107. data/node_modules/govuk-frontend/govuk/components/input/template.njk +2 -1
  108. data/node_modules/govuk-frontend/govuk/components/inset-text/fixtures.json +1 -1
  109. data/node_modules/govuk-frontend/govuk/components/inset-text/macro-options.json +1 -1
  110. data/node_modules/govuk-frontend/govuk/components/label/fixtures.json +6 -6
  111. data/node_modules/govuk-frontend/govuk/components/label/macro-options.json +1 -1
  112. data/node_modules/govuk-frontend/govuk/components/notification-banner/fixtures.json +1 -1
  113. data/node_modules/govuk-frontend/govuk/components/notification-banner/macro-options.json +1 -1
  114. data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +49 -22
  115. data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js.map +1 -1
  116. data/node_modules/govuk-frontend/govuk/components/pagination/fixtures.json +16 -16
  117. data/node_modules/govuk-frontend/govuk/components/pagination/macro-options.json +1 -1
  118. data/node_modules/govuk-frontend/govuk/components/panel/fixtures.json +10 -10
  119. data/node_modules/govuk-frontend/govuk/components/panel/macro-options.json +1 -1
  120. data/node_modules/govuk-frontend/govuk/components/phase-banner/fixtures.json +1 -1
  121. data/node_modules/govuk-frontend/govuk/components/phase-banner/macro-options.json +1 -1
  122. data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +5 -5
  123. data/node_modules/govuk-frontend/govuk/components/radios/fixtures.json +46 -46
  124. data/node_modules/govuk-frontend/govuk/components/radios/macro-options.json +1 -1
  125. data/node_modules/govuk-frontend/govuk/components/radios/radios.js +65 -22
  126. data/node_modules/govuk-frontend/govuk/components/radios/radios.js.map +1 -1
  127. data/node_modules/govuk-frontend/govuk/components/radios/template.njk +2 -2
  128. data/node_modules/govuk-frontend/govuk/components/select/_index.scss +7 -1
  129. data/node_modules/govuk-frontend/govuk/components/select/fixtures.json +19 -20
  130. data/node_modules/govuk-frontend/govuk/components/select/macro-options.json +7 -1
  131. data/node_modules/govuk-frontend/govuk/components/select/template.njk +5 -2
  132. data/node_modules/govuk-frontend/govuk/components/skip-link/fixtures.json +1 -1
  133. data/node_modules/govuk-frontend/govuk/components/skip-link/macro-options.json +1 -1
  134. data/node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js +41 -13
  135. data/node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js.map +1 -1
  136. data/node_modules/govuk-frontend/govuk/components/summary-list/fixtures.json +34 -34
  137. data/node_modules/govuk-frontend/govuk/components/summary-list/macro-options.json +1 -1
  138. data/node_modules/govuk-frontend/govuk/components/table/fixtures.json +21 -21
  139. data/node_modules/govuk-frontend/govuk/components/table/macro-options.json +1 -1
  140. data/node_modules/govuk-frontend/govuk/components/tabs/fixtures.json +15 -15
  141. data/node_modules/govuk-frontend/govuk/components/tabs/macro-options.json +1 -1
  142. data/node_modules/govuk-frontend/govuk/components/tabs/tabs.js +178 -60
  143. data/node_modules/govuk-frontend/govuk/components/tabs/tabs.js.map +1 -1
  144. data/node_modules/govuk-frontend/govuk/components/tabs/template.njk +1 -1
  145. data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +18 -18
  146. data/node_modules/govuk-frontend/govuk/components/tag/fixtures.json +1 -1
  147. data/node_modules/govuk-frontend/govuk/components/tag/macro-options.json +1 -1
  148. data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +8 -1
  149. data/node_modules/govuk-frontend/govuk/components/textarea/fixtures.json +18 -18
  150. data/node_modules/govuk-frontend/govuk/components/textarea/macro-options.json +7 -1
  151. data/node_modules/govuk-frontend/govuk/components/textarea/template.njk +2 -1
  152. data/node_modules/govuk-frontend/govuk/components/warning-text/fixtures.json +9 -5
  153. data/node_modules/govuk-frontend/govuk/components/warning-text/macro-options.json +3 -3
  154. data/node_modules/govuk-frontend/govuk/components/warning-text/template.njk +1 -1
  155. data/node_modules/govuk-frontend/govuk/core/_all.scss +1 -0
  156. data/node_modules/govuk-frontend/govuk/core/_govuk-frontend-version.scss +5 -0
  157. data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +5 -2
  158. data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +1 -1
  159. data/node_modules/govuk-frontend/govuk/helpers/_font-faces.scss +1 -1
  160. data/node_modules/govuk-frontend/govuk/i18n.js +38 -30
  161. data/node_modules/govuk-frontend/govuk/i18n.js.map +1 -1
  162. data/node_modules/govuk-frontend/govuk/macros/i18n.njk +12 -11
  163. data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +1 -1
  164. data/node_modules/govuk-frontend/govuk/settings/_colours-organisations.scss +4 -0
  165. data/node_modules/govuk-frontend/govuk/settings/_ie8.scss +16 -0
  166. data/node_modules/govuk-frontend/govuk/settings/_links.scss +5 -1
  167. data/node_modules/govuk-frontend/govuk/tools/_ie8.scss +38 -2
  168. data/node_modules/govuk-frontend/govuk/vendor/polyfills/DOMTokenList.js +2 -1
  169. data/node_modules/govuk-frontend/govuk/vendor/polyfills/DOMTokenList.js.map +1 -1
  170. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Date/now.js +2 -1
  171. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Date/now.js.map +1 -1
  172. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Document.js +2 -1
  173. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Document.js.map +1 -1
  174. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/classList.js +10 -3
  175. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/classList.js.map +1 -1
  176. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/closest.js +4 -1
  177. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/closest.js.map +1 -1
  178. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/dataset.js +13 -7
  179. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/dataset.js.map +1 -1
  180. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js +2 -1
  181. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js.map +1 -1
  182. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/nextElementSibling.js +8 -2
  183. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/nextElementSibling.js.map +1 -1
  184. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/previousElementSibling.js +8 -2
  185. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/previousElementSibling.js.map +1 -1
  186. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element.js +4 -1
  187. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element.js.map +1 -1
  188. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Event.js +10 -3
  189. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Event.js.map +1 -1
  190. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Function/prototype/bind.js +4 -1
  191. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Function/prototype/bind.js.map +1 -1
  192. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Object/defineProperty.js +2 -1
  193. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Object/defineProperty.js.map +1 -1
  194. data/node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js +3 -2
  195. data/node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js.map +1 -1
  196. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Window.js +2 -1
  197. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Window.js.map +1 -1
  198. data/node_modules/govuk-frontend/govuk-esm/all.mjs +81 -60
  199. data/node_modules/govuk-frontend/govuk-esm/all.mjs.map +1 -0
  200. data/node_modules/govuk-frontend/govuk-esm/common/closest-attribute-value.mjs +12 -8
  201. data/node_modules/govuk-frontend/govuk-esm/common/closest-attribute-value.mjs.map +1 -0
  202. data/node_modules/govuk-frontend/govuk-esm/common/govuk-frontend-version.mjs +9 -0
  203. data/node_modules/govuk-frontend/govuk-esm/common/govuk-frontend-version.mjs.map +1 -0
  204. data/node_modules/govuk-frontend/govuk-esm/common/index.mjs +44 -29
  205. data/node_modules/govuk-frontend/govuk-esm/common/index.mjs.map +1 -0
  206. data/node_modules/govuk-frontend/govuk-esm/common/normalise-dataset.mjs +15 -9
  207. data/node_modules/govuk-frontend/govuk-esm/common/normalise-dataset.mjs.map +1 -0
  208. data/node_modules/govuk-frontend/govuk-esm/common.mjs +3 -5
  209. data/node_modules/govuk-frontend/govuk-esm/common.mjs.map +1 -0
  210. data/node_modules/govuk-frontend/govuk-esm/components/accordion/accordion.mjs +319 -211
  211. data/node_modules/govuk-frontend/govuk-esm/components/accordion/accordion.mjs.map +1 -0
  212. data/node_modules/govuk-frontend/govuk-esm/components/button/button.mjs +47 -30
  213. data/node_modules/govuk-frontend/govuk-esm/components/button/button.mjs.map +1 -0
  214. data/node_modules/govuk-frontend/govuk-esm/components/character-count/character-count.mjs +169 -115
  215. data/node_modules/govuk-frontend/govuk-esm/components/character-count/character-count.mjs.map +1 -0
  216. data/node_modules/govuk-frontend/govuk-esm/components/checkboxes/checkboxes.mjs +88 -51
  217. data/node_modules/govuk-frontend/govuk-esm/components/checkboxes/checkboxes.mjs.map +1 -0
  218. data/node_modules/govuk-frontend/govuk-esm/components/details/details.mjs +64 -54
  219. data/node_modules/govuk-frontend/govuk-esm/components/details/details.mjs.map +1 -0
  220. data/node_modules/govuk-frontend/govuk-esm/components/error-summary/error-summary.mjs +69 -50
  221. data/node_modules/govuk-frontend/govuk-esm/components/error-summary/error-summary.mjs.map +1 -0
  222. data/node_modules/govuk-frontend/govuk-esm/components/header/header.mjs +59 -35
  223. data/node_modules/govuk-frontend/govuk-esm/components/header/header.mjs.map +1 -0
  224. data/node_modules/govuk-frontend/govuk-esm/components/notification-banner/notification-banner.mjs +36 -25
  225. data/node_modules/govuk-frontend/govuk-esm/components/notification-banner/notification-banner.mjs.map +1 -0
  226. data/node_modules/govuk-frontend/govuk-esm/components/radios/radios.mjs +67 -38
  227. data/node_modules/govuk-frontend/govuk-esm/components/radios/radios.mjs.map +1 -0
  228. data/node_modules/govuk-frontend/govuk-esm/components/skip-link/skip-link.mjs +49 -32
  229. data/node_modules/govuk-frontend/govuk-esm/components/skip-link/skip-link.mjs.map +1 -0
  230. data/node_modules/govuk-frontend/govuk-esm/components/tabs/tabs.mjs +263 -163
  231. data/node_modules/govuk-frontend/govuk-esm/components/tabs/tabs.mjs.map +1 -0
  232. data/node_modules/govuk-frontend/govuk-esm/i18n.mjs +68 -57
  233. data/node_modules/govuk-frontend/govuk-esm/i18n.mjs.map +1 -0
  234. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/DOMTokenList.mjs +5 -3
  235. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/DOMTokenList.mjs.map +1 -0
  236. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Date/now.mjs +4 -2
  237. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Date/now.mjs.map +1 -0
  238. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Document.mjs +4 -2
  239. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Document.mjs.map +1 -0
  240. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/classList.mjs +7 -4
  241. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/classList.mjs.map +1 -0
  242. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/closest.mjs +5 -2
  243. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/closest.mjs.map +1 -0
  244. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/dataset.mjs +13 -10
  245. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/dataset.mjs.map +1 -0
  246. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs +4 -2
  247. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/matches.mjs.map +1 -0
  248. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/nextElementSibling.mjs +6 -3
  249. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/nextElementSibling.mjs.map +1 -0
  250. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/previousElementSibling.mjs +6 -3
  251. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element/prototype/previousElementSibling.mjs.map +1 -0
  252. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element.mjs +5 -2
  253. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Element.mjs.map +1 -0
  254. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Event.mjs +7 -4
  255. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Event.mjs.map +1 -0
  256. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Function/prototype/bind.mjs +5 -2
  257. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Function/prototype/bind.mjs.map +1 -0
  258. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Object/defineProperty.mjs +4 -2
  259. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Object/defineProperty.mjs.map +1 -0
  260. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/String/prototype/trim.mjs +5 -3
  261. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/String/prototype/trim.mjs.map +1 -0
  262. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Window.mjs +4 -2
  263. data/node_modules/govuk-frontend/govuk-esm/vendor/polyfills/Window.mjs.map +1 -0
  264. data/node_modules/govuk-frontend/govuk-prototype-kit/init.js +1 -0
  265. data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +2 -1
  266. data/node_modules/govuk-frontend/package.json +3 -2
  267. metadata +43 -6
  268. /data/app/assets/images/govuk_publishing_components/crests/{dit_crest_13px.png → dbt_crest_13px.png} +0 -0
  269. /data/app/assets/images/govuk_publishing_components/crests/{dit_crest_13px_x2.png → dbt_crest_13px_x2.png} +0 -0
  270. /data/app/assets/images/govuk_publishing_components/crests/{dit_crest_18px.png → dbt_crest_18px.png} +0 -0
  271. /data/app/assets/images/govuk_publishing_components/crests/{dit_crest_18px_x2.png → dbt_crest_18px_x2.png} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66ace2c61b08a0641bc1234bf1e1b34e3e2e184ad07f554bde39c60280e58dd5
4
- data.tar.gz: fb3dbf387e8e668bf81b2b13c8c73a5152d3d4c2e570f7b2743e96f424b70680
3
+ metadata.gz: 680ad90c110fd479938af6d7191ee00f4302d83df0b7a01de864e4c1d041d2c6
4
+ data.tar.gz: 825f5839667e7faf94b1ce951b9437dfd17e522f98b8490e915420528004cb75
5
5
  SHA512:
6
- metadata.gz: da81d3abeeb7d15ea0c74d1f428df7a9d7856ce078a50e63c8e66da7e244dea937f6600a457592c5ebafc1615dd623a8cc81e578e2a8eae4de97e7fa8fb7b779
7
- data.tar.gz: c2dcc61e03d0999871fca19f559833717892cb67ab16ed198eb8266fe06fe0d58a6465d65eae4e62c3aa84865732216ffeb8e224b2cb9f84fb8a2ae5ef089491
6
+ metadata.gz: 57cc038c7b44cb48595d58da00c9aebc0c5d5afec0ee5d45632313332c47c52f8f9218e5148c41202cbfd97b7c518fcb8f2a84d3d06434467ce188313dcd72eb
7
+ data.tar.gz: 12e48e88a698772f7e7af0a51828a4bcbfcc48a232c2b4353672d325a39f2ffbb8248bed39adab960fe45a4d01f44c35e24e665e11a77e131c1940533871bdb2
@@ -76,7 +76,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
76
76
 
77
77
  CookieBanner.prototype.setCookieConsent = function () {
78
78
  if (this.$acceptCookiesButton.getAttribute('data-cookie-types') === 'all') {
79
- this.$module.querySelector('.gem-c-cookie-banner__confirmation-message__accepted').hidden = false
79
+ this.$module.querySelector('.gem-c-cookie-banner__confirmation-message--accepted').hidden = false
80
80
  }
81
81
  window.GOVUK.approveAllCookieTypes()
82
82
  this.$module.showConfirmationMessage()
@@ -92,7 +92,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
92
92
  }
93
93
 
94
94
  CookieBanner.prototype.rejectCookieConsent = function () {
95
- this.$module.querySelector('.gem-c-cookie-banner__confirmation-message__rejected').hidden = false
95
+ this.$module.querySelector('.gem-c-cookie-banner__confirmation-message--rejected').hidden = false
96
96
  this.$module.showConfirmationMessage()
97
97
  this.$module.cookieBannerConfirmationMessage.focus()
98
98
  window.GOVUK.cookie('cookies_preferences_set', 'true', { days: 365 })
@@ -100,11 +100,17 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
100
100
  }
101
101
 
102
102
  CookieBanner.prototype.showConfirmationMessage = function () {
103
- this.$cookieBannerMainContent = document.querySelector('.js-banner-wrapper')
103
+ this.$cookieBannerHeader = document.querySelector('.govuk-cookie-banner__heading')
104
+ this.$cookieBannerHeader.hidden = true
104
105
 
106
+ this.$cookieBannerMainContent = document.querySelector('.gem-c-cookie-banner__content')
105
107
  this.$cookieBannerMainContent.hidden = true
106
- this.$module.cookieBannerConfirmationMessage.style.display = 'block'
107
- this.$module.cookieBannerConfirmationMessage.hidden = false
108
+
109
+ this.$cookieBannerConfirmationButtons = document.querySelector('.js-confirmation-buttons')
110
+ this.$cookieBannerConfirmationButtons.hidden = true
111
+
112
+ this.$cookieBannerHideButton = document.querySelector('.js-hide-button')
113
+ this.$cookieBannerHideButton.hidden = false
108
114
  }
109
115
 
110
116
  CookieBanner.prototype.isInCookiesPage = function () {
@@ -1,6 +1,42 @@
1
1
  // This file contains the styles for the Component Guide.
2
2
 
3
- @import "govuk_publishing_components/all_components";
3
+ // feature flag for accessible link styles
4
+ $govuk-new-link-styles: true;
5
+
6
+ @import "govuk_publishing_components/govuk_frontend_support";
7
+ @import "govuk_publishing_components/component_support";
8
+
9
+ // Import the same stylesheets used in static
10
+ // https://github.com/alphagov/static/blob/198a598682df40ce4a2c3c286c06244297c18cf0/app/assets/stylesheets/application.scss
11
+ // Although the component guide does not use static, we still need to import the same stylesheets used in static
12
+ // to avoid any rendering issues
13
+ // By following the same approach as frontend rendering applications,
14
+ // we ensure that stylesheets are loaded in the expected order and components render correctly
15
+ @import "govuk_publishing_components/components/breadcrumbs";
16
+ @import "govuk_publishing_components/components/button";
17
+ @import "govuk_publishing_components/components/error-message";
18
+ @import "govuk_publishing_components/components/heading";
19
+ @import "govuk_publishing_components/components/hint";
20
+ @import "govuk_publishing_components/components/input";
21
+ @import "govuk_publishing_components/components/label";
22
+ @import "govuk_publishing_components/components/search";
23
+ @import "govuk_publishing_components/components/skip-link";
24
+ @import "govuk_publishing_components/components/textarea";
25
+ @import "govuk_publishing_components/components/title";
26
+
27
+ @import "govuk_publishing_components/components/cookie-banner";
28
+ @import "govuk_publishing_components/components/feedback";
29
+ @import "govuk_publishing_components/components/layout-footer";
30
+ @import "govuk_publishing_components/components/layout-for-public";
31
+ @import "govuk_publishing_components/components/layout-header";
32
+ @import "govuk_publishing_components/components/layout-super-navigation-header";
33
+
34
+ // Imported to ensure inverse-header component examples render correctly
35
+ // this helps avoid any issues with visual regressions tests
36
+ @import "govuk_publishing_components/components/lead-paragraph";
37
+
38
+ // Include required helpers
39
+ @import "../../stylesheets/govuk_publishing_components/components/helpers/markdown-typography";
4
40
 
5
41
  $gem-guide-border-width: 1px;
6
42
 
@@ -1,6 +1,13 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
  @import "govuk/components/cookie-banner/cookie-banner";
3
- $govuk-cookie-banner-background: govuk-colour("light-grey", "grey-4");
3
+
4
+ .gem-c-cookie-banner .govuk-button-group[hidden] {
5
+ display: none;
6
+ }
7
+
8
+ .govuk-cookie-banner .govuk-cookie-banner__heading[hidden] {
9
+ display: none;
10
+ }
4
11
 
5
12
  .js-enabled {
6
13
  .gem-c-cookie-banner {
@@ -8,20 +15,12 @@ $govuk-cookie-banner-background: govuk-colour("light-grey", "grey-4");
8
15
  }
9
16
  }
10
17
 
11
- .gem-c-cookie-banner {
12
- background-color: $govuk-cookie-banner-background;
13
- }
14
-
15
18
  // can't be used without js so implement there
16
19
  .gem-c-cookie-banner .gem-c-button {
17
20
  display: none;
18
21
  }
19
22
 
20
23
  .gem-c-cookie-banner__confirmation {
21
- display: none;
22
- position: relative;
23
- padding: govuk-spacing(1);
24
-
25
24
  // This element is focused using JavaScript so that it's being read out by screen readers
26
25
  // for this reason we don't want to show the default outline or emphasise it visually using `govuk-focused-text`
27
26
  &:focus {
@@ -29,56 +28,6 @@ $govuk-cookie-banner-background: govuk-colour("light-grey", "grey-4");
29
28
  }
30
29
  }
31
30
 
32
- .gem-c-cookie-banner__confirmation-message,
33
- .gem-c-cookie-banner__hide-button {
34
- display: block;
35
-
36
- @include govuk-media-query($from: desktop) {
37
- display: inline-block;
38
- }
39
- }
40
-
41
- .gem-c-cookie-banner__confirmation-message {
42
- margin-right: govuk-spacing(4);
43
-
44
- @include govuk-media-query($from: desktop) {
45
- max-width: 90%;
46
- margin-bottom: 0;
47
- }
48
- }
49
-
50
- // Override style from design system so we can have consistent
51
- // padding on the the banner and the confirmation
52
-
53
- .govuk-cookie-banner {
54
- padding-top: 0;
55
- }
56
-
57
- // Override the styles from govuk_template
58
- // stylelint-disable selector-max-id
59
- .gem-c-cookie-banner#global-cookie-message {
60
- background-color: $govuk-cookie-banner-background;
61
- padding: govuk-spacing(3) 0 0 0;
62
- box-sizing: border-box;
63
-
64
- .gem-c-cookie-banner__message,
65
- .gem-c-cookie-banner__buttons,
66
- .gem-c-cookie-banner__confirmation,
67
- .gem-c-cookie-banner__confirmation-message {
68
- @include govuk-font($size: 19);
69
- }
70
-
71
- p {
72
- @include govuk-font($size: 19);
73
- margin: 0 0 govuk-spacing(2) 0;
74
- }
75
-
76
- .gem-c-cookie-banner__message,
77
- .gem-c-cookie-banner__confirmation {
78
- margin-bottom: - govuk-spacing(2);
79
- }
80
- }
81
-
82
31
  @include govuk-media-query($media-type: print) {
83
32
  .gem-c-cookie-banner {
84
33
  display: none !important; // stylelint-disable-line declaration-no-important
@@ -23,16 +23,20 @@
23
23
  }
24
24
 
25
25
  .gem-c-metadata--inverse {
26
+ background-color: govuk-colour("blue");
26
27
  color: govuk-colour("white");
28
+ padding: govuk-spacing(2);
27
29
 
28
- a:link,
29
- a:active,
30
- a:visited {
31
- color: govuk-colour("white");
30
+ a {
31
+ @include govuk-link-style-inverse;
32
32
  }
33
33
 
34
- a:focus {
35
- color: govuk-colour("black");
34
+ .gem-c-metadata__list {
35
+ margin: govuk-spacing(2);
36
+
37
+ @include govuk-media-query($from: tablet) {
38
+ margin: govuk-spacing(3);
39
+ }
36
40
  }
37
41
  }
38
42
 
@@ -109,8 +109,8 @@
109
109
  }
110
110
  }
111
111
 
112
- .gem-c-organisation-logo__crest--dit {
113
- @include crest("dit_crest");
112
+ .gem-c-organisation-logo__crest--dbt {
113
+ @include crest("dbt_crest");
114
114
  }
115
115
 
116
116
  .gem-c-organisation-logo__crest--bis {
@@ -96,3 +96,27 @@
96
96
  border-color: #045f71;
97
97
  }
98
98
  }
99
+
100
+ // This change should be removed after relevant govuk-frontend release
101
+
102
+ .brand--department-for-business-and-trade {
103
+ .brand__color {
104
+ color: #cf102d;
105
+
106
+ &:link,
107
+ &:visited,
108
+ &:active {
109
+ color: #cf102d;
110
+ }
111
+
112
+ &:hover,
113
+ &:focus {
114
+ color: $govuk-focus-text-colour;
115
+ }
116
+ }
117
+
118
+ &.brand__border-color,
119
+ .brand__border-color {
120
+ border-color: #cf102d;
121
+ }
122
+ }
@@ -1,6 +1,6 @@
1
1
  <% content_for :title, "#{@component_example.name} example - #{@component_doc.name} component" %>
2
2
  <% content_for :application_stylesheet do %>
3
- <% if @component_doc.source == "application" %>
3
+ <% if @component_doc.source == "application" && application_stylesheet_in_use? %>
4
4
  <%= render 'application_stylesheet' %>
5
5
  <% end %>
6
6
  <% end %>
@@ -1,5 +1,5 @@
1
1
  <% content_for :application_stylesheet do %>
2
- <% if @component_doc.source == "application" %>
2
+ <% if @component_doc.source == "application" && application_stylesheet_in_use? %>
3
3
  <%= render 'application_stylesheet' %>
4
4
  <% end %>
5
5
  <% end %>
@@ -1,6 +1,6 @@
1
1
  <% content_for :title, "#{@component_doc.name} component" %>
2
2
  <% content_for :application_stylesheet do %>
3
- <% if @component_doc.source == "application" %>
3
+ <% if @component_doc.source == "application" && application_stylesheet_in_use? %>
4
4
  <%= render 'application_stylesheet' %>
5
5
  <% end %>
6
6
  <% end %>
@@ -28,71 +28,63 @@
28
28
  },
29
29
  )))
30
30
  services_cookies ||= nil
31
- css_classes = %w(gem-c-cookie-banner govuk-clearfix)
31
+ css_classes = %w(gem-c-cookie-banner govuk-clearfix govuk-cookie-banner js-banner-wrapper)
32
32
  css_classes << "gem-c-cookie-banner--services" if services_cookies
33
33
  %>
34
+
34
35
  <div id="<%= id %>" class="<%= css_classes.join(' ') %>" data-module="cookie-banner" data-nosnippet role="region" aria-label="<%= title %>">
35
- <div class="govuk-cookie-banner js-banner-wrapper">
36
- <div class="gem-c-cookie-banner__message govuk-cookie-banner__message govuk-width-container">
37
- <div class="govuk-grid-row">
38
- <div class="govuk-grid-column-two-thirds">
39
- <h2 class="govuk-cookie-banner__heading govuk-heading-m"><%= title %></h2>
40
- <div class="govuk-cookie-banner__content">
41
- <%= text %>
42
- </div>
36
+ <div class="govuk-cookie-banner__message govuk-width-container">
37
+ <div class="govuk-grid-row">
38
+ <div class="govuk-grid-column-two-thirds">
39
+ <h2 class="govuk-cookie-banner__heading govuk-heading-m"><%= title %></h2>
40
+ <div tabindex="-1" class="govuk-cookie-banner__content gem-c-cookie-banner__confirmation">
41
+ <span class="gem-c-cookie-banner__content"><%= text %></span>
42
+ <p class="gem-c-cookie-banner__confirmation-message--accepted govuk-body" hidden><%= t("components.cookie_banner.confirmation_message.accepted") %>. <span class="gem-c-cookie-banner__confirmation-message"><%= confirmation_message %></span></p>
43
+ <p class="gem-c-cookie-banner__confirmation-message--rejected govuk-body" hidden><%= t("components.cookie_banner.confirmation_message.rejected") %>. <span class="gem-c-cookie-banner__confirmation-message"><%= confirmation_message %></span></p>
43
44
  </div>
44
45
  </div>
46
+ </div>
47
+ <div class="js-confirmation-buttons govuk-button-group">
45
48
  <% if services_cookies %>
46
- <div class="govuk-button-group">
47
- <%= render "govuk_publishing_components/components/button", {
48
- name: "cookies",
49
- text: services_cookies.dig(:yes, :text) || "Yes",
50
- data_attributes: { module: "gem-track-click", "accept-cookies": "true", }.merge(services_cookies.dig(:yes, :data_attributes) || {})
51
- } %>
52
- <%= render "govuk_publishing_components/components/button", {
53
- name: "cookies",
54
- text: services_cookies.dig(:no, :text) || "No",
55
- data_attributes: { module: "gem-track-click", "reject-cookies": "true", }.merge(services_cookies.dig(:no, :data_attributes) || {})
56
- } %>
57
- <% if services_cookies[:cookie_preferences] %>
58
- <%= link_to services_cookies.dig(:cookie_preferences, :text), services_cookies.dig(:cookie_preferences, :href), class: "govuk-link" %>
59
- <% end %>
60
- </div>
61
- <% else %>
62
- <div class="govuk-button-group">
63
- <%= render "govuk_publishing_components/components/button", {
64
- name: "cookies",
65
- text: t("components.cookie_banner.buttons.accept_cookies"),
66
- data_attributes: {
67
- module: "gem-track-click",
68
- "accept-cookies": "true",
69
- "track-category": "cookieBanner",
70
- "track-action": "Cookie banner accepted",
71
- "cookie-types": "all",
72
- }
73
- } %>
74
- <%= render "govuk_publishing_components/components/button", {
75
- name: "cookies",
76
- text: t("components.cookie_banner.buttons.reject_cookies"),
77
- data_attributes: {
78
- module: "gem-track-click",
79
- "reject-cookies": "true",
80
- "track-category": "cookieBanner",
81
- "track-action": "Cookie banner rejected",
82
- }
83
- } %>
84
- <a class="govuk-link" href="<%= cookie_preferences_href %>"><%= t("components.cookie_banner.buttons.view_cookies") %></a>
85
- </div>
49
+ <%= render "govuk_publishing_components/components/button", {
50
+ name: "cookies",
51
+ text: services_cookies.dig(:yes, :text) || "Yes",
52
+ data_attributes: { module: "gem-track-click", "accept-cookies": "true", }.merge(services_cookies.dig(:yes, :data_attributes) || {})
53
+ } %>
54
+ <%= render "govuk_publishing_components/components/button", {
55
+ name: "cookies",
56
+ text: services_cookies.dig(:no, :text) || "No",
57
+ data_attributes: { module: "gem-track-click", "reject-cookies": "true", }.merge(services_cookies.dig(:no, :data_attributes) || {})
58
+ } %>
59
+ <% if services_cookies[:cookie_preferences] %>
60
+ <%= link_to services_cookies.dig(:cookie_preferences, :text), services_cookies.dig(:cookie_preferences, :href), class: "govuk-link" %>
86
61
  <% end %>
62
+ <% else %>
63
+ <%= render "govuk_publishing_components/components/button", {
64
+ name: "cookies",
65
+ text: t("components.cookie_banner.buttons.accept_cookies"),
66
+ data_attributes: {
67
+ module: "gem-track-click",
68
+ "accept-cookies": "true",
69
+ "track-category": "cookieBanner",
70
+ "track-action": "Cookie banner accepted",
71
+ "cookie-types": "all",
72
+ }
73
+ } %>
74
+ <%= render "govuk_publishing_components/components/button", {
75
+ name: "cookies",
76
+ text: t("components.cookie_banner.buttons.reject_cookies"),
77
+ data_attributes: {
78
+ module: "gem-track-click",
79
+ "reject-cookies": "true",
80
+ "track-category": "cookieBanner",
81
+ "track-action": "Cookie banner rejected",
82
+ }
83
+ } %>
84
+ <a class="govuk-link" href="<%= cookie_preferences_href %>"><%= t("components.cookie_banner.buttons.view_cookies") %></a>
85
+ <% end %>
87
86
  </div>
88
- </div>
89
- <div class="gem-c-cookie-banner__confirmation govuk-width-container" tabindex="-1" hidden>
90
- <p class="gem-c-cookie-banner__confirmation-message" role="alert">
91
- <span class="gem-c-cookie-banner__confirmation-message__accepted" hidden><%= t("components.cookie_banner.confirmation_message.accepted") %>. </span>
92
- <span class="gem-c-cookie-banner__confirmation-message__rejected" hidden><%= t("components.cookie_banner.confirmation_message.rejected") %>. </span>
93
- <%= confirmation_message %>
94
- </p>
95
- <div class="govuk-button-group">
87
+ <div hidden class="js-hide-button govuk-button-group">
96
88
  <button class="gem-c-cookie-banner__hide-button govuk-button" data-hide-cookie-banner="true" data-module="gem-track-click" data-track-category="cookieBanner" data-track-action="Hide cookie banner"><%= t("components.cookie_banner.hide") %></button>
97
89
  </div>
98
90
  </div>
@@ -126,8 +126,8 @@
126
126
  text: link[:label],
127
127
  index: {
128
128
  index_section: 1,
129
+ index_section_count: 2,
129
130
  },
130
- index_total: 2,
131
131
  section: link[:label]
132
132
  }
133
133
  },
@@ -159,8 +159,8 @@
159
159
  "text": "Search",
160
160
  "index": {
161
161
  "index_section": 2,
162
+ "index_section_count": 2,
162
163
  },
163
- "index_total": 2,
164
164
  "section": "Search"
165
165
  }.to_json %>"
166
166
  >
@@ -270,7 +270,7 @@
270
270
  class="gem-c-layout-super-navigation-header__search-form"
271
271
  id="search"
272
272
  data-module="ga4-form-tracker"
273
- data-ga4-form='{ "event_name": "search", "type": "header menu bar", "section": "Search GOV.UK", "action": "Search", "url": "/search/all" }'
273
+ data-ga4-form='{ "event_name": "search", "type": "header menu bar", "section": "Search GOV.UK", "action": "search", "url": "/search/all" }'
274
274
  data-ga4-form-include-text
275
275
  action="/search"
276
276
  method="get"
@@ -20,7 +20,7 @@
20
20
  classes << shared_helper.get_margin_bottom if local_assigns[:margin_bottom]
21
21
  %>
22
22
  <%= content_tag :div, class: classes, data: { module: "gem-toggle metadata" } do %>
23
- <dl data-module="gem-track-click">
23
+ <dl class="gem-c-metadata__list" data-module="gem-track-click">
24
24
  <% if from.any? %>
25
25
  <dt class="gem-c-metadata__term"><%= t("components.metadata.from") %>:</dt>
26
26
  <dd class="gem-c-metadata__definition">
@@ -54,7 +54,9 @@
54
54
  ga4_link_data = {
55
55
  'event_name': 'share',
56
56
  'type': 'share this page',
57
- 'index': index + 1,
57
+ 'index': {
58
+ 'index_link': index + 1,
59
+ },
58
60
  'index_total': links.length,
59
61
  'text': link[:icon],
60
62
  }
@@ -63,7 +65,9 @@
63
65
  ga4_link_data = {
64
66
  'event_name': 'navigation',
65
67
  'type': 'follow us',
66
- 'index': index + 1,
68
+ 'index': {
69
+ 'index_link': index + 1,
70
+ },
67
71
  'index_total': links.length
68
72
  }
69
73
  end
@@ -31,7 +31,7 @@
31
31
  "index_link": "1"
32
32
  },
33
33
  index_total: "1",
34
- section: "Part of",
34
+ section: pretitle,
35
35
  }.to_json
36
36
  %>
37
37
  data-ga4-link="<%= ga4_attributes %>"
@@ -12,7 +12,7 @@ shared_accessibility_criteria:
12
12
  accessibility_excluded_rules:
13
13
  - skip-link # This component is creating a reference to sections of the page that are not part of the examples.
14
14
  examples:
15
- from_only:
15
+ default:
16
16
  data:
17
17
  from: <a href='/government/organisations/ministry-of-defence'>Ministry of Defence</a>
18
18
  part_of_only:
@@ -355,8 +355,6 @@ examples:
355
355
  see_updates_link: true
356
356
  other:
357
357
  Applies to: England, Scotland, and Wales (see detailed guidance for <a href="http://www.dardni.gov.uk/news-dard-pa022-a-13-new-procedure-for" rel="external">Northern Ireland</a>)
358
- context:
359
- dark_background: true
360
358
  with_custom_margin_bottom:
361
359
  description: |
362
360
  The component accepts a number for margin bottom from `0` to `9` (`0px` to `60px`) using the [GOV.UK Frontend spacing scale](https://design-system.service.gov.uk/styles/spacing/#the-responsive-spacing-scale). It defaults to the `margin-bottom` values defined in the [responsive-bottom-margin mixin](https://github.com/alphagov/govuk_publishing_components/blob/main/app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss#L1)
@@ -41,13 +41,13 @@ examples:
41
41
  url: '/government/organisations/department-for-business-innovation-skills'
42
42
  brand: 'department-for-business-innovation-skills'
43
43
  crest: 'bis'
44
- department_for_international_trade:
44
+ department_for_business_and_trade:
45
45
  data:
46
46
  organisation:
47
- name: 'Department for<br>International Trade'
48
- url: '/government/organisations/department-for-international-trade'
49
- brand: 'department-for-international-trade'
50
- crest: 'dit'
47
+ name: 'Department for<br>Business &amp; Trade'
48
+ url: '/government/organisations/department-for-business-and-trade'
49
+ brand: 'department-for-business-and-trade'
50
+ crest: 'dbt'
51
51
  executive_office:
52
52
  data:
53
53
  organisation:
@@ -80,6 +80,7 @@ examples:
80
80
  description: The ga4_tracking boolean allows you to add Google Analytics 4 (GA4) tracking to your component. Setting this to true will add the `ga4-link-tracker` module to your component. The JavaScript will then add a `data-ga4-link` attribute which contains a JSON object with data relevant to our tracking. See the [ga4-link-tracker docs](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/ga4-link-tracker.md) for more information.
81
81
  data:
82
82
  ga4_tracking: true
83
+ pretitle: 'Example pretitle'
83
84
  links: [
84
85
  {
85
86
  href: '#',
@@ -18,6 +18,7 @@
18
18
 
19
19
  <%= stylesheet_link_tag "component_guide/application", media: "all" %>
20
20
  <%= yield :application_stylesheet %>
21
+ <%= render_component_stylesheets %>
21
22
 
22
23
  <%= javascript_include_tag "govuk_publishing_components/vendor/modernizr" %>
23
24
  <%= yield :extra_headers %>
@@ -176,7 +176,7 @@ cy:
176
176
  label: Chwilio ar GOV.UK
177
177
  search_button: Chwilio
178
178
  share_links:
179
- all_opens_in_new_tab:
179
+ all_opens_in_new_tab: Bydd rhannu yn agor y dudalen hon mewn tab newydd
180
180
  opens_in_new_tab:
181
181
  show_password:
182
182
  announce_hide: Mae eich cyfrinair wedi'i guddio
@@ -72,6 +72,10 @@ module GovukPublishingComponents
72
72
  COMPONENT_CSS_PATHS
73
73
  end
74
74
 
75
+ def application_stylesheet_in_use?
76
+ GovukPublishingComponents::Config.application_stylesheet.presence
77
+ end
78
+
75
79
  private
76
80
 
77
81
  def is_already_used?(component)
@@ -60,7 +60,7 @@ module GovukPublishingComponents
60
60
  },
61
61
  ga4_link: {
62
62
  event_name: "navigation",
63
- type: "breadcrumbs",
63
+ type: "breadcrumb",
64
64
  index: {
65
65
  index_link: index.to_s,
66
66
  },
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "35.3.2".freeze
2
+ VERSION = "35.3.4".freeze
3
3
  end