govuk_publishing_components 68.2.0 → 69.0.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 (357) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-form-tracker.js +44 -17
  3. data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +98 -139
  4. data/app/assets/javascripts/govuk_publishing_components/components/option-select.js +26 -16
  5. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +12 -11
  6. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +3 -1
  7. data/app/assets/javascripts/govuk_publishing_components/lib/trigger-event.js +14 -11
  8. data/app/assets/stylesheets/component_guide/application.scss +7 -7
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +1 -1
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_add-another.scss +2 -2
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_app-promo-banner.scss +1 -1
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +5 -5
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss +1 -1
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_big-number.scss +1 -1
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +1 -1
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +2 -2
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +6 -5
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_character-count.scss +1 -1
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +1 -1
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +2 -2
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +1 -1
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +1 -0
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_date-input.scss +1 -1
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_details.scss +1 -1
  25. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +6 -6
  26. data/app/assets/stylesheets/govuk_publishing_components/components/_error-message.scss +1 -1
  27. data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -1
  28. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +8 -8
  29. data/app/assets/stylesheets/govuk_publishing_components/components/_fieldset.scss +1 -1
  30. data/app/assets/stylesheets/govuk_publishing_components/components/_figure.scss +1 -1
  31. data/app/assets/stylesheets/govuk_publishing_components/components/_file-upload.scss +1 -1
  32. data/app/assets/stylesheets/govuk_publishing_components/components/_hint.scss +1 -1
  33. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +6 -7
  34. data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +1 -1
  35. data/app/assets/stylesheets/govuk_publishing_components/components/_inset-text.scss +1 -1
  36. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +1 -1
  37. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +1 -1
  38. data/app/assets/stylesheets/govuk_publishing_components/components/_label.scss +1 -1
  39. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +1 -1
  40. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +1 -1
  41. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +1 -1
  42. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +15 -11
  43. data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +1 -1
  44. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +3 -3
  45. data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +1 -1
  46. data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +2 -2
  47. data/app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss +3 -3
  48. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +1 -7
  49. data/app/assets/stylesheets/govuk_publishing_components/components/_pagination.scss +1 -1
  50. data/app/assets/stylesheets/govuk_publishing_components/components/_panel.scss +1 -1
  51. data/app/assets/stylesheets/govuk_publishing_components/components/_password-input.scss +1 -1
  52. data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +1 -1
  53. data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +2 -2
  54. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +1 -1
  55. data/app/assets/stylesheets/govuk_publishing_components/components/_search-with-autocomplete.scss +1 -1
  56. data/app/assets/stylesheets/govuk_publishing_components/components/_select-with-search.scss +1 -1
  57. data/app/assets/stylesheets/govuk_publishing_components/components/_select.scss +1 -1
  58. data/app/assets/stylesheets/govuk_publishing_components/components/_service-navigation.scss +1 -1
  59. data/app/assets/stylesheets/govuk_publishing_components/components/_skip-link.scss +1 -1
  60. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +2 -2
  61. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +1 -1
  62. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +3 -3
  63. data/app/assets/stylesheets/govuk_publishing_components/components/_sub-navigation-menu.scss +1 -1
  64. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +1 -1
  65. data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +1 -1
  66. data/app/assets/stylesheets/govuk_publishing_components/components/_summary-banner.scss +1 -1
  67. data/app/assets/stylesheets/govuk_publishing_components/components/_summary-card.scss +1 -1
  68. data/app/assets/stylesheets/govuk_publishing_components/components/_summary-list.scss +1 -1
  69. data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +1 -1
  70. data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +1 -1
  71. data/app/assets/stylesheets/govuk_publishing_components/components/_tag.scss +1 -1
  72. data/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss +1 -1
  73. data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +1 -1
  74. data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +1 -1
  75. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +7 -7
  76. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +1 -1
  77. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +1 -1
  78. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +9 -8
  79. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +2 -2
  80. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +1 -1
  81. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +1 -1
  82. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss +1 -1
  83. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +2 -2
  84. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +1 -1
  85. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -1
  86. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_media-player.scss +1 -1
  87. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +1 -1
  88. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -1
  89. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +2 -2
  90. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +3 -2
  91. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +2 -2
  92. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +5 -4
  93. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_index.scss +0 -1
  94. data/app/views/govuk_publishing_components/components/_date_input.html.erb +16 -10
  95. data/app/views/govuk_publishing_components/components/_metadata.html.erb +81 -74
  96. data/app/views/govuk_publishing_components/components/_option_select.html.erb +9 -20
  97. data/app/views/govuk_publishing_components/components/docs/date_input.yml +23 -0
  98. data/lib/govuk_publishing_components/version.rb +1 -1
  99. data/node_modules/choices.js/README.md +1 -1
  100. data/node_modules/choices.js/package.json +5 -9
  101. data/node_modules/choices.js/public/assets/scripts/choices.js +32 -23
  102. data/node_modules/choices.js/public/assets/scripts/choices.min.js +2 -2
  103. data/node_modules/choices.js/public/assets/scripts/choices.mjs +32 -23
  104. data/node_modules/choices.js/public/assets/scripts/choices.search-basic.js +31 -22
  105. data/node_modules/choices.js/public/assets/scripts/choices.search-basic.min.js +2 -2
  106. data/node_modules/choices.js/public/assets/scripts/choices.search-basic.mjs +31 -22
  107. data/node_modules/choices.js/public/assets/scripts/choices.search-kmp.js +30 -21
  108. data/node_modules/choices.js/public/assets/scripts/choices.search-kmp.min.js +2 -2
  109. data/node_modules/choices.js/public/assets/scripts/choices.search-kmp.mjs +30 -21
  110. data/node_modules/choices.js/public/assets/scripts/choices.search-prefix.js +30 -21
  111. data/node_modules/choices.js/public/assets/scripts/choices.search-prefix.min.js +2 -2
  112. data/node_modules/choices.js/public/assets/scripts/choices.search-prefix.mjs +30 -21
  113. data/node_modules/choices.js/public/types/src/scripts/choices.d.ts +3 -3
  114. data/node_modules/choices.js/public/types/src/scripts/interfaces/templates.d.ts +1 -1
  115. data/node_modules/choices.js/src/scripts/choices.ts +30 -25
  116. data/node_modules/choices.js/src/scripts/components/dropdown.ts +7 -3
  117. data/node_modules/choices.js/src/scripts/interfaces/templates.ts +1 -1
  118. data/node_modules/choices.js/src/scripts/templates.ts +8 -3
  119. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +1 -1
  120. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +1 -1
  121. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
  122. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_accordion.scss +4 -1
  123. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_accordion.scss.map +1 -1
  124. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +3 -1
  125. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss.map +1 -1
  126. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_back-link.scss +4 -1
  127. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_back-link.scss.map +1 -1
  128. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss +7 -3
  129. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss.map +1 -1
  130. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_breadcrumbs.scss +4 -1
  131. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_breadcrumbs.scss.map +1 -1
  132. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss +8 -4
  133. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss.map +1 -1
  134. data/node_modules/govuk-frontend/dist/govuk/components/button/_button.scss +4 -1
  135. data/node_modules/govuk-frontend/dist/govuk/components/button/_button.scss.map +1 -1
  136. data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss +3 -1
  137. data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss.map +1 -1
  138. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_character-count.scss +4 -1
  139. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_character-count.scss.map +1 -1
  140. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +2 -0
  141. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss.map +1 -1
  142. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_checkboxes.scss +4 -1
  143. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_checkboxes.scss.map +1 -1
  144. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +10 -6
  145. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss.map +1 -1
  146. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_cookie-banner.scss +4 -1
  147. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_cookie-banner.scss.map +1 -1
  148. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +2 -0
  149. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss.map +1 -1
  150. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_date-input.scss +4 -1
  151. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_date-input.scss.map +1 -1
  152. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +2 -0
  153. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss.map +1 -1
  154. data/node_modules/govuk-frontend/dist/govuk/components/details/_details.scss +4 -1
  155. data/node_modules/govuk-frontend/dist/govuk/components/details/_details.scss.map +1 -1
  156. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +3 -1
  157. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss.map +1 -1
  158. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_error-message.scss +4 -1
  159. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_error-message.scss.map +1 -1
  160. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss +2 -0
  161. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss.map +1 -1
  162. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_error-summary.scss +4 -1
  163. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_error-summary.scss.map +1 -1
  164. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +3 -1
  165. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss.map +1 -1
  166. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_exit-this-page.scss +4 -1
  167. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_exit-this-page.scss.map +1 -1
  168. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss +3 -1
  169. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss.map +1 -1
  170. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_fieldset.scss +4 -1
  171. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_fieldset.scss.map +1 -1
  172. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss +3 -1
  173. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss.map +1 -1
  174. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_file-upload.scss +4 -1
  175. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_file-upload.scss.map +1 -1
  176. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +4 -1
  177. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss.map +1 -1
  178. data/node_modules/govuk-frontend/dist/govuk/components/footer/_footer.scss +4 -1
  179. data/node_modules/govuk-frontend/dist/govuk/components/footer/_footer.scss.map +1 -1
  180. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +2 -0
  181. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss.map +1 -1
  182. data/node_modules/govuk-frontend/dist/govuk/components/header/_header.scss +4 -1
  183. data/node_modules/govuk-frontend/dist/govuk/components/header/_header.scss.map +1 -1
  184. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +2 -0
  185. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss.map +1 -1
  186. data/node_modules/govuk-frontend/dist/govuk/components/hint/_hint.scss +4 -1
  187. data/node_modules/govuk-frontend/dist/govuk/components/hint/_hint.scss.map +1 -1
  188. data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss +2 -0
  189. data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss.map +1 -1
  190. data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +2 -0
  191. data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss.map +1 -1
  192. data/node_modules/govuk-frontend/dist/govuk/components/input/_input.scss +4 -1
  193. data/node_modules/govuk-frontend/dist/govuk/components/input/_input.scss.map +1 -1
  194. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss +5 -1
  195. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss.map +1 -1
  196. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_inset-text.scss +4 -1
  197. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_inset-text.scss.map +1 -1
  198. data/node_modules/govuk-frontend/dist/govuk/components/label/_index.scss +3 -1
  199. data/node_modules/govuk-frontend/dist/govuk/components/label/_index.scss.map +1 -1
  200. data/node_modules/govuk-frontend/dist/govuk/components/label/_label.scss +4 -1
  201. data/node_modules/govuk-frontend/dist/govuk/components/label/_label.scss.map +1 -1
  202. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +6 -2
  203. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss.map +1 -1
  204. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_notification-banner.scss +4 -1
  205. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_notification-banner.scss.map +1 -1
  206. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +2 -0
  207. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss.map +1 -1
  208. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_pagination.scss +4 -1
  209. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_pagination.scss.map +1 -1
  210. data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +3 -1
  211. data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss.map +1 -1
  212. data/node_modules/govuk-frontend/dist/govuk/components/panel/_panel.scss +4 -1
  213. data/node_modules/govuk-frontend/dist/govuk/components/panel/_panel.scss.map +1 -1
  214. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +2 -0
  215. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss.map +1 -1
  216. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_password-input.scss +4 -1
  217. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_password-input.scss.map +1 -1
  218. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +3 -1
  219. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss.map +1 -1
  220. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_phase-banner.scss +4 -1
  221. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_phase-banner.scss.map +1 -1
  222. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +14 -10
  223. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss.map +1 -1
  224. data/node_modules/govuk-frontend/dist/govuk/components/radios/_radios.scss +4 -1
  225. data/node_modules/govuk-frontend/dist/govuk/components/radios/_radios.scss.map +1 -1
  226. data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +2 -0
  227. data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss.map +1 -1
  228. data/node_modules/govuk-frontend/dist/govuk/components/select/_select.scss +4 -1
  229. data/node_modules/govuk-frontend/dist/govuk/components/select/_select.scss.map +1 -1
  230. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +5 -1
  231. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss.map +1 -1
  232. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss +4 -1
  233. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss.map +1 -1
  234. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +7 -3
  235. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss.map +1 -1
  236. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_skip-link.scss +4 -1
  237. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_skip-link.scss.map +1 -1
  238. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +15 -2
  239. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss.map +1 -1
  240. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_summary-list.scss +4 -1
  241. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_summary-list.scss.map +1 -1
  242. data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +4 -1
  243. data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss.map +1 -1
  244. data/node_modules/govuk-frontend/dist/govuk/components/table/_table.scss +4 -1
  245. data/node_modules/govuk-frontend/dist/govuk/components/table/_table.scss.map +1 -1
  246. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss +5 -2
  247. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss.map +1 -1
  248. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_tabs.scss +4 -1
  249. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_tabs.scss.map +1 -1
  250. data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +4 -1
  251. data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss.map +1 -1
  252. data/node_modules/govuk-frontend/dist/govuk/components/tag/_tag.scss +4 -1
  253. data/node_modules/govuk-frontend/dist/govuk/components/tag/_tag.scss.map +1 -1
  254. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +6 -2
  255. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss.map +1 -1
  256. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_task-list.scss +4 -1
  257. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_task-list.scss.map +1 -1
  258. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +2 -0
  259. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss.map +1 -1
  260. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_textarea.scss +4 -1
  261. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_textarea.scss.map +1 -1
  262. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +3 -1
  263. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss.map +1 -1
  264. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_warning-text.scss +4 -1
  265. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_warning-text.scss.map +1 -1
  266. data/node_modules/govuk-frontend/dist/govuk/core/_global-styles.scss +4 -0
  267. data/node_modules/govuk-frontend/dist/govuk/core/_global-styles.scss.map +1 -1
  268. data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +4 -0
  269. data/node_modules/govuk-frontend/dist/govuk/core/_index.scss.map +1 -1
  270. data/node_modules/govuk-frontend/dist/govuk/core/_links.scss +8 -0
  271. data/node_modules/govuk-frontend/dist/govuk/core/_links.scss.map +1 -1
  272. data/node_modules/govuk-frontend/dist/govuk/core/_lists.scss +10 -1
  273. data/node_modules/govuk-frontend/dist/govuk/core/_lists.scss.map +1 -1
  274. data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss +5 -0
  275. data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss.map +1 -1
  276. data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss +14 -13
  277. data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss.map +1 -1
  278. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss +1 -1
  279. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss +5 -0
  280. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss.map +1 -1
  281. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
  282. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
  283. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
  284. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +38 -70
  285. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss.map +1 -1
  286. data/node_modules/govuk-frontend/dist/govuk/helpers/_device-pixels.scss +2 -0
  287. data/node_modules/govuk-frontend/dist/govuk/helpers/_device-pixels.scss.map +1 -1
  288. data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +1 -1
  289. data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss.map +1 -1
  290. data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +3 -2
  291. data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss.map +1 -1
  292. data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +4 -4
  293. data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss.map +1 -1
  294. data/node_modules/govuk-frontend/dist/govuk/helpers/_media-queries.scss +17 -15
  295. data/node_modules/govuk-frontend/dist/govuk/helpers/_media-queries.scss.map +1 -1
  296. data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss +2 -2
  297. data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss.map +1 -1
  298. data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing.scss +19 -13
  299. data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing.scss.map +1 -1
  300. data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +48 -26
  301. data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss.map +1 -1
  302. data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss +13 -11
  303. data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss.map +1 -1
  304. data/node_modules/govuk-frontend/dist/govuk/objects/_grid.scss +4 -2
  305. data/node_modules/govuk-frontend/dist/govuk/objects/_grid.scss.map +1 -1
  306. data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.scss +10 -9
  307. data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.scss.map +1 -1
  308. data/node_modules/govuk-frontend/dist/govuk/overrides/_display.scss +2 -0
  309. data/node_modules/govuk-frontend/dist/govuk/overrides/_display.scss.map +1 -1
  310. data/node_modules/govuk-frontend/dist/govuk/overrides/_index.scss +3 -0
  311. data/node_modules/govuk-frontend/dist/govuk/overrides/_index.scss.map +1 -1
  312. data/node_modules/govuk-frontend/dist/govuk/overrides/_spacing.scss +5 -1
  313. data/node_modules/govuk-frontend/dist/govuk/overrides/_spacing.scss.map +1 -1
  314. data/node_modules/govuk-frontend/dist/govuk/overrides/_text-align.scss +2 -0
  315. data/node_modules/govuk-frontend/dist/govuk/overrides/_text-align.scss.map +1 -1
  316. data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +7 -2
  317. data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss.map +1 -1
  318. data/node_modules/govuk-frontend/dist/govuk/overrides/_width.scss +3 -0
  319. data/node_modules/govuk-frontend/dist/govuk/overrides/_width.scss.map +1 -1
  320. data/node_modules/govuk-frontend/dist/govuk/settings/_assets.scss +18 -0
  321. data/node_modules/govuk-frontend/dist/govuk/settings/_assets.scss.map +1 -1
  322. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss +28 -4
  323. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss.map +1 -1
  324. data/node_modules/govuk-frontend/dist/govuk/settings/_links.scss +3 -2
  325. data/node_modules/govuk-frontend/dist/govuk/settings/_links.scss.map +1 -1
  326. data/node_modules/govuk-frontend/dist/govuk/settings/_measurements.scss +8 -16
  327. data/node_modules/govuk-frontend/dist/govuk/settings/_measurements.scss.map +1 -1
  328. data/node_modules/govuk-frontend/dist/govuk/settings/_typography-font.scss +4 -1
  329. data/node_modules/govuk-frontend/dist/govuk/settings/_typography-font.scss.map +1 -1
  330. data/node_modules/govuk-frontend/dist/govuk/settings/_warnings.scss +15 -2
  331. data/node_modules/govuk-frontend/dist/govuk/settings/_warnings.scss.map +1 -1
  332. data/node_modules/govuk-frontend/dist/govuk/tools/_exports.scss +3 -2
  333. data/node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map +1 -1
  334. data/node_modules/govuk-frontend/dist/govuk/tools/_font-url.scss +13 -5
  335. data/node_modules/govuk-frontend/dist/govuk/tools/_font-url.scss.map +1 -1
  336. data/node_modules/govuk-frontend/dist/govuk/tools/_if.scss +24 -0
  337. data/node_modules/govuk-frontend/dist/govuk/tools/_if.scss.map +1 -0
  338. data/node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss +13 -5
  339. data/node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map +1 -1
  340. data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +1 -0
  341. data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss.map +1 -1
  342. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss +5 -3
  343. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map +1 -1
  344. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss +4 -2
  345. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss.map +1 -1
  346. data/node_modules/govuk-frontend/dist/govuk/utilities/_clearfix.scss +3 -0
  347. data/node_modules/govuk-frontend/dist/govuk/utilities/_clearfix.scss.map +1 -1
  348. data/node_modules/govuk-frontend/dist/govuk/utilities/_index.scss +1 -0
  349. data/node_modules/govuk-frontend/dist/govuk/utilities/_index.scss.map +1 -1
  350. data/node_modules/govuk-frontend/dist/govuk/utilities/_visually-hidden.scss +3 -0
  351. data/node_modules/govuk-frontend/dist/govuk/utilities/_visually-hidden.scss.map +1 -1
  352. data/node_modules/govuk-frontend/dist/govuk-prototype-kit/init.scss +3 -1
  353. data/node_modules/govuk-frontend/dist/govuk-prototype-kit/init.scss.map +1 -1
  354. data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +1 -1
  355. data/node_modules/govuk-frontend/package.json +7 -7
  356. metadata +4 -3
  357. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_grid-helper.scss +0 -145
