defra_ruby_template 5.4.0 → 5.11.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 (428) hide show
  1. checksums.yaml +4 -4
  2. data/app/views/layouts/defra_ruby_template.html.erb +43 -23
  3. data/lib/defra_ruby_template/version.rb +1 -1
  4. data/lib/defra_ruby_template.rb +3 -8
  5. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +882 -492
  6. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
  7. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +877 -492
  8. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -1
  9. data/node_modules/govuk-frontend/dist/govuk/all.mjs +5 -0
  10. data/node_modules/govuk-frontend/dist/govuk/all.mjs.map +1 -1
  11. data/node_modules/govuk-frontend/dist/govuk/all.scss +6 -0
  12. data/node_modules/govuk-frontend/dist/govuk/all.scss.map +1 -1
  13. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-crest.svg +1 -0
  14. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.ico +0 -0
  15. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.svg +1 -0
  16. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-crest.svg +1 -0
  17. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-180.png +0 -0
  18. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-192.png +0 -0
  19. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-512.png +0 -0
  20. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-mask.svg +1 -0
  21. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-opengraph-image.png +0 -0
  22. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/manifest.json +39 -0
  23. data/node_modules/govuk-frontend/dist/govuk/common/closest-attribute-value.mjs.map +1 -1
  24. data/node_modules/govuk-frontend/dist/govuk/common/configuration.mjs +169 -0
  25. data/node_modules/govuk-frontend/dist/govuk/common/configuration.mjs.map +1 -0
  26. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
  27. data/node_modules/govuk-frontend/dist/govuk/common/index.mjs +20 -83
  28. data/node_modules/govuk-frontend/dist/govuk/common/index.mjs.map +1 -1
  29. data/node_modules/govuk-frontend/dist/govuk/component.mjs +60 -0
  30. data/node_modules/govuk-frontend/dist/govuk/component.mjs.map +1 -0
  31. data/node_modules/govuk-frontend/dist/govuk/components/_index.scss +1 -0
  32. data/node_modules/govuk-frontend/dist/govuk/components/_index.scss.map +1 -1
  33. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +35 -31
  34. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss.map +1 -1
  35. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js +296 -195
  36. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js.map +1 -1
  37. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs +295 -194
  38. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -1
  39. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs +88 -110
  40. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs.map +1 -1
  41. data/node_modules/govuk-frontend/dist/govuk/components/accordion/fixtures.json +16 -3
  42. data/node_modules/govuk-frontend/dist/govuk/components/back-link/fixtures.json +25 -15
  43. data/node_modules/govuk-frontend/dist/govuk/components/back-link/template-with-custom-link.html +1 -0
  44. data/node_modules/govuk-frontend/dist/govuk/components/back-link/template.njk +2 -2
  45. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/fixtures.json +53 -15
  46. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/macro-options.json +6 -0
  47. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-default.html +2 -2
  48. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-inverse.html +2 -2
  49. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-collapse-on-mobile.html +2 -2
  50. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-last-breadcrumb-as-current-page.html +2 -2
  51. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-multiple-levels.html +2 -2
  52. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-one-level.html +2 -2
  53. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-without-the-home-section.html +2 -2
  54. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template.njk +2 -2
  55. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js +217 -106
  56. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js.map +1 -1
  57. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs +216 -105
  58. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs.map +1 -1
  59. data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs +9 -22
  60. data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs.map +1 -1
  61. data/node_modules/govuk-frontend/dist/govuk/components/button/fixtures.json +38 -0
  62. data/node_modules/govuk-frontend/dist/govuk/components/button/macro-options.json +2 -1
  63. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +12 -4
  64. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss.map +1 -1
  65. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +256 -145
  66. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js.map +1 -1
  67. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs +255 -144
  68. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs.map +1 -1
  69. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs +29 -34
  70. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs.map +1 -1
  71. data/node_modules/govuk-frontend/dist/govuk/components/character-count/fixtures.json +80 -1
  72. data/node_modules/govuk-frontend/dist/govuk/components/character-count/macro-options.json +6 -6
  73. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-error.html +12 -0
  74. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-hint-and-error.html +15 -0
  75. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template.njk +5 -4
  76. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +6 -1
  77. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss.map +1 -1
  78. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js +96 -50
  79. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js.map +1 -1
  80. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs +95 -49
  81. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs.map +1 -1
  82. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs +9 -18
  83. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs.map +1 -1
  84. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/fixtures.json +88 -1
  85. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-divider-and-none.html +34 -0
  86. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +23 -14
  87. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss.map +1 -1
  88. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/fixtures.json +23 -0
  89. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +2 -2
  90. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss.map +1 -1
  91. data/node_modules/govuk-frontend/dist/govuk/components/date-input/fixtures.json +27 -0
  92. data/node_modules/govuk-frontend/dist/govuk/components/date-input/macro-options.json +2 -2
  93. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +7 -2
  94. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss.map +1 -1
  95. data/node_modules/govuk-frontend/dist/govuk/components/details/fixtures.json +10 -0
  96. data/node_modules/govuk-frontend/dist/govuk/components/error-message/fixtures.json +9 -0
  97. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +4 -0
  98. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss.map +1 -1
  99. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js +238 -127
  100. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js.map +1 -1
  101. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs +237 -126
  102. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs.map +1 -1
  103. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs +10 -22
  104. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs.map +1 -1
  105. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/fixtures.json +19 -0
  106. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js +218 -107
  107. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js.map +1 -1
  108. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs +217 -106
  109. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs.map +1 -1
  110. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs +10 -22
  111. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs.map +1 -1
  112. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/fixtures.json +4 -0
  113. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss +3 -5
  114. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss.map +1 -1
  115. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/fixtures.json +18 -0
  116. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +175 -9
  117. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss.map +1 -1
  118. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js +744 -0
  119. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js.map +1 -0
  120. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs +736 -0
  121. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs.map +1 -0
  122. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs +257 -0
  123. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs.map +1 -0
  124. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/fixtures.json +220 -16
  125. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/macro-options.json +52 -3
  126. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-direct-media-capture.html +6 -0
  127. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-image-files-only.html +6 -0
  128. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-multiple-files.html +6 -0
  129. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-disabled.html +6 -0
  130. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-disabled.html +13 -0
  131. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-with-error-message-and-hint.html +16 -0
  132. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced.html +10 -0
  133. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-translated.html +10 -0
  134. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template.njk +42 -5
  135. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +61 -19
  136. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss.map +1 -1
  137. data/node_modules/govuk-frontend/dist/govuk/components/footer/fixtures.json +34 -0
  138. data/node_modules/govuk-frontend/dist/govuk/components/footer/macro-options.json +6 -0
  139. data/node_modules/govuk-frontend/dist/govuk/components/footer/template.njk +10 -0
  140. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +223 -21
  141. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss.map +1 -1
  142. data/node_modules/govuk-frontend/dist/govuk/components/header/fixtures.json +78 -32
  143. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +90 -43
  144. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js.map +1 -1
  145. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +89 -42
  146. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs.map +1 -1
  147. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs +10 -18
  148. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs.map +1 -1
  149. data/node_modules/govuk-frontend/dist/govuk/components/header/macro-options.json +31 -12
  150. data/node_modules/govuk-frontend/dist/govuk/components/header/template-default.html +20 -12
  151. data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width-with-navigation.html +21 -15
  152. data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width.html +21 -15
  153. data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-html.html +20 -12
  154. data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-text-without-link.html +20 -12
  155. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-label.html +20 -12
  156. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-text.html +20 -12
  157. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-navigation-label.html +20 -12
  158. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-full-width-border.html +30 -0
  159. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-large-navigation.html +20 -12
  160. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-navigation.html +20 -12
  161. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-product-name.html +21 -15
  162. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-and-navigation.html +20 -12
  163. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-but-no-service-url.html +20 -12
  164. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name.html +20 -12
  165. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-st-edwards-crown.html +10 -12
  166. data/node_modules/govuk-frontend/dist/govuk/components/header/template.njk +11 -41
  167. data/node_modules/govuk-frontend/dist/govuk/components/hint/fixtures.json +6 -0
  168. data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +7 -4
  169. data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss.map +1 -1
  170. data/node_modules/govuk-frontend/dist/govuk/components/input/fixtures.json +97 -27
  171. data/node_modules/govuk-frontend/dist/govuk/components/input/macro-options.json +6 -6
  172. data/node_modules/govuk-frontend/dist/govuk/components/input/template-default.html +2 -2
  173. data/node_modules/govuk-frontend/dist/govuk/components/input/template-disabled.html +6 -0
  174. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-error-and-hint.html +12 -0
  175. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-error-message.html +2 -5
  176. data/node_modules/govuk-frontend/dist/govuk/components/input/template.njk +5 -4
  177. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/fixtures.json +6 -0
  178. data/node_modules/govuk-frontend/dist/govuk/components/label/fixtures.json +17 -0
  179. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +3 -2
  180. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss.map +1 -1
  181. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/fixtures.json +24 -0
  182. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js +238 -127
  183. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js.map +1 -1
  184. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs +237 -126
  185. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs.map +1 -1
  186. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs +10 -22
  187. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs.map +1 -1
  188. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +24 -37
  189. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss.map +1 -1
  190. data/node_modules/govuk-frontend/dist/govuk/components/pagination/fixtures.json +15 -0
  191. data/node_modules/govuk-frontend/dist/govuk/components/pagination/macro-options.json +4 -4
  192. data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +13 -9
  193. data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss.map +1 -1
  194. data/node_modules/govuk-frontend/dist/govuk/components/panel/fixtures.json +9 -0
  195. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +12 -9
  196. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss.map +1 -1
  197. data/node_modules/govuk-frontend/dist/govuk/components/password-input/fixtures.json +27 -2
  198. data/node_modules/govuk-frontend/dist/govuk/components/password-input/macro-options.json +3 -3
  199. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js +220 -110
  200. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js.map +1 -1
  201. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs +219 -109
  202. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs.map +1 -1
  203. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs +12 -25
  204. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs.map +1 -1
  205. data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-default.html +3 -3
  206. data/node_modules/govuk-frontend/dist/govuk/components/password-input/template.njk +4 -2
  207. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +0 -8
  208. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss.map +1 -1
  209. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/fixtures.json +7 -0
  210. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +7 -5
  211. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss.map +1 -1
  212. data/node_modules/govuk-frontend/dist/govuk/components/radios/fixtures.json +51 -5
  213. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js +96 -50
  214. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js.map +1 -1
  215. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs +95 -49
  216. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs.map +1 -1
  217. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.mjs +9 -18
  218. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.mjs.map +1 -1
  219. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-a-divider.html +1 -1
  220. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-a-divider.html +1 -1
  221. data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +5 -5
  222. data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss.map +1 -1
  223. data/node_modules/govuk-frontend/dist/govuk/components/select/fixtures.json +43 -9
  224. data/node_modules/govuk-frontend/dist/govuk/components/select/macro-options.json +2 -2
  225. data/node_modules/govuk-frontend/dist/govuk/components/select/template-id.html +7 -0
  226. data/node_modules/govuk-frontend/dist/govuk/components/select/template.njk +6 -4
  227. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/README.md +15 -0
  228. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +187 -0
  229. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss.map +1 -0
  230. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss +4 -0
  231. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss.map +1 -0
  232. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json +515 -0
  233. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/macro-options.json +138 -0
  234. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/macro.njk +3 -0
  235. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js +229 -0
  236. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js.map +1 -0
  237. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs +221 -0
  238. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs.map +1 -0
  239. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs +85 -0
  240. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs.map +1 -0
  241. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-default.html +57 -0
  242. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-html-navigation-items.html +49 -0
  243. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-large-navigation.html +153 -0
  244. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-long-service-name.html +20 -0
  245. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-navigation-with-a-current-item.html +58 -0
  246. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-navigation-with-an-active-item.html +58 -0
  247. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-non-link-navigation-items.html +49 -0
  248. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-link.html +20 -0
  249. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-name-and-navigation.html +63 -0
  250. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-name.html +18 -0
  251. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template.njk +103 -0
  252. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +6 -4
  253. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss.map +1 -1
  254. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/fixtures.json +9 -0
  255. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js +95 -48
  256. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js.map +1 -1
  257. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs +94 -47
  258. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs.map +1 -1
  259. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs +15 -23
  260. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs.map +1 -1
  261. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +14 -22
  262. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss.map +1 -1
  263. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/fixtures.json +174 -1
  264. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-extreme.html +106 -0
  265. data/node_modules/govuk-frontend/dist/govuk/components/table/fixtures.json +22 -1
  266. data/node_modules/govuk-frontend/dist/govuk/components/tabs/fixtures.json +15 -1
  267. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js +95 -53
  268. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js.map +1 -1
  269. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs +94 -52
  270. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs.map +1 -1
  271. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs +15 -28
  272. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs.map +1 -1
  273. data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +11 -8
  274. data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss.map +1 -1
  275. data/node_modules/govuk-frontend/dist/govuk/components/tag/fixtures.json +14 -0
  276. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +12 -10
  277. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss.map +1 -1
  278. data/node_modules/govuk-frontend/dist/govuk/components/task-list/fixtures.json +44 -0
  279. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-empty-values.html +27 -0
  280. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template.njk +1 -1
  281. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +3 -3
  282. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss.map +1 -1
  283. data/node_modules/govuk-frontend/dist/govuk/components/textarea/fixtures.json +32 -1
  284. data/node_modules/govuk-frontend/dist/govuk/components/textarea/macro-options.json +3 -3
  285. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template.njk +6 -4
  286. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +6 -5
  287. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss.map +1 -1
  288. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/fixtures.json +8 -0
  289. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +1 -1
  290. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss.map +1 -1
  291. data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs +16 -3
  292. data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs.map +1 -1
  293. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
  294. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
  295. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
  296. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js.map +1 -1
  297. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +55 -8
  298. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss.map +1 -1
  299. data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +14 -4
  300. data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss.map +1 -1
  301. data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +1 -1
  302. data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss.map +1 -1
  303. data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +2 -2
  304. data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss.map +1 -1
  305. data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss +1 -1
  306. data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss.map +1 -1
  307. data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +18 -1
  308. data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss.map +1 -1
  309. data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss +30 -62
  310. data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss.map +1 -1
  311. data/node_modules/govuk-frontend/dist/govuk/i18n.mjs.map +1 -1
  312. data/node_modules/govuk-frontend/dist/govuk/init.mjs +90 -24
  313. data/node_modules/govuk-frontend/dist/govuk/init.mjs.map +1 -1
  314. data/node_modules/govuk-frontend/dist/govuk/macros/logo.njk +78 -0
  315. data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss +5 -1
  316. data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss.map +1 -1
  317. data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +5 -1
  318. data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss.map +1 -1
  319. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +39 -1
  320. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss.map +1 -1
  321. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +244 -10
  322. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss.map +1 -1
  323. data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss +5 -10
  324. data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss.map +1 -1
  325. data/node_modules/govuk-frontend/dist/govuk/template.njk +20 -9
  326. data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +1 -0
  327. data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss.map +1 -1
  328. data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss +65 -0
  329. data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss.map +1 -0
  330. data/node_modules/govuk-frontend/dist/govuk-prototype-kit/functions.js +25 -0
  331. data/node_modules/govuk-frontend/dist/govuk-prototype-kit/init.scss +1 -1
  332. data/node_modules/govuk-frontend/dist/govuk-prototype-kit/init.scss.map +1 -1
  333. data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +8 -1
  334. data/node_modules/govuk-frontend/package.json +16 -16
  335. data/spec/spec_helper.rb +98 -0
  336. data/spec/tasks/assets_spec.rb +53 -0
  337. data/vendor/assets/assets/fonts/bold-affa96571d-v2.woff +0 -0
  338. data/vendor/assets/assets/fonts/bold-b542beb274-v2.woff2 +0 -0
  339. data/vendor/assets/assets/fonts/light-94a07e06a1-v2.woff2 +0 -0
  340. data/vendor/assets/assets/fonts/light-f591b13f7d-v2.woff +0 -0
  341. data/vendor/assets/assets/images/favicon.ico +0 -0
  342. data/vendor/assets/assets/images/favicon.svg +1 -0
  343. data/vendor/assets/assets/images/govuk-crest.svg +1 -0
  344. data/vendor/assets/assets/images/govuk-icon-180.png +0 -0
  345. data/vendor/assets/assets/images/govuk-icon-192.png +0 -0
  346. data/vendor/assets/assets/images/govuk-icon-512.png +0 -0
  347. data/vendor/assets/assets/images/govuk-icon-mask.svg +1 -0
  348. data/vendor/assets/assets/images/govuk-opengraph-image.png +0 -0
  349. data/vendor/assets/assets/manifest.json +39 -0
  350. data/vendor/assets/assets/rebrand/images/favicon.ico +0 -0
  351. data/vendor/assets/assets/rebrand/images/favicon.svg +1 -0
  352. data/vendor/assets/assets/rebrand/images/govuk-crest.svg +1 -0
  353. data/vendor/assets/assets/rebrand/images/govuk-icon-180.png +0 -0
  354. data/vendor/assets/assets/rebrand/images/govuk-icon-192.png +0 -0
  355. data/vendor/assets/assets/rebrand/images/govuk-icon-512.png +0 -0
  356. data/vendor/assets/assets/rebrand/images/govuk-icon-mask.svg +1 -0
  357. data/vendor/assets/assets/rebrand/images/govuk-opengraph-image.png +0 -0
  358. data/vendor/assets/assets/rebrand/manifest.json +39 -0
  359. data/vendor/assets/images/govuk-crest.svg +1 -0
  360. data/vendor/assets/javascripts/defra_ruby_template.js +882 -492
  361. data/vendor/assets/stylesheets/all.scss +6 -0
  362. data/vendor/assets/stylesheets/components/_index.scss +1 -0
  363. data/vendor/assets/stylesheets/components/accordion/_index.scss +35 -31
  364. data/vendor/assets/stylesheets/components/character-count/_index.scss +12 -4
  365. data/vendor/assets/stylesheets/components/checkboxes/_index.scss +6 -1
  366. data/vendor/assets/stylesheets/components/cookie-banner/_index.scss +23 -14
  367. data/vendor/assets/stylesheets/components/date-input/_index.scss +2 -2
  368. data/vendor/assets/stylesheets/components/details/_index.scss +7 -2
  369. data/vendor/assets/stylesheets/components/error-summary/_index.scss +4 -0
  370. data/vendor/assets/stylesheets/components/fieldset/_index.scss +3 -5
  371. data/vendor/assets/stylesheets/components/file-upload/_index.scss +175 -9
  372. data/vendor/assets/stylesheets/components/footer/_index.scss +61 -19
  373. data/vendor/assets/stylesheets/components/header/_index.scss +223 -21
  374. data/vendor/assets/stylesheets/components/input/_index.scss +7 -4
  375. data/vendor/assets/stylesheets/components/notification-banner/_index.scss +3 -2
  376. data/vendor/assets/stylesheets/components/pagination/_index.scss +24 -37
  377. data/vendor/assets/stylesheets/components/panel/_index.scss +13 -9
  378. data/vendor/assets/stylesheets/components/password-input/_index.scss +12 -9
  379. data/vendor/assets/stylesheets/components/phase-banner/_index.scss +0 -8
  380. data/vendor/assets/stylesheets/components/radios/_index.scss +7 -5
  381. data/vendor/assets/stylesheets/components/select/_index.scss +5 -5
  382. data/vendor/assets/stylesheets/components/service-navigation/_index.scss +187 -0
  383. data/vendor/assets/stylesheets/components/service-navigation/_service-navigation.scss +4 -0
  384. data/vendor/assets/stylesheets/components/skip-link/_index.scss +6 -4
  385. data/vendor/assets/stylesheets/components/summary-list/_index.scss +14 -22
  386. data/vendor/assets/stylesheets/components/tag/_index.scss +11 -8
  387. data/vendor/assets/stylesheets/components/task-list/_index.scss +12 -10
  388. data/vendor/assets/stylesheets/components/textarea/_index.scss +3 -3
  389. data/vendor/assets/stylesheets/components/warning-text/_index.scss +6 -5
  390. data/vendor/assets/stylesheets/core/_govuk-frontend-properties.scss +1 -1
  391. data/vendor/assets/stylesheets/defra_ruby_template.scss +6 -0
  392. data/vendor/assets/stylesheets/govuk-frontend.min.css +2 -2
  393. data/vendor/assets/stylesheets/helpers/_colour.scss +55 -8
  394. data/vendor/assets/stylesheets/helpers/_focused.scss +14 -4
  395. data/vendor/assets/stylesheets/helpers/_grid.scss +1 -1
  396. data/vendor/assets/stylesheets/helpers/_links.scss +2 -2
  397. data/vendor/assets/stylesheets/helpers/_shape-arrow.scss +1 -1
  398. data/vendor/assets/stylesheets/helpers/_typography.scss +18 -1
  399. data/vendor/assets/stylesheets/helpers/_visually-hidden.scss +30 -62
  400. data/vendor/assets/stylesheets/objects/_template.scss +5 -1
  401. data/vendor/assets/stylesheets/overrides/_typography.scss +5 -1
  402. data/vendor/assets/stylesheets/settings/_colours-applied.scss +39 -1
  403. data/vendor/assets/stylesheets/settings/_colours-organisations.scss +244 -10
  404. data/vendor/assets/stylesheets/settings/_typography-responsive.scss +5 -10
  405. data/vendor/assets/stylesheets/tools/_index.scss +1 -0
  406. data/vendor/assets/stylesheets/tools/_rebrand.scss +65 -0
  407. metadata +100 -24
  408. data/.github/dependabot.yml +0 -14
  409. data/.github/workflows/ci.yml +0 -31
  410. data/.gitignore +0 -8
  411. data/.rspec +0 -1
  412. data/.rubocop.yml +0 -3
  413. data/.ruby-version +0 -1
  414. data/Gemfile +0 -9
  415. data/Gemfile.lock +0 -58
  416. data/defra_ruby_template.gemspec +0 -35
  417. data/node_modules/.package-lock.json +0 -16
  418. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-crest-2x.png +0 -0
  419. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-crest.png +0 -0
  420. data/node_modules/govuk-frontend/dist/govuk/common/normalise-dataset.mjs +0 -18
  421. data/node_modules/govuk-frontend/dist/govuk/common/normalise-dataset.mjs.map +0 -1
  422. data/node_modules/govuk-frontend/dist/govuk/common/normalise-string.mjs +0 -31
  423. data/node_modules/govuk-frontend/dist/govuk/common/normalise-string.mjs.map +0 -1
  424. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-with-value.html +0 -6
  425. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend-component.mjs +0 -16
  426. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend-component.mjs.map +0 -1
  427. data/package-lock.json +0 -24
  428. data/package.json +0 -29
