govuk_publishing_components 68.3.0 → 69.0.1

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 (330) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +98 -139
  3. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/magna-charta.js +11 -0
  4. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +3 -1
  5. data/app/assets/javascripts/govuk_publishing_components/lib/trigger-event.js +14 -11
  6. data/app/assets/stylesheets/component_guide/application.scss +3 -3
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +1 -1
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_add-another.scss +2 -2
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_app-promo-banner.scss +1 -1
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss +1 -1
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_big-number.scss +1 -1
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +1 -1
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +2 -2
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_character-count.scss +1 -1
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +1 -1
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +2 -2
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +1 -1
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_date-input.scss +1 -1
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_details.scss +1 -1
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +4 -4
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_error-message.scss +1 -1
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -1
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +4 -4
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_fieldset.scss +1 -1
  25. data/app/assets/stylesheets/govuk_publishing_components/components/_file-upload.scss +1 -1
  26. data/app/assets/stylesheets/govuk_publishing_components/components/_hint.scss +1 -1
  27. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +1 -1
  28. data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +1 -1
  29. data/app/assets/stylesheets/govuk_publishing_components/components/_inset-text.scss +1 -1
  30. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +1 -1
  31. data/app/assets/stylesheets/govuk_publishing_components/components/_label.scss +1 -1
  32. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +1 -1
  33. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +1 -1
  34. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +8 -5
  35. data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +1 -1
  36. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +2 -2
  37. data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +1 -1
  38. data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +1 -1
  39. data/app/assets/stylesheets/govuk_publishing_components/components/_pagination.scss +1 -1
  40. data/app/assets/stylesheets/govuk_publishing_components/components/_panel.scss +1 -1
  41. data/app/assets/stylesheets/govuk_publishing_components/components/_password-input.scss +1 -1
  42. data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +1 -1
  43. data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +1 -1
  44. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +1 -1
  45. data/app/assets/stylesheets/govuk_publishing_components/components/_select-with-search.scss +1 -1
  46. data/app/assets/stylesheets/govuk_publishing_components/components/_select.scss +1 -1
  47. data/app/assets/stylesheets/govuk_publishing_components/components/_service-navigation.scss +1 -1
  48. data/app/assets/stylesheets/govuk_publishing_components/components/_skip-link.scss +1 -1
  49. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +1 -1
  50. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +1 -1
  51. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +2 -2
  52. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +1 -1
  53. data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +1 -1
  54. data/app/assets/stylesheets/govuk_publishing_components/components/_summary-card.scss +1 -1
  55. data/app/assets/stylesheets/govuk_publishing_components/components/_summary-list.scss +1 -1
  56. data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +1 -1
  57. data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +1 -1
  58. data/app/assets/stylesheets/govuk_publishing_components/components/_tag.scss +1 -1
  59. data/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss +1 -1
  60. data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +1 -1
  61. data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +1 -1
  62. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +1 -1
  63. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +22 -10
  64. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -1
  65. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +1 -1
  66. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_index.scss +0 -1
  67. data/app/views/govuk_publishing_components/components/_date_input.html.erb +16 -10
  68. data/app/views/govuk_publishing_components/components/_metadata.html.erb +81 -74
  69. data/app/views/govuk_publishing_components/components/docs/date_input.yml +23 -0
  70. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +33 -4
  71. data/lib/govuk_publishing_components/version.rb +1 -1
  72. data/node_modules/choices.js/README.md +1 -1
  73. data/node_modules/choices.js/package.json +5 -9
  74. data/node_modules/choices.js/public/assets/scripts/choices.js +32 -23
  75. data/node_modules/choices.js/public/assets/scripts/choices.min.js +2 -2
  76. data/node_modules/choices.js/public/assets/scripts/choices.mjs +32 -23
  77. data/node_modules/choices.js/public/assets/scripts/choices.search-basic.js +31 -22
  78. data/node_modules/choices.js/public/assets/scripts/choices.search-basic.min.js +2 -2
  79. data/node_modules/choices.js/public/assets/scripts/choices.search-basic.mjs +31 -22
  80. data/node_modules/choices.js/public/assets/scripts/choices.search-kmp.js +30 -21
  81. data/node_modules/choices.js/public/assets/scripts/choices.search-kmp.min.js +2 -2
  82. data/node_modules/choices.js/public/assets/scripts/choices.search-kmp.mjs +30 -21
  83. data/node_modules/choices.js/public/assets/scripts/choices.search-prefix.js +30 -21
  84. data/node_modules/choices.js/public/assets/scripts/choices.search-prefix.min.js +2 -2
  85. data/node_modules/choices.js/public/assets/scripts/choices.search-prefix.mjs +30 -21
  86. data/node_modules/choices.js/public/types/src/scripts/choices.d.ts +3 -3
  87. data/node_modules/choices.js/public/types/src/scripts/interfaces/templates.d.ts +1 -1
  88. data/node_modules/choices.js/src/scripts/choices.ts +30 -25
  89. data/node_modules/choices.js/src/scripts/components/dropdown.ts +7 -3
  90. data/node_modules/choices.js/src/scripts/interfaces/templates.ts +1 -1
  91. data/node_modules/choices.js/src/scripts/templates.ts +8 -3
  92. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +1 -1
  93. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +1 -1
  94. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
  95. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_accordion.scss +4 -1
  96. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_accordion.scss.map +1 -1
  97. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +3 -1
  98. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss.map +1 -1
  99. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_back-link.scss +4 -1
  100. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_back-link.scss.map +1 -1
  101. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss +7 -3
  102. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss.map +1 -1
  103. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_breadcrumbs.scss +4 -1
  104. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_breadcrumbs.scss.map +1 -1
  105. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss +8 -4
  106. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss.map +1 -1
  107. data/node_modules/govuk-frontend/dist/govuk/components/button/_button.scss +4 -1
  108. data/node_modules/govuk-frontend/dist/govuk/components/button/_button.scss.map +1 -1
  109. data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss +3 -1
  110. data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss.map +1 -1
  111. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_character-count.scss +4 -1
  112. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_character-count.scss.map +1 -1
  113. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +2 -0
  114. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss.map +1 -1
  115. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_checkboxes.scss +4 -1
  116. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_checkboxes.scss.map +1 -1
  117. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +10 -6
  118. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss.map +1 -1
  119. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_cookie-banner.scss +4 -1
  120. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_cookie-banner.scss.map +1 -1
  121. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +2 -0
  122. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss.map +1 -1
  123. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_date-input.scss +4 -1
  124. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_date-input.scss.map +1 -1
  125. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +2 -0
  126. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss.map +1 -1
  127. data/node_modules/govuk-frontend/dist/govuk/components/details/_details.scss +4 -1
  128. data/node_modules/govuk-frontend/dist/govuk/components/details/_details.scss.map +1 -1
  129. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +3 -1
  130. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss.map +1 -1
  131. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_error-message.scss +4 -1
  132. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_error-message.scss.map +1 -1
  133. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss +2 -0
  134. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss.map +1 -1
  135. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_error-summary.scss +4 -1
  136. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_error-summary.scss.map +1 -1
  137. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +3 -1
  138. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss.map +1 -1
  139. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_exit-this-page.scss +4 -1
  140. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_exit-this-page.scss.map +1 -1
  141. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss +3 -1
  142. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss.map +1 -1
  143. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_fieldset.scss +4 -1
  144. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_fieldset.scss.map +1 -1
  145. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss +3 -1
  146. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss.map +1 -1
  147. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_file-upload.scss +4 -1
  148. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_file-upload.scss.map +1 -1
  149. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +4 -1
  150. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss.map +1 -1
  151. data/node_modules/govuk-frontend/dist/govuk/components/footer/_footer.scss +4 -1
  152. data/node_modules/govuk-frontend/dist/govuk/components/footer/_footer.scss.map +1 -1
  153. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +2 -0
  154. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss.map +1 -1
  155. data/node_modules/govuk-frontend/dist/govuk/components/header/_header.scss +4 -1
  156. data/node_modules/govuk-frontend/dist/govuk/components/header/_header.scss.map +1 -1
  157. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +2 -0
  158. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss.map +1 -1
  159. data/node_modules/govuk-frontend/dist/govuk/components/hint/_hint.scss +4 -1
  160. data/node_modules/govuk-frontend/dist/govuk/components/hint/_hint.scss.map +1 -1
  161. data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss +2 -0
  162. data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss.map +1 -1
  163. data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +2 -0
  164. data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss.map +1 -1
  165. data/node_modules/govuk-frontend/dist/govuk/components/input/_input.scss +4 -1
  166. data/node_modules/govuk-frontend/dist/govuk/components/input/_input.scss.map +1 -1
  167. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss +5 -1
  168. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss.map +1 -1
  169. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_inset-text.scss +4 -1
  170. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_inset-text.scss.map +1 -1
  171. data/node_modules/govuk-frontend/dist/govuk/components/label/_index.scss +3 -1
  172. data/node_modules/govuk-frontend/dist/govuk/components/label/_index.scss.map +1 -1
  173. data/node_modules/govuk-frontend/dist/govuk/components/label/_label.scss +4 -1
  174. data/node_modules/govuk-frontend/dist/govuk/components/label/_label.scss.map +1 -1
  175. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +6 -2
  176. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss.map +1 -1
  177. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_notification-banner.scss +4 -1
  178. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_notification-banner.scss.map +1 -1
  179. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +2 -0
  180. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss.map +1 -1
  181. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_pagination.scss +4 -1
  182. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_pagination.scss.map +1 -1
  183. data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +3 -1
  184. data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss.map +1 -1
  185. data/node_modules/govuk-frontend/dist/govuk/components/panel/_panel.scss +4 -1
  186. data/node_modules/govuk-frontend/dist/govuk/components/panel/_panel.scss.map +1 -1
  187. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +2 -0
  188. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss.map +1 -1
  189. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_password-input.scss +4 -1
  190. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_password-input.scss.map +1 -1
  191. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +3 -1
  192. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss.map +1 -1
  193. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_phase-banner.scss +4 -1
  194. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_phase-banner.scss.map +1 -1
  195. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +14 -10
  196. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss.map +1 -1
  197. data/node_modules/govuk-frontend/dist/govuk/components/radios/_radios.scss +4 -1
  198. data/node_modules/govuk-frontend/dist/govuk/components/radios/_radios.scss.map +1 -1
  199. data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +2 -0
  200. data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss.map +1 -1
  201. data/node_modules/govuk-frontend/dist/govuk/components/select/_select.scss +4 -1
  202. data/node_modules/govuk-frontend/dist/govuk/components/select/_select.scss.map +1 -1
  203. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +5 -1
  204. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss.map +1 -1
  205. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss +4 -1
  206. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss.map +1 -1
  207. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +7 -3
  208. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss.map +1 -1
  209. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_skip-link.scss +4 -1
  210. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_skip-link.scss.map +1 -1
  211. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +15 -2
  212. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss.map +1 -1
  213. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_summary-list.scss +4 -1
  214. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_summary-list.scss.map +1 -1
  215. data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +4 -1
  216. data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss.map +1 -1
  217. data/node_modules/govuk-frontend/dist/govuk/components/table/_table.scss +4 -1
  218. data/node_modules/govuk-frontend/dist/govuk/components/table/_table.scss.map +1 -1
  219. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss +5 -2
  220. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss.map +1 -1
  221. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_tabs.scss +4 -1
  222. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_tabs.scss.map +1 -1
  223. data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +4 -1
  224. data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss.map +1 -1
  225. data/node_modules/govuk-frontend/dist/govuk/components/tag/_tag.scss +4 -1
  226. data/node_modules/govuk-frontend/dist/govuk/components/tag/_tag.scss.map +1 -1
  227. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +6 -2
  228. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss.map +1 -1
  229. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_task-list.scss +4 -1
  230. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_task-list.scss.map +1 -1
  231. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +2 -0
  232. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss.map +1 -1
  233. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_textarea.scss +4 -1
  234. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_textarea.scss.map +1 -1
  235. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +3 -1
  236. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss.map +1 -1
  237. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_warning-text.scss +4 -1
  238. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_warning-text.scss.map +1 -1
  239. data/node_modules/govuk-frontend/dist/govuk/core/_global-styles.scss +4 -0
  240. data/node_modules/govuk-frontend/dist/govuk/core/_global-styles.scss.map +1 -1
  241. data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +4 -0
  242. data/node_modules/govuk-frontend/dist/govuk/core/_index.scss.map +1 -1
  243. data/node_modules/govuk-frontend/dist/govuk/core/_links.scss +8 -0
  244. data/node_modules/govuk-frontend/dist/govuk/core/_links.scss.map +1 -1
  245. data/node_modules/govuk-frontend/dist/govuk/core/_lists.scss +10 -1
  246. data/node_modules/govuk-frontend/dist/govuk/core/_lists.scss.map +1 -1
  247. data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss +5 -0
  248. data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss.map +1 -1
  249. data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss +14 -13
  250. data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss.map +1 -1
  251. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss +1 -1
  252. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss +5 -0
  253. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss.map +1 -1
  254. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
  255. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
  256. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
  257. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +38 -70
  258. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss.map +1 -1
  259. data/node_modules/govuk-frontend/dist/govuk/helpers/_device-pixels.scss +2 -0
  260. data/node_modules/govuk-frontend/dist/govuk/helpers/_device-pixels.scss.map +1 -1
  261. data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +1 -1
  262. data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss.map +1 -1
  263. data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +3 -2
  264. data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss.map +1 -1
  265. data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +4 -4
  266. data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss.map +1 -1
  267. data/node_modules/govuk-frontend/dist/govuk/helpers/_media-queries.scss +17 -15
  268. data/node_modules/govuk-frontend/dist/govuk/helpers/_media-queries.scss.map +1 -1
  269. data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss +2 -2
  270. data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss.map +1 -1
  271. data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing.scss +19 -13
  272. data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing.scss.map +1 -1
  273. data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +48 -26
  274. data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss.map +1 -1
  275. data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss +13 -11
  276. data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss.map +1 -1
  277. data/node_modules/govuk-frontend/dist/govuk/objects/_grid.scss +4 -2
  278. data/node_modules/govuk-frontend/dist/govuk/objects/_grid.scss.map +1 -1
  279. data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.scss +10 -9
  280. data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.scss.map +1 -1
  281. data/node_modules/govuk-frontend/dist/govuk/overrides/_display.scss +2 -0
  282. data/node_modules/govuk-frontend/dist/govuk/overrides/_display.scss.map +1 -1
  283. data/node_modules/govuk-frontend/dist/govuk/overrides/_index.scss +3 -0
  284. data/node_modules/govuk-frontend/dist/govuk/overrides/_index.scss.map +1 -1
  285. data/node_modules/govuk-frontend/dist/govuk/overrides/_spacing.scss +5 -1
  286. data/node_modules/govuk-frontend/dist/govuk/overrides/_spacing.scss.map +1 -1
  287. data/node_modules/govuk-frontend/dist/govuk/overrides/_text-align.scss +2 -0
  288. data/node_modules/govuk-frontend/dist/govuk/overrides/_text-align.scss.map +1 -1
  289. data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +7 -2
  290. data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss.map +1 -1
  291. data/node_modules/govuk-frontend/dist/govuk/overrides/_width.scss +3 -0
  292. data/node_modules/govuk-frontend/dist/govuk/overrides/_width.scss.map +1 -1
  293. data/node_modules/govuk-frontend/dist/govuk/settings/_assets.scss +18 -0
  294. data/node_modules/govuk-frontend/dist/govuk/settings/_assets.scss.map +1 -1
  295. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss +28 -4
  296. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss.map +1 -1
  297. data/node_modules/govuk-frontend/dist/govuk/settings/_links.scss +3 -2
  298. data/node_modules/govuk-frontend/dist/govuk/settings/_links.scss.map +1 -1
  299. data/node_modules/govuk-frontend/dist/govuk/settings/_measurements.scss +8 -16
  300. data/node_modules/govuk-frontend/dist/govuk/settings/_measurements.scss.map +1 -1
  301. data/node_modules/govuk-frontend/dist/govuk/settings/_typography-font.scss +4 -1
  302. data/node_modules/govuk-frontend/dist/govuk/settings/_typography-font.scss.map +1 -1
  303. data/node_modules/govuk-frontend/dist/govuk/settings/_warnings.scss +15 -2
  304. data/node_modules/govuk-frontend/dist/govuk/settings/_warnings.scss.map +1 -1
  305. data/node_modules/govuk-frontend/dist/govuk/tools/_exports.scss +3 -2
  306. data/node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map +1 -1
  307. data/node_modules/govuk-frontend/dist/govuk/tools/_font-url.scss +13 -5
  308. data/node_modules/govuk-frontend/dist/govuk/tools/_font-url.scss.map +1 -1
  309. data/node_modules/govuk-frontend/dist/govuk/tools/_if.scss +24 -0
  310. data/node_modules/govuk-frontend/dist/govuk/tools/_if.scss.map +1 -0
  311. data/node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss +13 -5
  312. data/node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map +1 -1
  313. data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +1 -0
  314. data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss.map +1 -1
  315. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss +5 -3
  316. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map +1 -1
  317. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss +4 -2
  318. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss.map +1 -1
  319. data/node_modules/govuk-frontend/dist/govuk/utilities/_clearfix.scss +3 -0
  320. data/node_modules/govuk-frontend/dist/govuk/utilities/_clearfix.scss.map +1 -1
  321. data/node_modules/govuk-frontend/dist/govuk/utilities/_index.scss +1 -0
  322. data/node_modules/govuk-frontend/dist/govuk/utilities/_index.scss.map +1 -1
  323. data/node_modules/govuk-frontend/dist/govuk/utilities/_visually-hidden.scss +3 -0
  324. data/node_modules/govuk-frontend/dist/govuk/utilities/_visually-hidden.scss.map +1 -1
  325. data/node_modules/govuk-frontend/dist/govuk-prototype-kit/init.scss +3 -1
  326. data/node_modules/govuk-frontend/dist/govuk-prototype-kit/init.scss.map +1 -1
  327. data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +1 -1
  328. data/node_modules/govuk-frontend/package.json +7 -7
  329. metadata +4 -3
  330. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_grid-helper.scss +0 -145