@@ -1,7 +1,7 @@
1
1
  .gem-c-related-navigation {
2
2
  border-top: 2px solid govuk-colour("blue");
3
3
  margin-bottom: govuk-spacing(9);
4
- @include govuk-text-colour;
4
+ color: govuk-functional-colour(text);
5
5
  }
6
6
 
7
7
  .gem-c-related-navigation__main-heading {
@@ -60,7 +60,7 @@ $large-input-size: 50px;
60
60
  // for everyone. This span is added dynamically only on iOS and not given a class, so we need to
61
61
  // target it in a roundabout way and make it invisible to non-screenreader users.
62
62
  & > span {
63
- clip: rect(0 0 0 0);
63
+ clip: rect(0 0 0 0); // stylelint-disable-line property-no-deprecated
64
64
  clip-path: inset(50%);
65
65
  height: 1px;
66
66
  overflow: hidden;
@@ -14,7 +14,7 @@ $choices-border-radius-item: 0 !default;
14
14
  $choices-z-index: 2 !default;
15
15
  $choices-button-dimension: 12px !default;
16
16
 
17
- @import "govuk/components/label/label";
17
+ @import "govuk/components/label";
18
18
  @import "choices.js/src/styles/choices";
19
19
 
20
20
  .gem-c-select-with-search {
@@ -1,4 +1,4 @@
1
- @import "govuk/components/select/select";
1
+ @import "govuk/components/select";
2
2
 
3
3
  // Increase height of selects that have a `multiple`
4
4
  // attribute otherwise they are too small to be useful.
@@ -1,4 +1,4 @@
1
- @import "govuk/components/service-navigation/service-navigation";
1
+ @import "govuk/components/service-navigation";
2
2
 
3
3
  .gem-c-service-navigation--full-width {
4
4
  padding-left: govuk-spacing(3);
@@ -1 +1 @@
1
- @import "govuk/components/skip-link/skip-link";
1
+ @import "govuk/components/skip-link";
@@ -5,7 +5,7 @@
5
5
  border-bottom: solid 1px govuk-colour("blue");
6
6
  margin-top: govuk-spacing(3);
7
7
  @include govuk-font(24, $weight: bold);
8
- @include govuk-text-colour;
8
+ color: govuk-functional-colour(text);
9
9
 
10
10
  @include govuk-media-query($from: tablet) {
11
11
  padding: govuk-spacing(5);
@@ -19,7 +19,7 @@
19
19
 
20
20
  @include govuk-media-query($media-type: print) {
21
21
  .gem-c-step-nav-header {
22
- padding: 0 0 govuk-spacing(4) 0;
22
+ padding: 0 0 govuk-spacing(4);
23
23
  background: none;
24
24
  border-color: govuk-functional-colour(print-text);
25
25
  }
@@ -1,7 +1,7 @@
1
1
  .gem-c-step-nav-related {
2
2
  border-top: 2px solid govuk-colour("blue");
3
3
  margin-bottom: govuk-spacing(6);
4
- @include govuk-text-colour;
4
+ color: govuk-functional-colour(text);
5
5
  }
6
6
 
7
7
  .gem-c-step-nav-related__heading {
@@ -185,7 +185,7 @@ $top-border: solid 1px govuk-functional-colour("border");
185
185
  position: relative;
186
186
  z-index: 1; // this and relative position stops focus outline underlap with border of accordion
187
187
  margin: .5em 0 14px;
188
- padding: govuk-spacing(1) 0 govuk-spacing(1);
188
+ padding: govuk-spacing(1) 0;
189
189
  @include step-nav-font(15);
190
190
 
191
191
  .gem-c-step-nav--large & {
@@ -395,7 +395,7 @@ $top-border: solid 1px govuk-functional-colour("border");
395
395
  .gem-c-step-nav__title {
396
396
  margin: 0;
397
397
  @include step-nav-font(19, $weight: bold, $line-height: 1.4);
398
- @include govuk-text-colour;
398
+ color: govuk-functional-colour(text);
399
399
 
400
400
  .gem-c-step-nav--large & {
401
401
  @include step-nav-font(19, $tablet-size: 24, $weight: bold, $line-height: 1.4);
@@ -417,7 +417,7 @@ $top-border: solid 1px govuk-functional-colour("border");
417
417
  .gem-c-step-nav__panel {
418
418
  padding-bottom: govuk-spacing(5);
419
419
  @include step-nav-font(16);
420
- @include govuk-text-colour;
420
+ color: govuk-functional-colour(text);
421
421
 
422
422
  .gem-c-step-nav--large & {
423
423
  @include step-nav-font(16, $tablet-size: 19);
@@ -20,7 +20,7 @@
20
20
  padding-left: govuk-spacing(3);
21
21
  padding-right: govuk-spacing(3);
22
22
  // Invisible border so the width of the collapsed button is the same as the expanded one.
23
- border-left: 1px solid rgba(0, 0, 0, 0);
23
+ border-left: 1px solid rgb(0, 0, 0, 0);
24
24
  border-right: 1px solid govuk-colour("black", $variant: "tint-95");
25
25
  cursor: pointer;
26
26
  position: relative;
@@ -1,5 +1,5 @@
1
1
  .gem-c-subscription-links {
2
- @include govuk-text-colour;
2
+ color: govuk-functional-colour(text);
3
3
  @include govuk-font(19, $weight: bold);
4
4
  }
5
5
 
@@ -1,4 +1,4 @@
1
- @import "govuk/components/notification-banner/notification-banner";
1
+ @import "govuk/components/notification-banner";
2
2
 
3
3
  // stylelint-disable declaration-no-important
4
4
  @include govuk-media-query($media-type: print) {
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  .gem-c-summary-banner__title {
20
- margin: 0 0 govuk-spacing(6) 0;
20
+ margin: 0 0 govuk-spacing(6);
21
21
  color: govuk-colour("white");
22
22
  @include govuk-font(27, $weight: bold);
23
23
  }
@@ -1,4 +1,4 @@
1
- @import "govuk/components/summary-list/summary-list";
1
+ @import "govuk/components/summary-list";
2
2
 
3
3
  .gem-c-summary-card {
4
4
  .govuk-summary-list__key {
@@ -1,4 +1,4 @@
1
- @import "govuk/components/summary-list/summary-list";
1
+ @import "govuk/components/summary-list";
2
2
 
3
3
  .gem-c-summary-list {
4
4
  margin-bottom: govuk-spacing(6);
@@ -1,4 +1,4 @@
1
- @import "govuk/components/table/table";
1
+ @import "govuk/components/table";
2
2
 
3
3
  $table-border-width: 1px;
4
4
  $table-border-colour: govuk-functional-colour("border");
@@ -1,4 +1,4 @@
1
- @import "govuk/components/tabs/tabs";
1
+ @import "govuk/components/tabs";
2
2
 
3
3
  .govuk-frontend-supported {
4
4
  .gem-c-tabs__panel--no-border {
@@ -1,4 +1,4 @@
1
- @import "govuk/components/tag/tag";
1
+ @import "govuk/components/tag";
2
2
 
3
3
  .gem-c-tag {
4
4
  max-width: none;
@@ -1,4 +1,4 @@
1
- @import "govuk/components/textarea/textarea";
1
+ @import "govuk/components/textarea";
2
2
 
3
3
  .gem-c-textarea {
4
4
  .govuk-textarea {
@@ -1,7 +1,7 @@
1
1
  .gem-c-translation-nav {
2
2
  margin-bottom: govuk-spacing(6);
3
3
  border-bottom: 1px solid govuk-functional-colour(border);
4
- @include govuk-text-colour;
4
+ color: govuk-functional-colour(text);
5
5
  @include govuk-font(16);
6
6
  }
7
7
 
@@ -1,4 +1,4 @@
1
- @import "govuk/components/warning-text/warning-text";
1
+ @import "govuk/components/warning-text";
2
2
 
3
3
  .gem-c-warning-text .govuk-warning-text__text {
4
4
  margin: 0;
@@ -14,7 +14,7 @@
14
14
 
15
15
  .attachment {
16
16
  position: relative;
17
- margin: 0 0 govuk-spacing(6) 0;
17
+ margin: 0 0 govuk-spacing(6);
18
18
  padding: 0 0 0 ($thumbnail-width + govuk-spacing(6));
19
19
  @include govuk-clearfix;
20
20
 
@@ -56,12 +56,12 @@
56
56
 
57
57
  .attachment-details {
58
58
  h2 {
59
- margin: 0 0 govuk-spacing(2) 0;
59
+ margin: 0 0 govuk-spacing(2);
60
60
  @include govuk-font($size: 27);
61
61
  }
62
62
 
63
63
  p {
64
- margin: 0 0 govuk-spacing(2) 0;
64
+ margin: 0 0 govuk-spacing(2);
65
65
  }
66
66
 
67
67
  .metadata {
@@ -69,8 +69,8 @@
69
69
  }
70
70
 
71
71
  .url {
72
- word-break: break-word;
73
- word-wrap: break-word;
72
+ word-break: break-word; // stylelint-disable-line declaration-property-value-keyword-no-deprecated
73
+ overflow-wrap: break-word;
74
74
  }
75
75
 
76
76
  .changed,
@@ -103,8 +103,8 @@
103
103
  }
104
104
 
105
105
  .accessibility-warning {
106
- word-break: break-word;
107
- word-wrap: break-word;
106
+ word-break: break-word; // stylelint-disable-line declaration-property-value-keyword-no-deprecated
107
+ overflow-wrap: break-word;
108
108
 
109
109
  h2 {
110
110
  margin: 0;
@@ -1,4 +1,4 @@
1
- @import "govuk/components/button/button";
1
+ @import "govuk/components/button";
2
2
 
3
3
  .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
4
4
  .gem-c-govspeak {
@@ -9,7 +9,7 @@
9
9
  .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
10
10
  .gem-c-govspeak {
11
11
  .call-to-action {
12
- margin: 0 0 govuk-spacing(4) 0;
12
+ margin: 0 0 govuk-spacing(4);
13
13
  background-color: govuk-colour("black", $variant: "tint-95");
14
14
  padding: govuk-spacing(6);
15
15
  padding-bottom: govuk-spacing(2);
@@ -24,24 +24,23 @@
24
24
  $bar-spacing: 5px; // The spacing around the bars
25
25
  $stack-spacing: 1px; // For stacked bars, the spacing between each stack in a bar
26
26
  $caption-side: top; // Caption alignment. Top or bottom.
27
- $key-width: 160px; // Only used by IE. Other browsers get smallest width that fits content
28
27
 
29
28
  // The following accessible colour palette has been developed to meet the colour contrast requirements for adjacent colours (as set out in WCAG 2.1)
30
29
  // For charts, the palette should be used instead of the GOV.UK colour palette - https://design-system.service.gov.uk/styles/colour/
31
30
  // https://gss.civilservice.gov.uk/policy-store/data-visualisation-colours-in-charts/#section-5
32
31
 
33
- $gss-colour-dark-blue: #12436d;
34
- $gss-colour-turquoise: #1bbbaf;
35
- $gss-colour-dark-pink: #801650;
36
- $gss-colour-orange: #f46a25;
37
- $gss-colour-dark-grey: #3d3d3d;
38
- $gss-colour-plum: #a285d1;
32
+ $chart-blue-shade-50: govuk-colour("blue", $variant: "shade-50");
33
+ $chart-teal-tint-25: govuk-colour("teal", $variant: "tint-25");
34
+ $chart-magenta-shade-25: govuk-colour("magenta", $variant: "shade-25");
35
+ $chart-primary-orange: govuk-colour("orange");
36
+ $chart-green-shade-50: govuk-colour("green", $variant: "shade-50");
37
+ $chart-accent-purple: #ba4aff; // There is currently no equivalent colour in the GOV.UK palette, but this can be updated in future if one is added.
39
38
 
40
39
  // CHART COLOUR SCHEME
41
40
 
42
41
  $chart-border: govuk-colour("white"); // Chart border colour
43
42
  $key-border: govuk-colour("white"); // Key border colour
44
- $bar-colours: $gss-colour-dark-blue, $gss-colour-turquoise, $gss-colour-dark-pink, $gss-colour-orange, $gss-colour-dark-grey, $gss-colour-plum;
43
+ $bar-colours: $chart-blue-shade-50, $chart-teal-tint-25, $chart-magenta-shade-25, $chart-primary-orange, $chart-green-shade-50, $chart-accent-purple;
45
44
  $bar-text-colours: govuk-colour("white"), govuk-colour("black"), govuk-colour("white"), govuk-colour("black"), govuk-colour("white"), govuk-colour("black");
46
45
  $bar-cell-colour: govuk-colour("black");
47
46
  $bar-outdented-colour: govuk-colour("black");
@@ -148,6 +147,7 @@
148
147
  margin-bottom: 1px;
149
148
  color: govuk-colour("white");
150
149
  text-indent: $bar-padding;
150
+ font-weight: $govuk-font-weight-bold;
151
151
  }
152
152
 
153
153
  // Bar colours
@@ -175,6 +175,7 @@
175
175
  text-align: $label-align;
176
176
  display: table-cell;
177
177
  vertical-align: middle;
178
+ font-weight: $govuk-font-weight-bold;
178
179
  }
179
180
  }
180
181
  }
@@ -14,7 +14,7 @@
14
14
  .contact {
15
15
  border-left: 1px solid govuk-functional-colour("border");
16
16
  padding-left: govuk-spacing(3);
17
- margin: 0 0 govuk-spacing(6) 0;
17
+ margin: 0 0 govuk-spacing(6);
18
18
  }
19
19
 
20
20
  .address {
@@ -38,7 +38,7 @@
38
38
 
39
39
  .email-url-number {
40
40
  .email {
41
- word-wrap: break-word;
41
+ overflow-wrap: break-word;
42
42
  }
43
43
 
44
44
  span {
@@ -10,7 +10,7 @@
10
10
  .example {
11
11
  border-left: 10px solid govuk-functional-colour("border");
12
12
  padding: govuk-spacing(4) 0 0.1234px govuk-spacing(4); // non-zero padding on bottom keeps margin of last element inside parent, simulating padding
13
- margin: 0 0 govuk-spacing(4) 0;
13
+ margin: 0 0 govuk-spacing(4);
14
14
 
15
15
  strong {
16
16
  display: block;
@@ -15,7 +15,7 @@
15
15
  .gem-c-govspeak {
16
16
  .footnotes {
17
17
  border-top: 1px solid govuk-functional-colour("border");
18
- margin: 0 0 govuk-spacing(4) 0;
18
+ margin: 0 0 govuk-spacing(4);
19
19
  padding-top: govuk-spacing(4);
20
20
  overflow-wrap: break-word;
21
21
 
@@ -1,7 +1,7 @@
1
1
  .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
2
2
  .gem-c-govspeak {
3
3
  .form-download {
4
- margin: 0 0 govuk-spacing(4) 0;
4
+ margin: 0 0 govuk-spacing(4);
5
5
 
6
6
  p {
7
7
  padding-right: 3em;
@@ -13,7 +13,7 @@
13
13
  }
14
14
 
15
15
  figure {
16
- margin: 0 0 govuk-spacing(4) 0;
16
+ margin: 0 0 govuk-spacing(4);
17
17
  display: table;
18
18
 
19
19
  &:has(img[src*=".svg"]) {
@@ -31,7 +31,7 @@
31
31
  }
32
32
 
33
33
  figcaption p {
34
- margin: govuk-spacing(2) 0 0 0;
34
+ margin: govuk-spacing(2) 0 0;
35
35
  color: govuk-functional-colour(secondary-text);
36
36
  @include govuk-font(19);
37
37
  }
@@ -11,7 +11,7 @@
11
11
  .info-notice {
12
12
  border-left: 10px solid govuk-functional-colour("border");
13
13
  padding: govuk-spacing(4) 0 0.1234px govuk-spacing(4); // non-zero padding on bottom keeps margin of last element inside parent, simulating padding
14
- margin: 0 0 govuk-spacing(4) 0;
14
+ margin: 0 0 govuk-spacing(4);
15
15
 
16
16
  @include govuk-media-query($media-type: print) {
17
17
  margin: govuk-spacing(3) 0;
@@ -9,7 +9,7 @@
9
9
  .gem-c-govspeak {
10
10
  .legislative-list {
11
11
  list-style: none;
12
- margin: 0 0 govuk-spacing(4) 0;
12
+ margin: 0 0 govuk-spacing(4);
13
13
 
14
14
  ol {
15
15
  margin: govuk-spacing(2) 0 govuk-spacing(2) govuk-spacing(6);
@@ -9,7 +9,7 @@
9
9
  position: relative;
10
10
  height: 0;
11
11
  overflow: hidden;
12
- margin: 0 0 govuk-spacing(4) 0;
12
+ margin: 0 0 govuk-spacing(4);
13
13
  padding-top: 0;
14
14
  padding-left: 0;
15
15
  padding-right: 0;
@@ -2,7 +2,7 @@
2
2
  .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
3
3
  .gem-c-govspeak {
4
4
  .place {
5
- margin: 0 0 govuk-spacing(4) 0;
5
+ margin: 0 0 govuk-spacing(4);
6
6
  border-bottom: solid 1px govuk-functional-colour("border");
7
7
  padding-bottom: 1.5em;
8
8
 
@@ -8,7 +8,7 @@
8
8
  .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
9
9
  .gem-c-govspeak {
10
10
  .stat-headline {
11
- margin: 0 0 govuk-spacing(4) 0;
11
+ margin: 0 0 govuk-spacing(4);
12
12
 
13
13
  p {
14
14
  margin: 0;
@@ -11,7 +11,7 @@
11
11
  border-collapse: collapse;
12
12
  border-spacing: 0;
13
13
  display: block;
14
- margin: 0 0 govuk-spacing(6) 0;
14
+ margin: 0 0 govuk-spacing(6);
15
15
  overflow-x: auto;
16
16
  width: 100%;
17
17
  @include govuk-font($size: 19);
@@ -28,7 +28,7 @@
28
28
  border-bottom: 1px solid govuk-functional-colour("border");
29
29
 
30
30
  &:last-child {
31
- padding: govuk-spacing(2) 0 govuk-spacing(2) 0;
31
+ padding: govuk-spacing(2) 0;
32
32
  }
33
33
  }
34
34
 
@@ -34,7 +34,7 @@
34
34
 
35
35
  blockquote {
36
36
  padding: 0 0 0 govuk-spacing(6);
37
- margin: 0 0 govuk-spacing(4) 0;
37
+ margin: 0 0 govuk-spacing(4);
38
38
  border: 0;
39
39
 
40
40
  p {
@@ -80,7 +80,7 @@
80
80
  a[href^="/"]:after,a[href^="http://"]:after,a[href^="https://"]:after {
81
81
  content: " (" attr(href) ")";
82
82
  font-size: 90%;
83
- word-wrap: break-word;
83
+ overflow-wrap: break-word;
84
84
  }
85
85
  }
86
86
  }
@@ -88,6 +88,7 @@
88
88
  .gem-c-govspeak--inverse {
89
89
  color: govuk-colour("white");
90
90
 
91
+ // stylelint-disable-next-line selector-no-qualifying-type
91
92
  a:not(.govuk-button) {
92
93
  @include govuk-link-common;
93
94
  @include govuk-link-style-inverse;
@@ -6,7 +6,7 @@
6
6
  // - alphagov/whitehall: ✔︎
7
7
  // - alphagov/govspeak: ✔︎
8
8
 
9
- @import "govuk/components/warning-text/warning-text";
9
+ @import "govuk/components/warning-text";
10
10
 
11
11
  // stylelint-disable max-nesting-depth
12
12
  .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
@@ -16,7 +16,7 @@
16
16
  $icon-spacing: 10px;
17
17
 
18
18
  padding: govuk-spacing(3) 0 0 calc($icon-size + $icon-spacing);
19
- margin: 0 0 govuk-spacing(6) 0;
19
+ margin: 0 0 govuk-spacing(6);
20
20
  position: relative;
21
21
 
22
22
  &::before {
@@ -1,11 +1,11 @@
1
1
  @mixin markdown-typography {
2
- @include govuk-text-colour;
2
+ color: govuk-functional-colour(text);
3
3
  @include govuk-font($size: 16);
4
4
 
5
5
  ol,
6
6
  ul,
7
7
  p {
8
- margin: 0 0 govuk-spacing(4) 0;
8
+ margin: 0 0 govuk-spacing(4);
9
9
  @include govuk-font($size: 19);
10
10
  }
11
11
 
@@ -30,13 +30,13 @@
30
30
  }
31
31
 
32
32
  h2 {
33
- margin: 0 0 govuk-spacing(4) 0;
33
+ margin: 0 0 govuk-spacing(4);
34
34
  @include govuk-font($size: 24, $weight: bold);
35
35
  @include govuk-text-break-word;
36
36
  }
37
37
 
38
38
  h3 {
39
- margin: 0 0 govuk-spacing(4) 0;
39
+ margin: 0 0 govuk-spacing(4);
40
40
  @include govuk-font($size: 19, $weight: bold);
41
41
  @include govuk-text-break-word;
42
42
  }
@@ -53,6 +53,7 @@
53
53
 
54
54
  // Links
55
55
 
56
+ // stylelint-disable-next-line selector-no-qualifying-type
56
57
  a:not(.govuk-button) {
57
58
  @include govuk-link-common;
58
59
  @include govuk-link-style-default;
@@ -1,4 +1,3 @@
1
- @import "grid-helper";
2
1
  @import "high-contrast-outline";
3
2
  @import "margins";
4
3
  @import "prefixed-transform";
@@ -8,30 +8,34 @@
8
8
  ]
9
9
  autocomplete_date_of_birth ||= nil
10
10
  legend_text ||= nil
11
+ legend_heading_level ||= nil
12
+ legend_size ||= nil
11
13
  hint ||= nil
12
14
  error_message ||= nil
13
15
  error_items ||= []
14
- describedby ||= nil
15
- has_error ||= error_message || error_items.any?
16
+ error_id ||= nil
17
+ has_error ||= error_message || error_items.any? || error_id
16
18
 
17
19
  css_classes = %w(gem-c-date-input govuk-date-input)
18
20
  form_group_css_classes = %w(govuk-form-group)
19
21
  form_group_css_classes << "govuk-form-group--error" if has_error
20
22
 
21
23
  hint_id = "hint-#{SecureRandom.hex(4)}"
22
- error_id = "error-#{SecureRandom.hex(4)}"
24
+ error_id = error_id || "error-#{SecureRandom.hex(4)}"
23
25
 
24
- aria_described_by ||= nil
25
- if hint || has_error || describedby
26
+ aria_described_by = nil
27
+ if hint || has_error
26
28
  aria_described_by = []
27
- aria_described_by << hint_id if hint
29
+ aria_described_by << hint_id if hint && !has_error
28
30
  aria_described_by << error_id if has_error
29
- aria_described_by << describedby if describedby
30
31
  aria_described_by = aria_described_by.join(" ")
31
32
  end
33
+
34
+ component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
35
+ component_helper.add_class(form_group_css_classes.join(" "))
32
36
  %>
33
37
 
34
- <%= content_tag :div, class: form_group_css_classes do %>
38
+ <%= tag.div(**component_helper.all_attributes) do %>
35
39
  <% fieldset_content = capture do %>
36
40
  <% if hint %>
37
41
  <%= render "govuk_publishing_components/components/hint", {
@@ -41,7 +45,7 @@
41
45
  } %>
42
46
  <% end %>
43
47
 
44
- <% if has_error %>
48
+ <% if error_message || error_items.any? %>
45
49
  <%= render "govuk_publishing_components/components/error_message", {
46
50
  id: error_id,
47
51
  text: error_message,
@@ -62,6 +66,7 @@
62
66
  value: item[:value],
63
67
  width: item[:width],
64
68
  id: item[:id],
69
+ describedby: aria_described_by,
65
70
  type: "number",
66
71
  data: item[:data],
67
72
  autocomplete: autocomplete_date_of_birth ? "bday-#{item[:name]}" : nil,
@@ -73,8 +78,9 @@
73
78
 
74
79
  <% if legend_text %>
75
80
  <%= render "govuk_publishing_components/components/fieldset", {
76
- describedby: aria_described_by,
77
81
  legend_text: legend_text,
82
+ heading_level: legend_heading_level,
83
+ heading_size: legend_size,
78
84
  text: fieldset_content,
79
85
  role: "group",
80
86
  } %>