@@ -1,20 +1,222 @@
1
+ @import "../settings/warnings";
2
+
1
3
  ////
2
4
  /// @group settings/colours
3
5
  ////
4
6
 
5
- /// Organisation colours
7
+ /// Feature flag for updated organisation list and colours
8
+ ///
9
+ /// When set to true, $govuk-colours-organisations will use the new
10
+ /// organisation list and colour selection.
11
+ ///
12
+ /// Should be removed in 6.0.
13
+ ///
14
+ /// @type Boolean
15
+ /// @access public
16
+ /// @deprecated Using new organisation colours will become the default in Frontend v6.0.
17
+
18
+ $govuk-new-organisation-colours: false !default;
19
+
20
+ /// Current organisation colours
6
21
  ///
7
22
  /// @type Map
8
23
  ///
9
24
  /// @prop $organisation.colour - Colour for the given `$organisation`
10
- /// @prop $organisation.colour-websafe - Websafe colour for the given
11
- /// `$organisation`. We use `websafe` to mean strong enough contrast against
12
- /// white to be used for copy and meet the AAA (large text) and AA (smaller
25
+ /// @prop $organisation.contrast-safe - 'Contrast safe' colour for the given
26
+ /// `$organisation`. This colour has at least a 4.5:1 contrast against
27
+ /// white, to be used for copy and meet the AAA (large text) and AA (smaller
13
28
  /// copy) WCAG guidelines.