@@ -8,7 +8,7 @@
8
8
  gap: govuk-spacing(2);
9
9
  justify-content: space-between;
10
10
  align-items: stretch;
11
- @include govuk-text-colour;
11
+ color: govuk-functional-colour(text);
12
12
 
13
13
  @include govuk-media-query($until: tablet) {
14
14
  gap: govuk-spacing(3);
@@ -1,4 +1,4 @@
1
- @import "govuk/components/input/input";
1
+ @import "govuk/components/input";
2
2
 
3
3
  $search-icon-size: 40px;
4
4
 
@@ -1,4 +1,4 @@
1
- @import "govuk/components/inset-text/inset-text";
1
+ @import "govuk/components/inset-text";
2
2
 
3
3
  @include govuk-media-query($media-type: print) {
4
4
  .gem-c-inset-text {
@@ -1,7 +1,7 @@
1
1
  .gem-c-intervention {
2
2
  background-color: govuk-colour("black", $variant: "tint-95");
3
3
  border-left: 10px solid govuk-functional-colour(success);
4
- @include govuk-text-colour;
4
+ color: govuk-functional-colour(text);
5
5
  @include govuk-responsive-padding(3);
6
6
  @include govuk-responsive-margin(6, "bottom");
7
7
 
@@ -1 +1 @@
1
- @import "govuk/components/label/label";
1
+ @import "govuk/components/label";
@@ -1,4 +1,4 @@
1
- @import "govuk/components/footer/footer";
1
+ @import "govuk/components/footer";
2
2
 
3
3
  .govuk-footer__list-item {
4
4
  display: inline-block;
@@ -1,4 +1,4 @@
1
- @import "govuk/components/header/header";
1
+ @import "govuk/components/header";
2
2
 
3
3
  .gem-c-layout-header.gem-c-layout-header--no-bottom-border,
4
4
  .gem-c-layout-header.gem-c-layout-header--no-bottom-border .govuk-header__container {
@@ -1,4 +1,4 @@
1
- @import "govuk/components/header/header";
1
+ @import "govuk/components/header";
2
2
 
3
3
  $chevron-breakpoint: 360px;
4
4
  $chevron-indent-spacing: 7px;
@@ -26,13 +26,13 @@ $search-icon-height: 20px;
26
26
  border-bottom-color: $colour;
27
27
  border-right-color: $colour;
28
28
  } @else {
29
- @include prefixed-transform($rotate: 45deg, $translateY: -35%);
30
29
  border-bottom: 2px solid $colour;
31
30
  border-right: 2px solid $colour;
32
31
  content: "";
33
32
  display: inline-block;
34
33
  height: 8px;
35
34
  margin: 0 10px 0 2px;
35
+ transform: translateY(-35%) rotate(45deg) scale(1);
36
36
  vertical-align: middle;
37
37
  width: 8px;
38
38
  }
@@ -373,7 +373,7 @@ $search-icon-height: 20px;
373
373
 
374
374
  &::before {
375
375
  @include chevron(govuk-colour("black"), true);
376
- @include prefixed-transform($rotate: 225deg, $translateY: 1px);
376
+ transform: translateY(1px) rotate(225deg) scale(1);
377
377
  }
378
378
  }
379
379
  }
@@ -392,7 +392,7 @@ $search-icon-height: 20px;
392
392
  @include govuk-media-query($from: $chevron-breakpoint) {
393
393
  &::before {
394
394
  @include chevron(govuk-functional-colour(link), true);
395
- @include prefixed-transform($rotate: 225deg, $translateY: 1px);
395
+ transform: translateY(1px) rotate(225deg) scale(1);
396
396
  }
397
397
  }
398
398
  }
@@ -609,7 +609,10 @@ $search-icon-height: 20px;
609
609
  }
610
610
 
611
611
  @include govuk-media-query($from: "desktop") {
612
- @include columns($items: 16, $columns: 2, $selector: "li", $flow: column);
612
+ display: grid;
613
+ grid-auto-flow: column;
614
+ grid-template-columns: repeat(2, 1fr);
615
+ grid-template-rows: repeat(8, auto);
613
616
  }
614
617
  }
615
618
 
@@ -2,7 +2,7 @@
2
2
  margin-top: 0;
3
3
  // Ensure the text has a line-length of around 60 characters
4
4
  max-width: 30em;
5
- @include govuk-text-colour;
5
+ color: govuk-functional-colour(text);
6
6
  @include responsive-bottom-margin;
7
7
  @include govuk-font(24);
8
8
  }
@@ -1,5 +1,5 @@
1
1
  .gem-c-metadata {
2
- @include govuk-text-colour;
2
+ color: govuk-functional-colour(text);
3
3
  @include govuk-font(16);
4
4
  @include responsive-bottom-margin;
5
5
 
@@ -91,7 +91,7 @@
91
91
  }
92
92
 
93
93
  .gem-c-metadata--border-top {
94
- padding-top: govuk-spacing(2);
94
+ padding-top: govuk-spacing(3);
95
95
  border-top: 1px solid $govuk-border-colour;
96
96
  }
97
97
 
@@ -36,7 +36,7 @@ $govuk-modal-wide-breakpoint: $govuk-page-width + $govuk-modal-margin * 2 + $gov
36
36
  }
37
37
 
38
38
  @include govuk-font($size: 19);
39
- @include govuk-text-colour;
39
+ color: govuk-functional-colour(text);
40
40
  @include govuk-media-query($from: tablet) {
41
41
  position: relative;
42
42
  top: inherit;
@@ -1,4 +1,4 @@
1
- @import "govuk/components/notification-banner/notification-banner";
1
+ @import "govuk/components/notification-banner";
2
2
 
3
3
  .gem-c-notice {
4
4
  .gem-c-govspeak {
@@ -1,4 +1,4 @@
1
- @import "govuk/components/pagination/pagination";
1
+ @import "govuk/components/pagination";
2
2
 
3
3
  // stylelint-disable declaration-no-important
4
4
  @include govuk-media-query($media-type: print) {
@@ -1,4 +1,4 @@
1
- @import "govuk/components/panel/panel";
1
+ @import "govuk/components/panel";
2
2
 
3
3
  .gem-c-panel__prepend {
4
4
  margin-bottom: govuk-spacing(3);
@@ -1 +1 @@
1
- @import "govuk/components/password-input/password-input";
1
+ @import "govuk/components/password-input";
@@ -1,4 +1,4 @@
1
- @import "govuk/components/phase-banner/phase-banner";
1
+ @import "govuk/components/phase-banner";
2
2
 
3
3
  .gem-c-phase-banner--inverse {
4
4
  .govuk-phase-banner__content__tag {
@@ -1,4 +1,4 @@
1
- @import "govuk/components/radios/radios";
1
+ @import "govuk/components/radios";
2
2
 
3
3
  .gem-c-radio__heading-text {
4
4
  margin: 0 0 govuk-spacing(4);
@@ -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 {
@@ -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);
@@ -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 {
@@ -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);
@@ -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) {
@@ -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;
@@ -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 {
@@ -21,27 +21,26 @@
21
21
  $base-unit: 16px; // For font sizes and related spacing
22
22
  $compact-font-size: 12px; // For the 'compact' bar style
23
23
  $bar-padding: 8px; // The padding between the bar values and the edge of the bar
24
- $bar-spacing: 5px; // The spacing around the bars
24
+ $bar-spacing: 10px; // 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");
@@ -53,7 +52,6 @@
53
52
  width: 100%;
54
53
  border-spacing: 0 $bar-spacing;
55
54
  border: 1px solid $chart-border;
56
- padding: $base-unit 0;
57
55
  position: relative;
58
56
  margin-bottom: $base-unit;
59
57
 
@@ -148,6 +146,7 @@
148
146
  margin-bottom: 1px;
149
147
  color: govuk-colour("white");
150
148
  text-indent: $bar-padding;
149
+ font-weight: $govuk-font-weight-bold;
151
150
  }
152
151
 
153
152
  // Bar colours
@@ -156,6 +155,18 @@
156
155
  background-color: list.nth($bar-colours, $i + 1);
157
156
  color: list.nth($bar-text-colours, $i + 1);
158
157
  }
158
+
159
+ .mc-bar-#{$i + 1}.mc-no-data {
160
+ color: govuk-colour("black");
161
+ border-width: 2px;
162
+ border-style: solid;
163
+ border-color: list.nth($bar-colours, $i + 1);
164
+ }
165
+ }
166
+
167
+ .mc-no-data span {
168
+ display: inline-block;
169
+ min-width: 75px;
159
170
  }
160
171
 
161
172
  // Negative bars
@@ -175,6 +186,7 @@
175
186
  text-align: $label-align;
176
187
  display: table-cell;
177
188
  vertical-align: middle;
189
+ font-weight: $govuk-font-weight-bold;
178
190
  }
179
191
  }
180
192
  }
@@ -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.
@@ -1,5 +1,5 @@
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,
@@ -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
  } %>