29
+ /// @prop $organisation.deprecation-message - Marks this organisation as
30
+ /// deprecated (usually because it has ceased to exist). Value is the
31
+ /// deprecation message output to the terminal when compiling.
14
32
  ///
15
- /// @access public
33
+ /// @access private
16
34
 
17
- $govuk-colours-organisations: (
35
+ $_govuk-organisation-colours: (
36
+ "attorney-generals-office": (
37
+ colour: #a91c8e
38
+ ),
39
+ "cabinet-office": (
40
+ colour: #0056b8
41
+ ),
42
+ "civil-service": (
43
+ colour: #b2292e
44
+ ),
45
+ "department-for-business-trade": (
46
+ colour: #e52d13,
47
+ contrast-safe: #e02c13
48
+ ),
49
+ "department-for-business-energy-industrial-strategy": (
50
+ colour: #003479,
51
+ deprecation-message:
52
+ "`department-for-business-energy-industrial-strategy` was dissolved in 2023. It was replaced by `department-for-business-trade`, `department-for-energy-security-net-zero` and `department-science-innovation-technology`."
53
+ ),
54
+ "department-for-business-innovation-skills": (
55
+ colour: #003479,
56
+ deprecation-message:
57
+ "`department-for-business-innovation-skills` became `department-for-business-energy-industrial-strategy` in 2016. As of 2023, it is equivalent to `department-for-business-trade` or `department-science-innovation-technology`."
58
+ ),
59
+ "department-for-communities-local-government": (
60
+ colour: #009999,
61
+ contrast-safe: #008080,
62
+ deprecation-message:
63
+ "`department-for-communities-local-government` became `ministry-of-housing-communities-local-government` in 2018."
64
+ ),
65
+ "department-for-culture-media-sport": (
66
+ colour: #ed1588,
67
+ contrast-safe: #d6177a
68
+ ),
69
+ "department-for-digital-culture-media-sport": (
70
+ colour: #d40072,
71
+ deprecation-message:
72
+ "`department-for-digital-culture-media-sport` became `department-for-culture-media-sport` in 2023."
73
+ ),
74
+ "department-for-education": (
75
+ colour: #003764
76
+ ),
77
+ "department-for-energy-security-net-zero": (
78
+ colour: #00a33b,
79
+ contrast-safe: #00852f
80
+ ),
81
+ "department-for-environment-food-rural-affairs": (
82
+ colour: #00a33b,
83
+ contrast-safe: #008531
84
+ ),
85
+ "department-for-exiting-the-european-union": (
86
+ colour: #009fe3,
87
+ contrast-safe: #007db6,
88
+ deprecation-message: "`department-for-exiting-the-european-union` was dissolved in 2020."
89
+ ),
90
+ "department-for-international-development": (
91
+ colour: #002878,
92
+ deprecation-message:
93
+ "`department-for-international-development` was merged into `foreign-commonwealth-development-office` in 2020."
94
+ ),
95
+ "department-for-international-trade": (
96
+ colour: #cf102d,
97
+ deprecation-message: "`department-for-international-trade` was merged into `department-for-business-trade` in 2023."
98
+ ),
99
+ "department-for-levelling-up-housing-communities": (
100
+ colour: #012169,
101
+ deprecation-message:
102
+ "`department-for-levelling-up-housing-communities` was renamed to `ministry-of-housing-communities-local-government` in 2024."
103
+ ),
104
+ "department-for-science-innovation-technology": (
105
+ colour: #00f8f8,
106
+ contrast-safe: #008180
107
+ ),
108
+ "department-for-transport": (
109
+ colour: #006853
110
+ ),
111
+ "department-for-work-pensions": (
112
+ colour: #00bcb5,
113
+ contrast-safe: #00857e
114
+ ),
115
+ "department-of-energy-climate-change": (
116
+ colour: #009ddb,
117
+ contrast-safe: #007db3,
118
+ deprecation-message:
119
+ "`department-of-energy-climate-change` was merged into `department-for-business-energy-industrial-strategy` in 2016. As of 2023, it is equivalent to `department-for-energy-security-net-zero`."
120
+ ),
121
+ "department-of-health": (
122
+ colour: #00ad93,
123
+ contrast-safe: #008573,
124
+ deprecation-message: "`department-of-health` became `department-of-health-social-care` in 2018."
125
+ ),
126
+ "department-of-health-social-care": (
127
+ colour: #00a990,
128
+ contrast-safe: #008674
129
+ ),
130
+ "foreign-commonwealth-office": (
131
+ colour: #003e74,
132
+ deprecation-message: "`foreign-commonwealth-office` became `foreign-commonwealth-development-office` in 2018."
133
+ ),
134
+ "foreign-commonwealth-development-office": (
135
+ colour: #012069
136
+ ),
137
+ "government-equalities-office": (
138
+ colour: #0056b8,
139
+ deprecation-message: "`government-equalities-office` is deprecated. Use `cabinet-office` instead."
140
+ ),
141
+ "hm-government": (
142
+ colour: #266ebc
143
+ ),
144
+ "hm-revenue-customs": (
145
+ colour: #008476
146
+ ),
147
+ "hm-treasury": (
148
+ colour: #b2292e
149
+ ),
150
+ "home-office": (
151
+ colour: #732282
152
+ ),
153
+ "ministry-of-defence": (
154
+ colour: #532a45
155
+ ),
156
+ "ministry-of-housing-communities-local-government": (
157
+ colour: #00625e
158
+ ),
159
+ "ministry-of-justice": (
160
+ colour: #000000
161
+ ),
162
+ "northern-ireland-office": (
163
+ colour: #00205c
164
+ ),
165
+ "office-of-the-advocate-general-for-scotland": (
166
+ colour: #00205c
167
+ ),
168
+ "office-of-the-leader-of-the-house-of-commons": (
169
+ colour: #497629
170
+ ),
171
+ "office-of-the-leader-of-the-house-of-lords": (
172
+ colour: #9c182f
173
+ ),
174
+ "office-of-the-secretary-of-state-for-scotland": (
175
+ colour: #00205c,
176
+ deprecation-message: "`office-of-the-secretary-of-state-for-scotland` was renamed to `scotland-office` in 2024."
177
+ ),
178
+ "office-of-the-secretary-of-state-for-wales": (
179
+ colour: #a8353a,
180
+ deprecation-message: "`office-of-the-secretary-of-state-for-wales` was renamed to `wales-office` in 2024."
181
+ ),
182
+ "prime-ministers-office-10-downing-street": (
183
+ colour: #0b0c0c
184
+ ),
185
+ "scotland-office": (
186
+ colour: #00205c
187
+ ),
188
+ "serious-fraud-office": (
189
+ colour: #82368c
190
+ ),
191
+ "uk-export-finance": (
192
+ colour: #cf102d
193
+ ),
194
+ "uk-trade-investment": (
195
+ colour: #c80651,
196
+ deprecation-message:
197
+ "`uk-trade-investment` became `department-for-international-trade` in 2016. As of 2023, it is equivalent to `department-for-business-trade`."
198
+ ),
199
+ "wales-office": (
200
+ colour: #a33038
201
+ )
202
+ );
203
+
204
+ /// Legacy organisation colours
205
+ ///
206
+ /// These are the colours included with Frontend prior to 5.3.0. They will be
207
+ /// removed in a future major version of Frontend.
208
+ ///
209
+ /// @type Map
210
+ ///
211
+ /// @prop $organisation.colour - Colour for the given `$organisation`
212
+ /// @prop $organisation.colour-websafe - Optional alternative shade of the
213
+ /// organisation colour. Despite the name, is not guaranteed to be websafe
214
+ /// nor provide better contrast than the base colour.
215
+ ///
216
+ /// @access private
217
+ /// @deprecated Migrate to using the new organisation colour palette instead.
218
+
219
+ $_govuk-legacy-organisation-colours: (
18
220
  "attorney-generals-office": (
19
221
  colour: #9f1888,
20
222
  colour-websafe: #a03a88
@@ -30,7 +232,7 @@ $govuk-colours-organisations: (
30
232
  colour: #003479,
31
233
  colour-websafe: #347da4
32
234
  ),
33
- "department-for-communities-and-local-government": (
235
+ "department-for-communities-local-government": (
34
236
  colour: #009999,
35
237
  colour-websafe: #37836e
36
238
  ),
@@ -54,11 +256,11 @@ $govuk-colours-organisations: (
54
256
  colour: #cf102d,
55
257
  colour-websafe: #005ea5
56
258
  ),
57
- "department-for-business-and-trade": (
259
+ "department-for-business-trade": (
58
260
  colour: #cf102d,
59
261
  colour-websafe: #005ea5
60
262
  ),
61
- "department-for-levelling-up-housing-and-communities": (
263
+ "department-for-levelling-up-housing-communities": (
62
264
  colour: #012169
63
265
  ),
64
266
  "department-for-transport": (
@@ -143,6 +345,38 @@ $govuk-colours-organisations: (
143
345
  colour: #a33038,
144
346
  colour-websafe: #7a242a
145
347
  )
146
- ) !default;
348
+ );
349
+
350
+ /// Set public organisation colours variable to one of the two maps.
351
+ /// Users can also pass their own map to this to override it entirely.
352
+ ///
353
+ /// @type Map
354
+ /// @access public
355
+
356
+ $govuk-colours-organisations: $_govuk-legacy-organisation-colours !default;
357
+
358
+ @if $govuk-new-organisation-colours and $govuk-colours-organisations == $_govuk-legacy-organisation-colours {
359
+ $govuk-colours-organisations: $_govuk-organisation-colours;
360
+ }
361
+
362
+ /// Organisation colour aliases
363
+ ///
364
+ /// Some organisations have been renamed within our code over time. Here we
365
+ /// map the prior key to the new equivalent key.
366
+ ///
367
+ /// Note: This is for internal renames only. If a department has changed name
368
+ /// or brand colour in a machinery of government change, it should be added to
369
+ /// $govuk-colours-organisations as a new entry with any superseded
370
+ /// organisations marked deprecated.
371
+ ///
372
+ /// @type Map
373
+ ///
374
+ /// @access private
375
+
376
+ $_govuk-colours-organisations-aliases: (
377
+ "department-for-business-and-trade": "department-for-business-trade",
378
+ "department-for-communities-and-local-government": "department-for-communities-local-government",
379
+ "department-for-levelling-up-housing-and-communities": "department-for-levelling-up-housing-communities"
380
+ );
147
381
 
148
382
  /*# sourceMappingURL=_colours-organisations.scss.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/govuk/settings/_colours-organisations.scss"],"names":[],"mappings":"AAAA,GAAG;AACH,0BAA0B;AAC1B,GAAG;;AAEH,uBAAuB;AACvB,EAAE;AACF,YAAY;AACZ,EAAE;AACF,oEAAoE;AACpE,oEAAoE;AACpE,6EAA6E;AAC7E,4EAA4E;AAC5E,2BAA2B;AAC3B,EAAE;AACF,iBAAiB;;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiIU","file":"_colours-organisations.scss","sourcesContent":["////\n/// @group settings/colours\n////\n\n/// Organisation colours\n///\n/// @type Map\n///\n/// @prop $organisation.colour - Colour for the given `$organisation`\n/// @prop $organisation.colour-websafe - Websafe colour for the given\n/// `$organisation`. We use `websafe` to mean strong enough contrast against\n/// white to be used for copy and meet the AAA (large text) and AA (smaller\n/// copy) WCAG guidelines.\n///\n/// @access public\n\n$govuk-colours-organisations: (\n \"attorney-generals-office\": (\n colour: #9f1888,\n colour-websafe: #a03a88\n ),\n \"cabinet-office\": (\n colour: #005abb,\n colour-websafe: #347da4\n ),\n \"civil-service\": (\n colour: #af292e\n ),\n \"department-for-business-innovation-skills\": (\n colour: #003479,\n colour-websafe: #347da4\n ),\n \"department-for-communities-and-local-government\": (\n colour: #009999,\n colour-websafe: #37836e\n ),\n \"department-for-culture-media-sport\": (\n colour: #d40072,\n colour-websafe: #a03155\n ),\n \"department-for-education\": (\n colour: #003a69,\n colour-websafe: #347ca9\n ),\n \"department-for-environment-food-rural-affairs\": (\n colour: #00a33b,\n colour-websafe: #008938\n ),\n \"department-for-international-development\": (\n colour: #002878,\n colour-websafe: #405e9a\n ),\n \"department-for-international-trade\": (\n colour: #cf102d,\n colour-websafe: #005ea5\n ),\n \"department-for-business-and-trade\": (\n colour: #cf102d,\n colour-websafe: #005ea5\n ),\n \"department-for-levelling-up-housing-and-communities\": (\n colour: #012169\n ),\n \"department-for-transport\": (\n colour: #006c56,\n colour-websafe: #398373\n ),\n \"department-for-work-pensions\": (\n colour: #00beb7,\n colour-websafe: #37807b\n ),\n \"department-of-energy-climate-change\": (\n colour: #009ddb,\n colour-websafe: #2b7cac\n ),\n \"department-of-health\": (\n colour: #00ad93,\n colour-websafe: #39836e\n ),\n \"foreign-commonwealth-development-office\": (\n colour: #012169\n ),\n \"foreign-commonwealth-office\": (\n colour: #003e74,\n colour-websafe: #406e97\n ),\n \"government-equalities-office\": (\n colour: #9325b2\n ),\n \"hm-government\": (\n colour: #0076c0,\n colour-websafe: #347da4\n ),\n \"hm-revenue-customs\": (\n colour: #009390,\n colour-websafe: #008670\n ),\n \"hm-treasury\": (\n colour: #af292e,\n colour-websafe: #832322\n ),\n \"home-office\": (\n colour: #9325b2,\n colour-websafe: #9440b2\n ),\n \"ministry-of-defence\": (\n colour: #4d2942,\n colour-websafe: #5a5c92\n ),\n \"ministry-of-justice\": (\n colour: #231f20,\n colour-websafe: #5a5c92\n ),\n \"northern-ireland-office\": (\n colour: #002663,\n colour-websafe: #3e598c\n ),\n \"office-of-the-advocate-general-for-scotland\": (\n colour: #002663,\n colour-websafe: #005ea5\n ),\n \"office-of-the-leader-of-the-house-of-commons\": (\n colour: #317023,\n colour-websafe: #005f8f\n ),\n \"office-of-the-leader-of-the-house-of-lords\": (\n colour: #9c132e,\n colour-websafe: #c2395d\n ),\n \"scotland-office\": (\n colour: #002663,\n colour-websafe: #405c8a\n ),\n \"uk-export-finance\": (\n colour: #005747,\n colour-websafe: #005ea5\n ),\n \"uk-trade-investment\": (\n colour: #c80651,\n colour-websafe: #005ea5\n ),\n \"wales-office\": (\n colour: #a33038,\n colour-websafe: #7a242a\n )\n) !default;\n"]}
1
+ {"version":3,"sources":["../../../src/govuk/settings/_colours-organisations.scss"],"names":[],"mappings":"AAAA,8BAA8B;;AAE9B,GAAG;AACH,0BAA0B;AAC1B,GAAG;;AAEH,yDAAyD;AACzD,EAAE;AACF,kEAAkE;AAClE,0CAA0C;AAC1C,EAAE;AACF,4BAA4B;AAC5B,EAAE;AACF,gBAAgB;AAChB,iBAAiB;AACjB,uFAAuF;;AAEvF,+CAA+C;;AAE/C,+BAA+B;AAC/B,EAAE;AACF,YAAY;AACZ,EAAE;AACF,oEAAoE;AACpE,2EAA2E;AAC3E,uEAAuE;AACvE,6EAA6E;AAC7E,2BAA2B;AAC3B,uEAAuE;AACvE,sEAAsE;AACtE,+DAA+D;AAC/D,EAAE;AACF,kBAAkB;;AAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuKC;;AAED,8BAA8B;AAC9B,EAAE;AACF,4EAA4E;AAC5E,iDAAiD;AACjD,EAAE;AACF,YAAY;AACZ,EAAE;AACF,oEAAoE;AACpE,yEAAyE;AACzE,2EAA2E;AAC3E,sDAAsD;AACtD,EAAE;AACF,kBAAkB;AAClB,4EAA4E;;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiIC;;AAED,mEAAmE;AACnE,qEAAqE;AACrE,EAAE;AACF,YAAY;AACZ,iBAAiB;;AAEjB,0EAA0E;;AAE1E;EACE,0DAA0D;AAC5D;;AAEA,8BAA8B;AAC9B,EAAE;AACF,0EAA0E;AAC1E,+CAA+C;AAC/C,EAAE;AACF,4EAA4E;AAC5E,6EAA6E;AAC7E,kEAAkE;AAClE,mCAAmC;AACnC,EAAE;AACF,YAAY;AACZ,EAAE;AACF,kBAAkB;;AAElB;;;;CAIC","file":"_colours-organisations.scss","sourcesContent":["@import \"../settings/warnings\";\n\n////\n/// @group settings/colours\n////\n\n/// Feature flag for updated organisation list and colours\n///\n/// When set to true, $govuk-colours-organisations will use the new\n/// organisation list and colour selection.\n///\n/// Should be removed in 6.0.\n///\n/// @type Boolean\n/// @access public\n/// @deprecated Using new organisation colours will become the default in Frontend v6.0.\n\n$govuk-new-organisation-colours: false !default;\n\n/// Current organisation colours\n///\n/// @type Map\n///\n/// @prop $organisation.colour - Colour for the given `$organisation`\n/// @prop $organisation.contrast-safe - 'Contrast safe' colour for the given\n/// `$organisation`. This colour has at least a 4.5:1 contrast against\n/// white, to be used for copy and meet the AAA (large text) and AA (smaller\n/// copy) WCAG guidelines.\n/// @prop $organisation.deprecation-message - Marks this organisation as\n/// deprecated (usually because it has ceased to exist). Value is the\n/// deprecation message output to the terminal when compiling.\n///\n/// @access private\n\n$_govuk-organisation-colours: (\n \"attorney-generals-office\": (\n colour: #a91c8e\n ),\n \"cabinet-office\": (\n colour: #0056b8\n ),\n \"civil-service\": (\n colour: #b2292e\n ),\n \"department-for-business-trade\": (\n colour: #e52d13,\n contrast-safe: #e02c13\n ),\n \"department-for-business-energy-industrial-strategy\": (\n colour: #003479,\n deprecation-message:\n \"`department-for-business-energy-industrial-strategy` was dissolved in 2023. It was replaced by `department-for-business-trade`, `department-for-energy-security-net-zero` and `department-science-innovation-technology`.\"\n ),\n \"department-for-business-innovation-skills\": (\n colour: #003479,\n deprecation-message:\n \"`department-for-business-innovation-skills` became `department-for-business-energy-industrial-strategy` in 2016. As of 2023, it is equivalent to `department-for-business-trade` or `department-science-innovation-technology`.\"\n ),\n \"department-for-communities-local-government\": (\n colour: #009999,\n contrast-safe: #008080,\n deprecation-message:\n \"`department-for-communities-local-government` became `ministry-of-housing-communities-local-government` in 2018.\"\n ),\n \"department-for-culture-media-sport\": (\n colour: #ed1588,\n contrast-safe: #d6177a\n ),\n \"department-for-digital-culture-media-sport\": (\n colour: #d40072,\n deprecation-message:\n \"`department-for-digital-culture-media-sport` became `department-for-culture-media-sport` in 2023.\"\n ),\n \"department-for-education\": (\n colour: #003764\n ),\n \"department-for-energy-security-net-zero\": (\n colour: #00a33b,\n contrast-safe: #00852f\n ),\n \"department-for-environment-food-rural-affairs\": (\n colour: #00a33b,\n contrast-safe: #008531\n ),\n \"department-for-exiting-the-european-union\": (\n colour: #009fe3,\n contrast-safe: #007db6,\n deprecation-message: \"`department-for-exiting-the-european-union` was dissolved in 2020.\"\n ),\n \"department-for-international-development\": (\n colour: #002878,\n deprecation-message:\n \"`department-for-international-development` was merged into `foreign-commonwealth-development-office` in 2020.\"\n ),\n \"department-for-international-trade\": (\n colour: #cf102d,\n deprecation-message: \"`department-for-international-trade` was merged into `department-for-business-trade` in 2023.\"\n ),\n \"department-for-levelling-up-housing-communities\": (\n colour: #012169,\n deprecation-message:\n \"`department-for-levelling-up-housing-communities` was renamed to `ministry-of-housing-communities-local-government` in 2024.\"\n ),\n \"department-for-science-innovation-technology\": (\n colour: #00f8f8,\n contrast-safe: #008180\n ),\n \"department-for-transport\": (\n colour: #006853\n ),\n \"department-for-work-pensions\": (\n colour: #00bcb5,\n contrast-safe: #00857e\n ),\n \"department-of-energy-climate-change\": (\n colour: #009ddb,\n contrast-safe: #007db3,\n deprecation-message:\n \"`department-of-energy-climate-change` was merged into `department-for-business-energy-industrial-strategy` in 2016. As of 2023, it is equivalent to `department-for-energy-security-net-zero`.\"\n ),\n \"department-of-health\": (\n colour: #00ad93,\n contrast-safe: #008573,\n deprecation-message: \"`department-of-health` became `department-of-health-social-care` in 2018.\"\n ),\n \"department-of-health-social-care\": (\n colour: #00a990,\n contrast-safe: #008674\n ),\n \"foreign-commonwealth-office\": (\n colour: #003e74,\n deprecation-message: \"`foreign-commonwealth-office` became `foreign-commonwealth-development-office` in 2018.\"\n ),\n \"foreign-commonwealth-development-office\": (\n colour: #012069\n ),\n \"government-equalities-office\": (\n colour: #0056b8,\n deprecation-message: \"`government-equalities-office` is deprecated. Use `cabinet-office` instead.\"\n ),\n \"hm-government\": (\n colour: #266ebc\n ),\n \"hm-revenue-customs\": (\n colour: #008476\n ),\n \"hm-treasury\": (\n colour: #b2292e\n ),\n \"home-office\": (\n colour: #732282\n ),\n \"ministry-of-defence\": (\n colour: #532a45\n ),\n \"ministry-of-housing-communities-local-government\": (\n colour: #00625e\n ),\n \"ministry-of-justice\": (\n colour: #000000\n ),\n \"northern-ireland-office\": (\n colour: #00205c\n ),\n \"office-of-the-advocate-general-for-scotland\": (\n colour: #00205c\n ),\n \"office-of-the-leader-of-the-house-of-commons\": (\n colour: #497629\n ),\n \"office-of-the-leader-of-the-house-of-lords\": (\n colour: #9c182f\n ),\n \"office-of-the-secretary-of-state-for-scotland\": (\n colour: #00205c,\n deprecation-message: \"`office-of-the-secretary-of-state-for-scotland` was renamed to `scotland-office` in 2024.\"\n ),\n \"office-of-the-secretary-of-state-for-wales\": (\n colour: #a8353a,\n deprecation-message: \"`office-of-the-secretary-of-state-for-wales` was renamed to `wales-office` in 2024.\"\n ),\n \"prime-ministers-office-10-downing-street\": (\n colour: #0b0c0c\n ),\n \"scotland-office\": (\n colour: #00205c\n ),\n \"serious-fraud-office\": (\n colour: #82368c\n ),\n \"uk-export-finance\": (\n colour: #cf102d\n ),\n \"uk-trade-investment\": (\n colour: #c80651,\n deprecation-message:\n \"`uk-trade-investment` became `department-for-international-trade` in 2016. As of 2023, it is equivalent to `department-for-business-trade`.\"\n ),\n \"wales-office\": (\n colour: #a33038\n )\n);\n\n/// Legacy organisation colours\n///\n/// These are the colours included with Frontend prior to 5.3.0. They will be\n/// removed in a future major version of Frontend.\n///\n/// @type Map\n///\n/// @prop $organisation.colour - Colour for the given `$organisation`\n/// @prop $organisation.colour-websafe - Optional alternative shade of the\n/// organisation colour. Despite the name, is not guaranteed to be websafe\n/// nor provide better contrast than the base colour.\n///\n/// @access private\n/// @deprecated Migrate to using the new organisation colour palette instead.\n\n$_govuk-legacy-organisation-colours: (\n \"attorney-generals-office\": (\n colour: #9f1888,\n colour-websafe: #a03a88\n ),\n \"cabinet-office\": (\n colour: #005abb,\n colour-websafe: #347da4\n ),\n \"civil-service\": (\n colour: #af292e\n ),\n \"department-for-business-innovation-skills\": (\n colour: #003479,\n colour-websafe: #347da4\n ),\n \"department-for-communities-local-government\": (\n colour: #009999,\n colour-websafe: #37836e\n ),\n \"department-for-culture-media-sport\": (\n colour: #d40072,\n colour-websafe: #a03155\n ),\n \"department-for-education\": (\n colour: #003a69,\n colour-websafe: #347ca9\n ),\n \"department-for-environment-food-rural-affairs\": (\n colour: #00a33b,\n colour-websafe: #008938\n ),\n \"department-for-international-development\": (\n colour: #002878,\n colour-websafe: #405e9a\n ),\n \"department-for-international-trade\": (\n colour: #cf102d,\n colour-websafe: #005ea5\n ),\n \"department-for-business-trade\": (\n colour: #cf102d,\n colour-websafe: #005ea5\n ),\n \"department-for-levelling-up-housing-communities\": (\n colour: #012169\n ),\n \"department-for-transport\": (\n colour: #006c56,\n colour-websafe: #398373\n ),\n \"department-for-work-pensions\": (\n colour: #00beb7,\n colour-websafe: #37807b\n ),\n \"department-of-energy-climate-change\": (\n colour: #009ddb,\n colour-websafe: #2b7cac\n ),\n \"department-of-health\": (\n colour: #00ad93,\n colour-websafe: #39836e\n ),\n \"foreign-commonwealth-development-office\": (\n colour: #012169\n ),\n \"foreign-commonwealth-office\": (\n colour: #003e74,\n colour-websafe: #406e97\n ),\n \"government-equalities-office\": (\n colour: #9325b2\n ),\n \"hm-government\": (\n colour: #0076c0,\n colour-websafe: #347da4\n ),\n \"hm-revenue-customs\": (\n colour: #009390,\n colour-websafe: #008670\n ),\n \"hm-treasury\": (\n colour: #af292e,\n colour-websafe: #832322\n ),\n \"home-office\": (\n colour: #9325b2,\n colour-websafe: #9440b2\n ),\n \"ministry-of-defence\": (\n colour: #4d2942,\n colour-websafe: #5a5c92\n ),\n \"ministry-of-justice\": (\n colour: #231f20,\n colour-websafe: #5a5c92\n ),\n \"northern-ireland-office\": (\n colour: #002663,\n colour-websafe: #3e598c\n ),\n \"office-of-the-advocate-general-for-scotland\": (\n colour: #002663,\n colour-websafe: #005ea5\n ),\n \"office-of-the-leader-of-the-house-of-commons\": (\n colour: #317023,\n colour-websafe: #005f8f\n ),\n \"office-of-the-leader-of-the-house-of-lords\": (\n colour: #9c132e,\n colour-websafe: #c2395d\n ),\n \"scotland-office\": (\n colour: #002663,\n colour-websafe: #405c8a\n ),\n \"uk-export-finance\": (\n colour: #005747,\n colour-websafe: #005ea5\n ),\n \"uk-trade-investment\": (\n colour: #c80651,\n colour-websafe: #005ea5\n ),\n \"wales-office\": (\n colour: #a33038,\n colour-websafe: #7a242a\n )\n);\n\n/// Set public organisation colours variable to one of the two maps.\n/// Users can also pass their own map to this to override it entirely.\n///\n/// @type Map\n/// @access public\n\n$govuk-colours-organisations: $_govuk-legacy-organisation-colours !default;\n\n@if $govuk-new-organisation-colours and $govuk-colours-organisations == $_govuk-legacy-organisation-colours {\n $govuk-colours-organisations: $_govuk-organisation-colours;\n}\n\n/// Organisation colour aliases\n///\n/// Some organisations have been renamed within our code over time. Here we\n/// map the prior key to the new equivalent key.\n///\n/// Note: This is for internal renames only. If a department has changed name\n/// or brand colour in a machinery of government change, it should be added to\n/// $govuk-colours-organisations as a new entry with any superseded\n/// organisations marked deprecated.\n///\n/// @type Map\n///\n/// @access private\n\n$_govuk-colours-organisations-aliases: (\n \"department-for-business-and-trade\": \"department-for-business-trade\",\n \"department-for-communities-and-local-government\": \"department-for-communities-local-government\",\n \"department-for-levelling-up-housing-and-communities\": \"department-for-levelling-up-housing-communities\"\n);\n"]}
@@ -216,8 +216,7 @@ $_govuk-typography-scale-modern: (
216
216
  ),
217
217
  27: (
218
218
  // Made same as 24 on mobile (consider deprecating this size)
219
- null:
220
- (
219
+ null: (
221
220
  font-size: 21px,
222
221
  line-height: 25px
223
222
  ),
@@ -232,8 +231,7 @@ $_govuk-typography-scale-modern: (
232
231
  ),
233
232
  24: (
234
233
  // Bump up mobile size from 18/20 to 21/25
235
- null:
236
- (
234
+ null: (
237
235
  font-size: 21px,
238
236
  line-height: 25px
239
237
  ),
@@ -248,8 +246,7 @@ $_govuk-typography-scale-modern: (
248
246
  ),
249
247
  19: (
250
248
  // Stay at 19/25 at all sizes
251
- null:
252
- (
249
+ null: (
253
250
  font-size: 19px,
254
251
  line-height: 25px
255
252
  ),
@@ -260,8 +257,7 @@ $_govuk-typography-scale-modern: (
260
257
  ),
261
258
  16: (
262
259
  // Stay at 16/20 at all sizes
263
- null:
264
- (
260
+ null: (
265
261
  font-size: 16px,
266
262
  line-height: 20px
267
263
  ),
@@ -272,8 +268,7 @@ $_govuk-typography-scale-modern: (
272
268
  ),
273
269
  14: (
274
270
  // Stay at 14/20 at all sizes (consider deprecating this size)
275
- null:
276
- (
271
+ null: (
277
272
  font-size: 14px,
278
273
  line-height: 20px
279
274
  ),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/govuk/settings/_typography-responsive.scss"],"names":[],"mappings":"AAAA,GAAG;AACH,6BAA6B;AAC7B,GAAG;;AAEH,iBAAiB;AACjB,EAAE;AACF,+EAA+E;AAC/E,wDAAwD;AACxD,EAAE;AACF,8EAA8E;AAC9E,yEAAyE;AACzE,yBAAyB;AACzB,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,oCAAoC;;AAEpC,wCAAwC;AACxC,EAAE;AACF,8EAA8E;AAC9E,2EAA2E;AAC3E,yBAAyB;AACzB,EAAE;AACF,4BAA4B;AAC5B,EAAE;AACF,gBAAgB;AAChB,iBAAiB;;AAEjB,2CAA2C;;AAE3C,4CAA4C;AAC5C,EAAE;AACF,YAAY;AACZ,EAAE;AACF,wFAAwF;AACxF,4FAA4F;AAC5F,+EAA+E;AAC/E,mFAAmF;AACnF,EAAE;AACF,kBAAkB;;AAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsHC;;AAED,4CAA4C;AAC5C,EAAE;AACF,YAAY;AACZ,EAAE;AACF,wFAAwF;AACxF,4FAA4F;AAC5F,+EAA+E;AAC/E,mFAAmF;AACnF,EAAE;AACF,kBAAkB;;AAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHC;;AAED,iCAAiC;AACjC,EAAE;AACF,8EAA8E;AAC9E,eAAe;AACf,EAAE;AACF,+EAA+E;AAC/E,0EAA0E;AAC1E,UAAU;AACV,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,gEAAgE;AAChE,EAAE;AACF,6EAA6E;AAC7E,EAAE;AACF,YAAY;AACZ,EAAE;AACF,wFAAwF;AACxF,4FAA4F;AAC5F,+EAA+E;AAC/E,mFAAmF;AACnF,EAAE;AACF,iBAAiB;;AAEjB;;;;UAIU","file":"_typography-responsive.scss","sourcesContent":["////\n/// @group settings/typography\n////\n\n/// Root font size\n///\n/// This is used to calculate rem sizes for the typography, and should match the\n/// _effective_ font-size of your root (or html) element.\n///\n/// Ideally you should not be setting the font-size on the html or root element\n/// in order to allow it to scale with user-preference, in which case this\n/// should be set to 16px.\n///\n/// @type Number\n/// @access public\n\n$govuk-root-font-size: 16px !default;\n\n/// Feature flag for new typography scale\n///\n/// When set to true, $govuk-typography-scale will use the new font map instead\n/// of the current/old one as well as apply changes in components to account\n/// for the updated scale.\n///\n/// Should be removed in 6.0.\n///\n/// @type Boolean\n/// @access public\n\n$govuk-new-typography-scale: false !default;\n\n/// The font map for the old typography scale\n///\n/// @type Map\n///\n/// @prop {Number} $point.$breakpoint.font-size - Font size for `$point` at `$breakpoint`\n/// @prop {Number} $point.$breakpoint.line-height - Line height for `$point` at `$breakpoint`\n/// @prop {Number} $point.print.font-size - Font size for `$point` when printing\n/// @prop {Number} $point.print.line-height - Line height for `$point` when printing\n///\n/// @access private\n\n$_govuk-typography-scale-legacy: (\n 80: (\n null: (\n font-size: 53px,\n line-height: 55px\n ),\n tablet: (\n font-size: 80px,\n line-height: 80px\n ),\n print: (\n font-size: 53pt,\n line-height: 1.1\n )\n ),\n 48: (\n null: (\n font-size: 32px,\n line-height: 35px\n ),\n tablet: (\n font-size: 48px,\n line-height: 50px\n ),\n print: (\n font-size: 32pt,\n line-height: 1.15\n )\n ),\n 36: (\n null: (\n font-size: 24px,\n line-height: 25px\n ),\n tablet: (\n font-size: 36px,\n line-height: 40px\n ),\n print: (\n font-size: 24pt,\n line-height: 1.05\n )\n ),\n 27: (\n null: (\n font-size: 18px,\n line-height: 20px\n ),\n tablet: (\n font-size: 27px,\n line-height: 30px\n ),\n print: (\n font-size: 18pt,\n line-height: 1.15\n )\n ),\n 24: (\n null: (\n font-size: 18px,\n line-height: 20px\n ),\n tablet: (\n font-size: 24px,\n line-height: 30px\n ),\n print: (\n font-size: 18pt,\n line-height: 1.15\n )\n ),\n 19: (\n null: (\n font-size: 16px,\n line-height: 20px\n ),\n tablet: (\n font-size: 19px,\n line-height: 25px\n ),\n print: (\n font-size: 14pt,\n line-height: 1.15\n )\n ),\n 16: (\n null: (\n font-size: 14px,\n line-height: 16px\n ),\n tablet: (\n font-size: 16px,\n line-height: 20px\n ),\n print: (\n font-size: 14pt,\n line-height: 1.2\n )\n ),\n 14: (\n null: (\n font-size: 12px,\n line-height: 15px\n ),\n tablet: (\n font-size: 14px,\n line-height: 20px\n ),\n print: (\n font-size: 12pt,\n line-height: 1.2\n ),\n deprecation: (\n key: \"govuk-typography-scale-14\",\n message: \"14 on the type scale is deprecated and will be removed as \" +\n \"a possible option in the next major version.\"\n )\n )\n);\n\n/// The font map for the new typography scale\n///\n/// @type Map\n///\n/// @prop {Number} $point.$breakpoint.font-size - Font size for `$point` at `$breakpoint`\n/// @prop {Number} $point.$breakpoint.line-height - Line height for `$point` at `$breakpoint`\n/// @prop {Number} $point.print.font-size - Font size for `$point` when printing\n/// @prop {Number} $point.print.line-height - Line height for `$point` when printing\n///\n/// @access private\n\n$_govuk-typography-scale-modern: (\n 80: (\n null: (\n font-size: 53px,\n line-height: 55px\n ),\n tablet: (\n font-size: 80px,\n line-height: 80px\n ),\n print: (\n font-size: 53pt,\n line-height: 1.1\n )\n ),\n 48: (\n null: (\n font-size: 32px,\n line-height: 35px\n ),\n tablet: (\n font-size: 48px,\n line-height: 50px\n ),\n print: (\n font-size: 32pt,\n line-height: 1.15\n )\n ),\n 36: (\n null: (\n font-size: 27px,\n line-height: 30px\n ),\n tablet: (\n font-size: 36px,\n line-height: 40px\n ),\n print: (\n font-size: 24pt,\n line-height: 1.05\n )\n ),\n 27: (\n // Made same as 24 on mobile (consider deprecating this size)\n null:\n (\n font-size: 21px,\n line-height: 25px\n ),\n tablet: (\n font-size: 27px,\n line-height: 30px\n ),\n print: (\n font-size: 18pt,\n line-height: 1.15\n )\n ),\n 24: (\n // Bump up mobile size from 18/20 to 21/25\n null:\n (\n font-size: 21px,\n line-height: 25px\n ),\n tablet: (\n font-size: 24px,\n line-height: 30px\n ),\n print: (\n font-size: 18pt,\n line-height: 1.15\n )\n ),\n 19: (\n // Stay at 19/25 at all sizes\n null:\n (\n font-size: 19px,\n line-height: 25px\n ),\n print: (\n font-size: 14pt,\n line-height: 1.15\n )\n ),\n 16: (\n // Stay at 16/20 at all sizes\n null:\n (\n font-size: 16px,\n line-height: 20px\n ),\n print: (\n font-size: 14pt,\n line-height: 1.2\n )\n ),\n 14: (\n // Stay at 14/20 at all sizes (consider deprecating this size)\n null:\n (\n font-size: 14px,\n line-height: 20px\n ),\n print: (\n font-size: 12pt,\n line-height: 1.2\n ),\n deprecation: (\n key: \"govuk-typography-scale-14\",\n message: \"14 on the type scale is deprecated and will be removed as \" +\n \"a possible option in the next major version.\"\n )\n )\n);\n\n/// Responsive typography font map\n///\n/// This is used to generate responsive typography that adapts according to the\n/// breakpoints.\n///\n/// Font size and font weight can be defined for each breakpoint. You can define\n/// different behaviour on tablet and desktop. The 'null' breakpoint is for\n/// mobile.\n///\n/// Line-heights will automatically be converted from pixel measurements into\n/// relative values. For example, with a font-size of 16px and a line-height of\n/// 24px, the line-height will be converted to 1.5 before output.\n///\n/// You can also specify a separate font size and line height for print media.\n///\n/// @type Map\n///\n/// @prop {Number} $point.$breakpoint.font-size - Font size for `$point` at `$breakpoint`\n/// @prop {Number} $point.$breakpoint.line-height - Line height for `$point` at `$breakpoint`\n/// @prop {Number} $point.print.font-size - Font size for `$point` when printing\n/// @prop {Number} $point.print.line-height - Line height for `$point` when printing\n///\n/// @access public\n\n$govuk-typography-scale: if(\n $govuk-new-typography-scale,\n $_govuk-typography-scale-modern,\n $_govuk-typography-scale-legacy\n) !default;\n"]}
1
+ {"version":3,"sources":["../../../src/govuk/settings/_typography-responsive.scss"],"names":[],"mappings":"AAAA,GAAG;AACH,6BAA6B;AAC7B,GAAG;;AAEH,iBAAiB;AACjB,EAAE;AACF,+EAA+E;AAC/E,wDAAwD;AACxD,EAAE;AACF,8EAA8E;AAC9E,yEAAyE;AACzE,yBAAyB;AACzB,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,oCAAoC;;AAEpC,wCAAwC;AACxC,EAAE;AACF,8EAA8E;AAC9E,2EAA2E;AAC3E,yBAAyB;AACzB,EAAE;AACF,4BAA4B;AAC5B,EAAE;AACF,gBAAgB;AAChB,iBAAiB;;AAEjB,2CAA2C;;AAE3C,4CAA4C;AAC5C,EAAE;AACF,YAAY;AACZ,EAAE;AACF,wFAAwF;AACxF,4FAA4F;AAC5F,+EAA+E;AAC/E,mFAAmF;AACnF,EAAE;AACF,kBAAkB;;AAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsHC;;AAED,4CAA4C;AAC5C,EAAE;AACF,YAAY;AACZ,EAAE;AACF,wFAAwF;AACxF,4FAA4F;AAC5F,+EAA+E;AAC/E,mFAAmF;AACnF,EAAE;AACF,kBAAkB;;AAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+GC;;AAED,iCAAiC;AACjC,EAAE;AACF,8EAA8E;AAC9E,eAAe;AACf,EAAE;AACF,+EAA+E;AAC/E,0EAA0E;AAC1E,UAAU;AACV,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,gEAAgE;AAChE,EAAE;AACF,6EAA6E;AAC7E,EAAE;AACF,YAAY;AACZ,EAAE;AACF,wFAAwF;AACxF,4FAA4F;AAC5F,+EAA+E;AAC/E,mFAAmF;AACnF,EAAE;AACF,iBAAiB;;AAEjB;;;;UAIU","file":"_typography-responsive.scss","sourcesContent":["////\n/// @group settings/typography\n////\n\n/// Root font size\n///\n/// This is used to calculate rem sizes for the typography, and should match the\n/// _effective_ font-size of your root (or html) element.\n///\n/// Ideally you should not be setting the font-size on the html or root element\n/// in order to allow it to scale with user-preference, in which case this\n/// should be set to 16px.\n///\n/// @type Number\n/// @access public\n\n$govuk-root-font-size: 16px !default;\n\n/// Feature flag for new typography scale\n///\n/// When set to true, $govuk-typography-scale will use the new font map instead\n/// of the current/old one as well as apply changes in components to account\n/// for the updated scale.\n///\n/// Should be removed in 6.0.\n///\n/// @type Boolean\n/// @access public\n\n$govuk-new-typography-scale: false !default;\n\n/// The font map for the old typography scale\n///\n/// @type Map\n///\n/// @prop {Number} $point.$breakpoint.font-size - Font size for `$point` at `$breakpoint`\n/// @prop {Number} $point.$breakpoint.line-height - Line height for `$point` at `$breakpoint`\n/// @prop {Number} $point.print.font-size - Font size for `$point` when printing\n/// @prop {Number} $point.print.line-height - Line height for `$point` when printing\n///\n/// @access private\n\n$_govuk-typography-scale-legacy: (\n 80: (\n null: (\n font-size: 53px,\n line-height: 55px\n ),\n tablet: (\n font-size: 80px,\n line-height: 80px\n ),\n print: (\n font-size: 53pt,\n line-height: 1.1\n )\n ),\n 48: (\n null: (\n font-size: 32px,\n line-height: 35px\n ),\n tablet: (\n font-size: 48px,\n line-height: 50px\n ),\n print: (\n font-size: 32pt,\n line-height: 1.15\n )\n ),\n 36: (\n null: (\n font-size: 24px,\n line-height: 25px\n ),\n tablet: (\n font-size: 36px,\n line-height: 40px\n ),\n print: (\n font-size: 24pt,\n line-height: 1.05\n )\n ),\n 27: (\n null: (\n font-size: 18px,\n line-height: 20px\n ),\n tablet: (\n font-size: 27px,\n line-height: 30px\n ),\n print: (\n font-size: 18pt,\n line-height: 1.15\n )\n ),\n 24: (\n null: (\n font-size: 18px,\n line-height: 20px\n ),\n tablet: (\n font-size: 24px,\n line-height: 30px\n ),\n print: (\n font-size: 18pt,\n line-height: 1.15\n )\n ),\n 19: (\n null: (\n font-size: 16px,\n line-height: 20px\n ),\n tablet: (\n font-size: 19px,\n line-height: 25px\n ),\n print: (\n font-size: 14pt,\n line-height: 1.15\n )\n ),\n 16: (\n null: (\n font-size: 14px,\n line-height: 16px\n ),\n tablet: (\n font-size: 16px,\n line-height: 20px\n ),\n print: (\n font-size: 14pt,\n line-height: 1.2\n )\n ),\n 14: (\n null: (\n font-size: 12px,\n line-height: 15px\n ),\n tablet: (\n font-size: 14px,\n line-height: 20px\n ),\n print: (\n font-size: 12pt,\n line-height: 1.2\n ),\n deprecation: (\n key: \"govuk-typography-scale-14\",\n message: \"14 on the type scale is deprecated and will be removed as \" +\n \"a possible option in the next major version.\"\n )\n )\n);\n\n/// The font map for the new typography scale\n///\n/// @type Map\n///\n/// @prop {Number} $point.$breakpoint.font-size - Font size for `$point` at `$breakpoint`\n/// @prop {Number} $point.$breakpoint.line-height - Line height for `$point` at `$breakpoint`\n/// @prop {Number} $point.print.font-size - Font size for `$point` when printing\n/// @prop {Number} $point.print.line-height - Line height for `$point` when printing\n///\n/// @access private\n\n$_govuk-typography-scale-modern: (\n 80: (\n null: (\n font-size: 53px,\n line-height: 55px\n ),\n tablet: (\n font-size: 80px,\n line-height: 80px\n ),\n print: (\n font-size: 53pt,\n line-height: 1.1\n )\n ),\n 48: (\n null: (\n font-size: 32px,\n line-height: 35px\n ),\n tablet: (\n font-size: 48px,\n line-height: 50px\n ),\n print: (\n font-size: 32pt,\n line-height: 1.15\n )\n ),\n 36: (\n null: (\n font-size: 27px,\n line-height: 30px\n ),\n tablet: (\n font-size: 36px,\n line-height: 40px\n ),\n print: (\n font-size: 24pt,\n line-height: 1.05\n )\n ),\n 27: (\n // Made same as 24 on mobile (consider deprecating this size)\n null: (\n font-size: 21px,\n line-height: 25px\n ),\n tablet: (\n font-size: 27px,\n line-height: 30px\n ),\n print: (\n font-size: 18pt,\n line-height: 1.15\n )\n ),\n 24: (\n // Bump up mobile size from 18/20 to 21/25\n null: (\n font-size: 21px,\n line-height: 25px\n ),\n tablet: (\n font-size: 24px,\n line-height: 30px\n ),\n print: (\n font-size: 18pt,\n line-height: 1.15\n )\n ),\n 19: (\n // Stay at 19/25 at all sizes\n null: (\n font-size: 19px,\n line-height: 25px\n ),\n print: (\n font-size: 14pt,\n line-height: 1.15\n )\n ),\n 16: (\n // Stay at 16/20 at all sizes\n null: (\n font-size: 16px,\n line-height: 20px\n ),\n print: (\n font-size: 14pt,\n line-height: 1.2\n )\n ),\n 14: (\n // Stay at 14/20 at all sizes (consider deprecating this size)\n null: (\n font-size: 14px,\n line-height: 20px\n ),\n print: (\n font-size: 12pt,\n line-height: 1.2\n ),\n deprecation: (\n key: \"govuk-typography-scale-14\",\n message: \"14 on the type scale is deprecated and will be removed as \" +\n \"a possible option in the next major version.\"\n )\n )\n);\n\n/// Responsive typography font map\n///\n/// This is used to generate responsive typography that adapts according to the\n/// breakpoints.\n///\n/// Font size and font weight can be defined for each breakpoint. You can define\n/// different behaviour on tablet and desktop. The 'null' breakpoint is for\n/// mobile.\n///\n/// Line-heights will automatically be converted from pixel measurements into\n/// relative values. For example, with a font-size of 16px and a line-height of\n/// 24px, the line-height will be converted to 1.5 before output.\n///\n/// You can also specify a separate font size and line height for print media.\n///\n/// @type Map\n///\n/// @prop {Number} $point.$breakpoint.font-size - Font size for `$point` at `$breakpoint`\n/// @prop {Number} $point.$breakpoint.line-height - Line height for `$point` at `$breakpoint`\n/// @prop {Number} $point.print.font-size - Font size for `$point` when printing\n/// @prop {Number} $point.print.line-height - Line height for `$point` when printing\n///\n/// @access public\n\n$govuk-typography-scale: if(\n $govuk-new-typography-scale,\n $_govuk-typography-scale-modern,\n $_govuk-typography-scale-legacy\n) !default;\n"]}
@@ -2,20 +2,27 @@
2
2
  {% from "./components/skip-link/macro.njk" import govukSkipLink -%}
3
3
  {% from "./components/header/macro.njk" import govukHeader -%}
4
4
  {% from "./components/footer/macro.njk" import govukFooter -%}
5
+
6
+ {%- set _rebrand = govukRebrand() if govukRebrand is callable else govukRebrand -%}
7
+
8
+ {# Hardcoded value is $govuk-brand-blue if rebrand, otherwise govuk-colour("black") -#}
9
+ {% set themeColor = themeColor | default("#1d70b8" if _rebrand else "#0b0c0c", true) -%}
10
+ {% set assetPath = assetPath | default("/assets/rebrand" if _rebrand else "/assets", true) -%}
11
+
5
12
  <!DOCTYPE html>
6
- <html lang="{{ htmlLang | default("en", true) }}" class="govuk-template {%- if htmlClasses %} {{ htmlClasses }}{% endif %}">
13
+ <html lang="{{ htmlLang | default("en", true) }}" class="govuk-template {%- if _rebrand %} govuk-template--rebranded{% endif %} {%- if htmlClasses %} {{ htmlClasses }}{% endif %}">
7
14
  <head>
8
15
  <meta charset="utf-8">
9
16
  <title {%- if pageTitleLang %} lang="{{ pageTitleLang }}"{% endif %}>{% block pageTitle %}GOV.UK - The best place to find government services and information{% endblock %}</title>
10
17
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
11
- <meta name="theme-color" content="{{ themeColor | default("#0b0c0c", true) }}"> {#- Hardcoded value of $govuk-black #}
18
+ <meta name="theme-color" content="{{ themeColor }}">
12
19
 
13
20
  {% block headIcons %}
14
- <link rel="icon" sizes="48x48" href="{{ assetPath | default("/assets", true) }}/images/favicon.ico">
15
- <link rel="icon" sizes="any" href="{{ assetPath | default("/assets", true) }}/images/favicon.svg" type="image/svg+xml">
16
- <link rel="mask-icon" href="{{ assetPath | default("/assets", true) }}/images/govuk-icon-mask.svg" color="{{ themeColor | default("#0b0c0c") }}"> {#- Hardcoded value of $govuk-black #}
17
- <link rel="apple-touch-icon" href="{{ assetPath | default("/assets", true) }}/images/govuk-icon-180.png">
18
- <link rel="manifest" href="{{ assetPath | default("/assets", true) }}/manifest.json">
21
+ <link rel="icon" sizes="48x48" href="{{ assetPath }}/images/favicon.ico">
22
+ <link rel="icon" sizes="any" href="{{ assetPath }}/images/favicon.svg" type="image/svg+xml">
23
+ <link rel="mask-icon" href="{{ assetPath }}/images/govuk-icon-mask.svg" color="{{ themeColor }}">
24
+ <link rel="apple-touch-icon" href="{{ assetPath }}/images/govuk-icon-180.png">
25
+ <link rel="manifest" href="{{ assetPath }}/manifest.json">
19
26
  {% endblock %}
20
27
 
21
28
  {% block head %}{% endblock %}
@@ -37,7 +44,9 @@
37
44
  {% endblock %}
38
45
 
39
46
  {% block header %}
40
- {{ govukHeader({}) }}
47
+ {{ govukHeader({
48
+ rebrand: _rebrand
49
+ }) }}
41
50
  {% endblock %}
42
51
 
43
52
  {% block main %}
@@ -50,7 +59,9 @@
50
59
  {% endblock %}
51
60
 
52
61
  {% block footer %}
53
- {{ govukFooter({}) }}
62
+ {{ govukFooter({
63
+ rebrand: _rebrand
64
+ }) }}
54
65
  {% endblock %}
55
66
 
56
67
  {% block bodyEnd %}{% endblock %}
@@ -3,5 +3,6 @@
3
3
  @import "image-url";
4
4
  @import "px-to-em";
5
5
  @import "px-to-rem";
6
+ @import "rebrand";
6
7
 
7
8
  /*# sourceMappingURL=_index.scss.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/govuk/tools/_index.scss"],"names":[],"mappings":"AAAA,iBAAiB;AACjB,kBAAkB;AAClB,mBAAmB;AACnB,kBAAkB;AAClB,mBAAmB","file":"_index.scss","sourcesContent":["@import \"exports\";\n@import \"font-url\";\n@import \"image-url\";\n@import \"px-to-em\";\n@import \"px-to-rem\";\n"]}
1
+ {"version":3,"sources":["../../../src/govuk/tools/_index.scss"],"names":[],"mappings":"AAAA,iBAAiB;AACjB,kBAAkB;AAClB,mBAAmB;AACnB,kBAAkB;AAClB,mBAAmB;AACnB,iBAAiB","file":"_index.scss","sourcesContent":["@import \"exports\";\n@import \"font-url\";\n@import \"image-url\";\n@import \"px-to-em\";\n@import \"px-to-rem\";\n@import \"rebrand\";\n"]}
@@ -0,0 +1,65 @@
1
+ ////
2
+ /// @group tools
3
+ ////
4
+
5
+ /// Wraps rebranded properties in the feature flag selector
6
+ ///
7
+ /// @example scss - Wrap a block of multiple properties
8
+ /// .foo {
9
+ /// border-width: 1px;
10
+ /// border-colour: #fff;
11
+ ///
12
+ /// @include _govuk-rebrand() {
13
+ /// border-width: 10px;
14
+ /// border-colour: #000;
15
+ /// }
16
+ /// }
17
+ ///
18
+ /// @example scss - Wrap a single property
19
+ /// .foo {
20
+ /// @include _govuk-rebrand("background-color", $from: #fff, $to: #000)
21
+ /// }
22
+ ///
23
+ ///
24
+ /// @param {String} $property - The name of the property being rebranded
25
+ /// @param {String} $from - The original value of the property
26
+ /// @param {String} $to - The rebranded value of the property
27
+ /// @throw if `$property` is set but `$from` or `$to` are missing
28
+ /// @access private
29
+ @mixin _govuk-rebrand($property: null, $from: null, $to: null) {
30
+ @if $property {
31
+ @if not $from {
32
+ @error "`_govuk-rebrand` needs the original value, `$from`";
33
+ }
34
+
35
+ @if not $to {
36
+ @error "`_govuk-rebrand` needs the rebranded value, `$to`";
37
+ }
38
+
39
+ #{$property}: #{$from};
40
+
41
+ @include _govuk-rebrand-wrapper {
42
+ #{$property}: #{$to};
43
+ }
44
+ } @else {
45
+ @include _govuk-rebrand-wrapper {
46
+ @content;
47
+ }
48
+ }
49
+ }
50
+
51
+ @mixin _govuk-rebrand-wrapper() {
52
+ $selector: "#{&}";
53
+
54
+ @if $selector == ".govuk-template" {
55
+ @at-root .govuk-template--rebranded {
56
+ @content;
57
+ }
58
+ } @else {
59
+ .govuk-template--rebranded & {
60
+ @content;
61
+ }
62
+ }
63
+ }
64
+
65
+ /*# sourceMappingURL=_rebrand.scss.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/govuk/tools/_rebrand.scss"],"names":[],"mappings":"AAAA,GAAG;AACH,eAAe;AACf,GAAG;;AAEH,0DAA0D;AAC1D,EAAE;AACF,sDAAsD;AACtD,WAAW;AACX,yBAAyB;AACzB,2BAA2B;AAC3B,EAAE;AACF,kCAAkC;AAClC,4BAA4B;AAC5B,6BAA6B;AAC7B,QAAQ;AACR,MAAM;AACN,EAAE;AACF,yCAAyC;AACzC,WAAW;AACX,0EAA0E;AAC1E,MAAM;AACN,EAAE;AACF,EAAE;AACF,uEAAuE;AACvE,6DAA6D;AAC7D,4DAA4D;AAC5D,gEAAgE;AAChE,kBAAkB;AAClB;EACE;IACE;MACE,2DAA2D;IAC7D;;IAEA;MACE,0DAA0D;IAC5D;;IAEA,sBAAsB;;IAEtB;MACE,oBAAoB;IACtB;EACF,EAAE;IACA;MACE,QAAQ;IACV;EACF;AACF;;AAEA;EACE,iBAAiB;;EAEjB;IACE;MACE,QAAQ;IACV;EACF,EAAE;IACA;MACE,QAAQ;IACV;EACF;AACF","file":"_rebrand.scss","sourcesContent":["////\n/// @group tools\n////\n\n/// Wraps rebranded properties in the feature flag selector\n///\n/// @example scss - Wrap a block of multiple properties\n/// .foo {\n/// border-width: 1px;\n/// border-colour: #fff;\n///\n/// @include _govuk-rebrand() {\n/// border-width: 10px;\n/// border-colour: #000;\n/// }\n/// }\n///\n/// @example scss - Wrap a single property\n/// .foo {\n/// @include _govuk-rebrand(\"background-color\", $from: #fff, $to: #000)\n/// }\n///\n///\n/// @param {String} $property - The name of the property being rebranded\n/// @param {String} $from - The original value of the property\n/// @param {String} $to - The rebranded value of the property\n/// @throw if `$property` is set but `$from` or `$to` are missing\n/// @access private\n@mixin _govuk-rebrand($property: null, $from: null, $to: null) {\n @if $property {\n @if not $from {\n @error \"`_govuk-rebrand` needs the original value, `$from`\";\n }\n\n @if not $to {\n @error \"`_govuk-rebrand` needs the rebranded value, `$to`\";\n }\n\n #{$property}: #{$from};\n\n @include _govuk-rebrand-wrapper {\n #{$property}: #{$to};\n }\n } @else {\n @include _govuk-rebrand-wrapper {\n @content;\n }\n }\n}\n\n@mixin _govuk-rebrand-wrapper() {\n $selector: \"#{&}\";\n\n @if $selector == \".govuk-template\" {\n @at-root .govuk-template--rebranded {\n @content;\n }\n } @else {\n .govuk-template--rebranded & {\n @content;\n }\n }\n}\n"]}
@@ -0,0 +1,25 @@
1
+ const { addFunction } = require('govuk-prototype-kit').views
2
+ const config = require('govuk-prototype-kit/lib/config.js').getConfig()
3
+
4
+ /**
5
+ * Adds a global function to the nunjucks env of prototypes to define the state
6
+ * of `govukRebrand`.
7
+ *
8
+ * Only applies the rebrand if the following is present in a user's prototype config:
9
+ *
10
+ * "plugins": {
11
+ * "govuk-frontend": {
12
+ * "rebrand": true
13
+ * }
14
+ * }
15
+ *
16
+ * Steps through each required param to check that they're present, then returns
17
+ * the state of `rebrand`. If any of the params aren't present or `rebrand` is
18
+ * falsey, return a falsey value.
19
+ *
20
+ * We're finicky about checking each param because, besides the fact that we don't
21
+ * know if each param might be present, `getConfig` by default swallows the error
22
+ * if ./app/config.json isn't present so this makes sure that a user's prototype
23
+ * still runs even if their config doesn't exist for some reason.
24
+ */
25
+ addFunction('govukRebrand', () => config?.plugins?.['govuk-frontend']?.rebrand)
@@ -8,6 +8,6 @@ $govuk-assets-path: if(
8
8
 
9
9
  $govuk-global-styles: true !default;
10
10
 
11
- @import "../govuk/all";
11
+ @import "../govuk/index";
12
12
 
13
13
  /*# sourceMappingURL=init.scss.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/govuk-prototype-kit/init.scss"],"names":[],"mappings":"AAAA,8CAA8C;;AAE9C;;;;UAIU;;AAEV,mCAAmC;;AAEnC,sBAAsB","file":"init.scss","sourcesContent":["$govuk-prototype-kit-major-version: 0 !default;\n\n$govuk-assets-path: if(\n $govuk-prototype-kit-major-version > 12,\n $govuk-extensions-url-context + \"/govuk-frontend/dist/govuk/assets/\",\n \"/govuk/assets/\"\n) !default;\n\n$govuk-global-styles: true !default;\n\n@import \"../govuk/all\";\n"]}
1
+ {"version":3,"sources":["../../src/govuk-prototype-kit/init.scss"],"names":[],"mappings":"AAAA,8CAA8C;;AAE9C;;;;UAIU;;AAEV,mCAAmC;;AAEnC,wBAAwB","file":"init.scss","sourcesContent":["$govuk-prototype-kit-major-version: 0 !default;\n\n$govuk-assets-path: if(\n $govuk-prototype-kit-major-version > 12,\n $govuk-extensions-url-context + \"/govuk-frontend/dist/govuk/assets/\",\n \"/govuk/assets/\"\n) !default;\n\n$govuk-global-styles: true !default;\n\n@import \"../govuk/index\";\n"]}
@@ -3,7 +3,7 @@
3
3
  "description": "GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.",
4
4
  "urls": {
5
5
  "documentation": "https://design-system.service.gov.uk/",
6
- "releaseNotes": "https://github.com/alphagov/govuk-frontend/releases/tag/v5.4.0",
6
+ "releaseNotes": "https://github.com/alphagov/govuk-frontend/releases/tag/v5.10.2",
7
7
  "versionHistory": "https://github.com/alphagov/govuk-frontend/releases"
8
8
  }
9
9
  },
@@ -133,6 +133,10 @@
133
133
  "importFrom": "govuk/components/select/macro.njk",
134
134
  "macroName": "govukSelect"
135
135
  },
136
+ {
137
+ "importFrom": "govuk/components/service-navigation/macro.njk",
138
+ "macroName": "govukServiceNavigation"
139
+ },
136
140
  {
137
141
  "importFrom": "govuk/components/skip-link/macro.njk",
138
142
  "macroName": "govukSkipLink"
@@ -168,5 +172,8 @@
168
172
  ],
169
173
  "nunjucksPaths": [
170
174
  "/dist"
175
+ ],
176
+ "nunjucksFunctions": [
177
+ "/dist/govuk-prototype-kit/functions.js"
171
178
  ]
172
179
  }