govuk_publishing_components 60.0.1 → 60.1.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 (236) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-form-tracker.js +3 -1
  3. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +0 -2
  4. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +5 -0
  5. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +9 -3
  6. data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +1 -2
  7. data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +0 -1
  8. data/config/locales/ku.yml +230 -0
  9. data/config/locales/ky.yml +13 -26
  10. data/config/locales/ti.yml +231 -0
  11. data/lib/govuk_publishing_components/version.rb +1 -1
  12. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +3 -2
  13. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
  14. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +3 -2
  15. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -1
  16. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
  17. data/node_modules/govuk-frontend/dist/govuk/common/index.mjs +1 -1
  18. data/node_modules/govuk-frontend/dist/govuk/common/index.mjs.map +1 -1
  19. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js.map +1 -1
  20. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -1
  21. data/node_modules/govuk-frontend/dist/govuk/components/accordion/fixtures.json +102 -97
  22. data/node_modules/govuk-frontend/dist/govuk/components/back-link/fixtures.json +21 -32
  23. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/fixtures.json +25 -45
  24. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-default.html +6 -0
  25. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js.map +1 -1
  26. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs.map +1 -1
  27. data/node_modules/govuk-frontend/dist/govuk/components/button/fixtures.json +66 -210
  28. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js.map +1 -1
  29. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs.map +1 -1
  30. data/node_modules/govuk-frontend/dist/govuk/components/character-count/fixtures.json +72 -86
  31. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js.map +1 -1
  32. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs.map +1 -1
  33. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/fixtures.json +305 -464
  34. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-default.html +24 -19
  35. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-divider-and-none.html +2 -4
  36. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-divider-none-and-conditional-items.html +2 -4
  37. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-error-message.html +12 -3
  38. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/{template-with-fieldset-and-error-message.html → template-with-hint.html} +5 -5
  39. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-hints-on-items.html +2 -4
  40. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-pre-checked-values.html +36 -27
  41. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-very-long-option-text.html +2 -5
  42. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/fixtures.json +79 -79
  43. data/node_modules/govuk-frontend/dist/govuk/components/date-input/fixtures.json +147 -159
  44. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-default.html +30 -22
  45. data/node_modules/govuk-frontend/dist/govuk/components/details/fixtures.json +22 -22
  46. data/node_modules/govuk-frontend/dist/govuk/components/error-message/fixtures.json +10 -10
  47. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js.map +1 -1
  48. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs.map +1 -1
  49. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/fixtures.json +21 -21
  50. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js.map +1 -1
  51. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs.map +1 -1
  52. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/fixtures.json +19 -19
  53. data/node_modules/govuk-frontend/dist/govuk/components/fieldset/fixtures.json +19 -19
  54. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js.map +1 -1
  55. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs.map +1 -1
  56. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/fixtures.json +99 -150
  57. data/node_modules/govuk-frontend/dist/govuk/components/footer/fixtures.json +50 -63
  58. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +10 -4
  59. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss.map +1 -1
  60. data/node_modules/govuk-frontend/dist/govuk/components/header/fixtures.json +155 -103
  61. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +2 -1
  62. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js.map +1 -1
  63. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +2 -1
  64. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs.map +1 -1
  65. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs +1 -0
  66. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs.map +1 -1
  67. data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width-with-navigation.html +0 -1
  68. data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width.html +0 -1
  69. data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-html.html +0 -3
  70. data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-text-without-link.html +0 -3
  71. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-full-width-border.html +0 -1
  72. data/node_modules/govuk-frontend/dist/govuk/components/hint/fixtures.json +7 -7
  73. data/node_modules/govuk-frontend/dist/govuk/components/input/fixtures.json +158 -179
  74. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/fixtures.json +7 -7
  75. data/node_modules/govuk-frontend/dist/govuk/components/label/fixtures.json +18 -18
  76. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/fixtures.json +74 -108
  77. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js.map +1 -1
  78. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs.map +1 -1
  79. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-text-as-html.html +7 -1
  80. data/node_modules/govuk-frontend/dist/govuk/components/pagination/fixtures.json +80 -98
  81. data/node_modules/govuk-frontend/dist/govuk/components/pagination/macro-options.json +4 -4
  82. data/node_modules/govuk-frontend/dist/govuk/components/panel/fixtures.json +22 -22
  83. data/node_modules/govuk-frontend/dist/govuk/components/password-input/fixtures.json +53 -48
  84. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js.map +1 -1
  85. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs.map +1 -1
  86. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/fixtures.json +8 -8
  87. data/node_modules/govuk-frontend/dist/govuk/components/radios/fixtures.json +213 -328
  88. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js.map +1 -1
  89. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs.map +1 -1
  90. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-default.html +18 -16
  91. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-hint.html +24 -0
  92. data/node_modules/govuk-frontend/dist/govuk/components/select/fixtures.json +99 -115
  93. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +72 -5
  94. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss.map +1 -1
  95. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json +198 -62
  96. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/macro-options.json +6 -0
  97. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js +1 -1
  98. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js.map +1 -1
  99. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs +1 -1
  100. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs.map +1 -1
  101. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/{template-with-navigation-with-an-active-item.html → template-inverse.html} +7 -2
  102. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-a-single-navigation-item-and-collapsenavigationonmobile-set-to-true.html +38 -0
  103. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-a-single-navigation-item.html +35 -0
  104. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-collapsenavigationonmobile-set-to-false.html +60 -0
  105. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template.njk +3 -0
  106. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/fixtures.json +10 -10
  107. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js.map +1 -1
  108. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs.map +1 -1
  109. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/fixtures.json +282 -518
  110. data/node_modules/govuk-frontend/dist/govuk/components/table/fixtures.json +75 -75
  111. data/node_modules/govuk-frontend/dist/govuk/components/tabs/fixtures.json +44 -39
  112. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js +1 -1
  113. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js.map +1 -1
  114. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs +1 -1
  115. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs.map +1 -1
  116. data/node_modules/govuk-frontend/dist/govuk/components/tag/fixtures.json +14 -26
  117. data/node_modules/govuk-frontend/dist/govuk/components/task-list/fixtures.json +14 -71
  118. data/node_modules/govuk-frontend/dist/govuk/components/textarea/fixtures.json +81 -81
  119. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/fixtures.json +9 -9
  120. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +5 -2
  121. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss.map +1 -1
  122. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
  123. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
  124. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
  125. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js.map +1 -1
  126. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +31 -2
  127. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss.map +1 -1
  128. data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss +4 -1
  129. data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss.map +1 -1
  130. data/node_modules/govuk-frontend/dist/govuk/macros/logo.njk +2 -2
  131. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +2 -2
  132. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss.map +1 -1
  133. data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss +13 -0
  134. data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss.map +1 -1
  135. data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +1 -1
  136. data/node_modules/govuk-frontend/package.json +7 -7
  137. metadata +15 -102
  138. data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-with-focusable-elements-inside.html +0 -26
  139. data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-with-one-section-open.html +0 -30
  140. data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-with-translations.html +0 -30
  141. data/node_modules/govuk-frontend/dist/govuk/components/back-link/template-with-custom-link.html +0 -1
  142. data/node_modules/govuk-frontend/dist/govuk/components/back-link/template-with-custom-text.html +0 -1
  143. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-multiple-levels.html +0 -16
  144. data/node_modules/govuk-frontend/dist/govuk/components/button/template-input-disabled.html +0 -1
  145. data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-disabled.html +0 -3
  146. data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-link.html +0 -3
  147. data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-start.html +0 -6
  148. data/node_modules/govuk-frontend/dist/govuk/components/button/template-prevent-double-click.html +0 -3
  149. data/node_modules/govuk-frontend/dist/govuk/components/button/template-secondary-disabled.html +0 -3
  150. data/node_modules/govuk-frontend/dist/govuk/components/button/template-secondary-link.html +0 -3
  151. data/node_modules/govuk-frontend/dist/govuk/components/button/template-start-link.html +0 -6
  152. data/node_modules/govuk-frontend/dist/govuk/components/button/template-warning-disabled.html +0 -3
  153. data/node_modules/govuk-frontend/dist/govuk/components/button/template-warning-link.html +0 -3
  154. data/node_modules/govuk-frontend/dist/govuk/components/button/template-with-active-state.html +0 -3
  155. data/node_modules/govuk-frontend/dist/govuk/components/button/template-with-focus-state.html +0 -3
  156. data/node_modules/govuk-frontend/dist/govuk/components/button/template-with-hover-state.html +0 -3
  157. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-custom-textarea-description.html +0 -9
  158. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-error.html +0 -12
  159. data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-translations.html +0 -9
  160. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-disabled.html +0 -27
  161. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-a-medium-legend.html +0 -33
  162. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-item-checked.html +0 -39
  163. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-items-with-special-characters.html +0 -39
  164. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-disabled-item.html +0 -29
  165. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-error-message-and-hints-on-items.html +0 -39
  166. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-id-and-name.html +0 -30
  167. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-single-option-and-hint-set-aria-describedby-on-input.html +0 -16
  168. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-single-option-set-aria-describedby-on-input.html +0 -13
  169. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-without-fieldset.html +0 -22
  170. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-client-side-implementation.html +0 -60
  171. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-autocomplete-values.html +0 -36
  172. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-default-items.html +0 -36
  173. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-input-attributes.html +0 -36
  174. data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-optional-form-group-classes.html +0 -36
  175. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template-translated.html +0 -5
  176. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-direct-media-capture.html +0 -6
  177. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-image-files-only.html +0 -6
  178. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-multiple-files.html +0 -6
  179. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-disabled.html +0 -6
  180. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-disabled.html +0 -13
  181. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-with-optional-form-group-classes.html +0 -6
  182. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-meta.html +0 -56
  183. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-label.html +0 -59
  184. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-navigation-label.html +0 -59
  185. data/node_modules/govuk-frontend/dist/govuk/components/input/template-disabled.html +0 -6
  186. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-autocapitalize-turned-off.html +0 -6
  187. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-autocomplete-attribute.html +0 -6
  188. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-optional-form-group-classes.html +0 -6
  189. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-pattern-attribute.html +0 -6
  190. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-prefix-and-long-suffix.html +0 -10
  191. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-spellcheck-disabled.html +0 -6
  192. data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-spellcheck-enabled.html +0 -6
  193. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-auto-focus-disabled-with-type-as-success.html +0 -12
  194. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-auto-focus-explicitly-enabled-with-type-as-success.html +0 -12
  195. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-custom-tabindex.html +0 -12
  196. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-paragraph-as-html-heading.html +0 -10
  197. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-rolealert-overridden-to-roleregion-with-type-as-success.html +0 -12
  198. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-success-with-custom-html.html +0 -16
  199. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-a-list.html +0 -16
  200. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-accessible-labels-on-item-links.html +0 -39
  201. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-navigation-landmark.html +0 -39
  202. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-prev-and-next-only-in-a-different-language.html +0 -22
  203. data/node_modules/govuk-frontend/dist/govuk/components/panel/template-custom-heading-level.html +0 -8
  204. data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-new-password-autocomplete.html +0 -11
  205. data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-translations.html +0 -11
  206. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-prechecked-using-value.html +0 -16
  207. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-prechecked.html +0 -19
  208. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-inline-extreme.html +0 -69
  209. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-disabled.html +0 -27
  210. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-a-medium-legend.html +0 -24
  211. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-items-with-special-characters.html +0 -39
  212. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-disabled.html +0 -29
  213. data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-idprefix.html +0 -16
  214. data/node_modules/govuk-frontend/dist/govuk/components/select/template-id.html +0 -7
  215. data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-no-items.html +0 -7
  216. data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-optional-form-group-classes.html +0 -10
  217. data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-selected-value.html +0 -10
  218. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-a-custom-header-level.html +0 -28
  219. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-check-your-answers.html +0 -98
  220. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-overridden-widths.html +0 -58
  221. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-translated.html +0 -51
  222. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-with-no-first-action.html +0 -58
  223. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-with-some-actions.html +0 -45
  224. data/node_modules/govuk-frontend/dist/govuk/components/table/template-with-small-text-modifier-for-tables-with-a-lot-of-data.html +0 -19
  225. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-blue.html +0 -3
  226. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-example-with-3-states.html +0 -49
  227. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-autocomplete-attribute.html +0 -6
  228. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-optional-form-group-classes.html +0 -6
  229. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-spellcheck-disabled.html +0 -6
  230. data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-spellcheck-enabled.html +0 -6
  231. /data/node_modules/govuk-frontend/dist/govuk/components/date-input/{template-complete-question.html → template-with-items.html} +0 -0
  232. /data/node_modules/govuk-frontend/dist/govuk/components/table/{template-table-with-head-and-caption.html → template-with-head-and-caption.html} +0 -0
  233. /data/node_modules/govuk-frontend/dist/govuk/components/table/{template-table-with-head.html → template-with-head.html} +0 -0
  234. /data/node_modules/govuk-frontend/dist/govuk/components/task-list/{template-example-with-all-possible-colours.html → template-with-all-possible-colours.html} +0 -0
  235. /data/node_modules/govuk-frontend/dist/govuk/components/task-list/{template-example-with-hint-text-and-additional-states.html → template-with-hint-text-and-additional-states.html} +0 -0
  236. /data/node_modules/govuk-frontend/dist/govuk/components/task-list/{template-example-with-very-long-single-word-tags.html → template-with-very-long-single-word-tags.html} +0 -0
@@ -27,71 +27,8 @@
27
27
  },
28
28
  "hidden": false,
29
29
  "description": "",
30
- "previewLayoutModifiers": [],
31
- "screenshot": false,
32
- "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"select-1\">\n Label text goes here\n </label>\n <select class=\"govuk-select\" id=\"select-1\" name=\"select-1\">\n <option value=\"1\">GOV.UK frontend option 1</option>\n <option value=\"2\" selected>GOV.UK frontend option 2</option>\n <option value=\"3\" disabled>GOV.UK frontend option 3</option>\n </select>\n</div>"
33
- },
34
- {
35
- "name": "id",
36
- "options": {
37
- "id": "select-id",
38
- "name": "test-name",
39
- "label": {
40
- "text": "Horse with no name"
41
- },
42
- "items": []
43
- },
44
- "hidden": false,
45
- "description": "",
46
- "previewLayoutModifiers": [],
47
- "screenshot": false,
48
- "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"select-id\">\n Horse with no name\n </label>\n <select class=\"govuk-select\" id=\"select-id\" name=\"test-name\">\n </select>\n</div>"
49
- },
50
- {
51
- "name": "with no items",
52
- "options": {
53
- "id": "select-1",
54
- "name": "select-1",
55
- "label": {
56
- "text": "Horse with no name"
57
- },
58
- "items": []
59
- },
60
- "hidden": false,
61
- "description": "",
62
- "previewLayoutModifiers": [],
63
- "screenshot": false,
64
- "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"select-1\">\n Horse with no name\n </label>\n <select class=\"govuk-select\" id=\"select-1\" name=\"select-1\">\n </select>\n</div>"
65
- },
66
- {
67
- "name": "with selected value",
68
- "options": {
69
- "id": "select-1",
70
- "name": "select-1",
71
- "label": {
72
- "text": "Label text goes here"
73
- },
74
- "items": [
75
- {
76
- "value": 1,
77
- "text": "GOV.UK frontend option 1"
78
- },
79
- {
80
- "value": 2,
81
- "text": "GOV.UK frontend option 2"
82
- },
83
- {
84
- "value": 3,
85
- "text": "GOV.UK frontend option 3",
86
- "disabled": true
87
- }
88
- ],
89
- "value": 2
90
- },
91
- "hidden": false,
92
- "description": "",
93
- "previewLayoutModifiers": [],
94
- "screenshot": false,
30
+ "pageTemplateOptions": {},
31
+ "screenshot": true,
95
32
  "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"select-1\">\n Label text goes here\n </label>\n <select class=\"govuk-select\" id=\"select-1\" name=\"select-1\">\n <option value=\"1\">GOV.UK frontend option 1</option>\n <option value=\"2\" selected>GOV.UK frontend option 2</option>\n <option value=\"3\" disabled>GOV.UK frontend option 3</option>\n </select>\n</div>"
96
33
  },
97
34
  {
@@ -125,7 +62,7 @@
125
62
  },
126
63
  "hidden": false,
127
64
  "description": "",
128
- "previewLayoutModifiers": [],
65
+ "pageTemplateOptions": {},
129
66
  "screenshot": false,
130
67
  "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"select-2\">\n Label text goes here\n </label>\n <div id=\"select-2-hint\" class=\"govuk-hint\">\n Hint text goes here\n </div>\n <p id=\"select-2-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message goes here\n </p>\n <select class=\"govuk-select govuk-select--error\" id=\"select-2\" name=\"select-2\" aria-describedby=\"select-2-hint select-2-error\">\n <option value=\"1\">GOV.UK frontend option 1</option>\n <option value=\"2\">GOV.UK frontend option 2</option>\n <option value=\"3\">GOV.UK frontend option 3</option>\n </select>\n</div>"
131
68
  },
@@ -158,7 +95,7 @@
158
95
  },
159
96
  "hidden": false,
160
97
  "description": "",
161
- "previewLayoutModifiers": [],
98
+ "pageTemplateOptions": {},
162
99
  "screenshot": false,
163
100
  "html": "<div class=\"govuk-form-group\">\n <h1 class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--l\" for=\"select-3\">\n Label text goes here\n </label>\n </h1>\n <select class=\"govuk-select\" id=\"select-3\" name=\"select-3\">\n <option value=\"1\">GOV.UK frontend option 1</option>\n <option value=\"2\" selected>GOV.UK frontend option 2</option>\n <option value=\"3\" disabled>GOV.UK frontend option 3</option>\n </select>\n</div>"
164
101
  },
@@ -190,45 +127,10 @@
190
127
  },
191
128
  "hidden": false,
192
129
  "description": "",
193
- "previewLayoutModifiers": [],
130
+ "pageTemplateOptions": {},
194
131
  "screenshot": false,
195
132
  "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"select-1\">\n Label text goes here\n </label>\n <select class=\"govuk-select govuk-!-width-full\" id=\"select-1\" name=\"select-1\">\n <option value=\"1\">GOV.UK frontend option 1</option>\n <option value=\"2\" selected>GOV.UK frontend option 2</option>\n <option value=\"3\" disabled>GOV.UK frontend option 3</option>\n </select>\n</div>"
196
133
  },
197
- {
198
- "name": "with optional form-group classes",
199
- "options": {
200
- "id": "select-1",
201
- "name": "select-1",
202
- "classes": "govuk-!-width-full",
203
- "label": {
204
- "text": "Label text goes here"
205
- },
206
- "formGroup": {
207
- "classes": "extra-class"
208
- },
209
- "items": [
210
- {
211
- "value": 1,
212
- "text": "GOV.UK frontend option 1"
213
- },
214
- {
215
- "value": 2,
216
- "text": "GOV.UK frontend option 2",
217
- "selected": true
218
- },
219
- {
220
- "value": 3,
221
- "text": "GOV.UK frontend option 3",
222
- "disabled": true
223
- }
224
- ]
225
- },
226
- "hidden": false,
227
- "description": "",
228
- "previewLayoutModifiers": [],
229
- "screenshot": false,
230
- "html": "<div class=\"govuk-form-group extra-class\">\n <label class=\"govuk-label\" for=\"select-1\">\n Label text goes here\n </label>\n <select class=\"govuk-select govuk-!-width-full\" id=\"select-1\" name=\"select-1\">\n <option value=\"1\">GOV.UK frontend option 1</option>\n <option value=\"2\" selected>GOV.UK frontend option 2</option>\n <option value=\"3\" disabled>GOV.UK frontend option 3</option>\n </select>\n</div>"
231
- },
232
134
  {
233
135
  "name": "with describedBy",
234
136
  "options": {
@@ -251,7 +153,7 @@
251
153
  },
252
154
  "hidden": true,
253
155
  "description": "",
254
- "previewLayoutModifiers": [],
156
+ "pageTemplateOptions": {},
255
157
  "screenshot": false,
256
158
  "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"with-describedby\">\n Label text goes here\n </label>\n <select class=\"govuk-select\" id=\"with-describedby\" name=\"with-describedby\" aria-describedby=\"test-target-element\">\n <option value=\"1\">GOV.UK frontend option 1</option>\n <option value=\"2\">GOV.UK frontend option 2</option>\n </select>\n</div>"
257
159
  },
@@ -279,7 +181,7 @@
279
181
  },
280
182
  "hidden": true,
281
183
  "description": "",
282
- "previewLayoutModifiers": [],
184
+ "pageTemplateOptions": {},
283
185
  "screenshot": false,
284
186
  "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"with-attributes\">\n Label text goes here\n </label>\n <select class=\"govuk-select\" id=\"with-attributes\" name=\"with-attributes\" data-attribute=\"my data value\">\n <option value=\"1\">GOV.UK frontend option 1</option>\n <option value=\"2\">GOV.UK frontend option 2</option>\n </select>\n</div>"
285
187
  },
@@ -313,7 +215,7 @@
313
215
  },
314
216
  "hidden": true,
315
217
  "description": "",
316
- "previewLayoutModifiers": [],
218
+ "pageTemplateOptions": {},
317
219
  "screenshot": false,
318
220
  "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"with-item-attributes\">\n Label text goes here\n </label>\n <select class=\"govuk-select\" id=\"with-item-attributes\" name=\"with-item-attributes\">\n <option value=\"1\" data-attribute=\"ABC\" data-second-attribute=\"DEF\">Option 1</option>\n <option value=\"2\" selected data-attribute=\"GHI\" data-second-attribute=\"JKL\">Option 2</option>\n </select>\n</div>"
319
221
  },
@@ -341,7 +243,7 @@
341
243
  },
342
244
  "hidden": true,
343
245
  "description": "",
344
- "previewLayoutModifiers": [],
246
+ "pageTemplateOptions": {},
345
247
  "screenshot": false,
346
248
  "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"with-falsy-items\">\n Label text goes here\n </label>\n <select class=\"govuk-select\" id=\"with-falsy-items\" name=\"with-falsy-items\">\n <option value=\"1\">Option 1</option>\n <option value=\"2\">Options 2</option>\n </select>\n</div>"
347
249
  },
@@ -359,7 +261,7 @@
359
261
  },
360
262
  "hidden": true,
361
263
  "description": "",
362
- "previewLayoutModifiers": [],
264
+ "pageTemplateOptions": {},
363
265
  "screenshot": false,
364
266
  "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"select-with-hint\">\n Label text goes here\n </label>\n <div id=\"select-with-hint-hint\" class=\"govuk-hint\">\n Hint text goes here\n </div>\n <select class=\"govuk-select\" id=\"select-with-hint\" name=\"select-with-hint\" aria-describedby=\"select-with-hint-hint\">\n </select>\n</div>"
365
267
  },
@@ -388,7 +290,7 @@
388
290
  },
389
291
  "hidden": true,
390
292
  "description": "",
391
- "previewLayoutModifiers": [],
293
+ "pageTemplateOptions": {},
392
294
  "screenshot": false,
393
295
  "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"select-with-hint\">\n Label text goes here\n </label>\n <div id=\"select-with-hint-hint\" class=\"govuk-hint\">\n Hint text goes here\n </div>\n <select class=\"govuk-select\" id=\"select-with-hint\" name=\"select-with-hint\" aria-describedby=\"test-target-element select-with-hint-hint\">\n <option value=\"1\">GOV.UK frontend option 1</option>\n <option value=\"2\">GOV.UK frontend option 2</option>\n </select>\n</div>"
394
296
  },
@@ -416,7 +318,7 @@
416
318
  },
417
319
  "hidden": true,
418
320
  "description": "",
419
- "previewLayoutModifiers": [],
321
+ "pageTemplateOptions": {},
420
322
  "screenshot": false,
421
323
  "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"select-with-error\">\n Label text goes here\n </label>\n <p id=\"select-with-error-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message\n </p>\n <select class=\"govuk-select govuk-select--error\" id=\"select-with-error\" name=\"select-with-error\" aria-describedby=\"select-with-error-error\">\n <option value=\"1\">GOV.UK frontend option 1</option>\n <option value=\"2\">GOV.UK frontend option 2</option>\n </select>\n</div>"
422
324
  },
@@ -445,7 +347,7 @@
445
347
  },
446
348
  "hidden": true,
447
349
  "description": "",
448
- "previewLayoutModifiers": [],
350
+ "pageTemplateOptions": {},
449
351
  "screenshot": false,
450
352
  "html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"select-with-error\">\n Label text goes here\n </label>\n <p id=\"select-with-error-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message\n </p>\n <select class=\"govuk-select govuk-select--error\" id=\"select-with-error\" name=\"select-with-error\" aria-describedby=\"test-target-element select-with-error-error\">\n <option value=\"1\">GOV.UK frontend option 1</option>\n <option value=\"2\">GOV.UK frontend option 2</option>\n </select>\n</div>"
451
353
  },
@@ -471,7 +373,7 @@
471
373
  },
472
374
  "hidden": true,
473
375
  "description": "",
474
- "previewLayoutModifiers": [],
376
+ "pageTemplateOptions": {},
475
377
  "screenshot": false,
476
378
  "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"colors\">\n Label text goes here\n </label>\n <select class=\"govuk-select\" id=\"colors\" name=\"colors\">\n <option>Red</option>\n <option>Green</option>\n <option>Blue</option>\n </select>\n</div>"
477
379
  },
@@ -498,7 +400,7 @@
498
400
  },
499
401
  "hidden": true,
500
402
  "description": "",
501
- "previewLayoutModifiers": [],
403
+ "pageTemplateOptions": {},
502
404
  "screenshot": false,
503
405
  "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"colors\">\n Label text goes here\n </label>\n <select class=\"govuk-select\" id=\"colors\" name=\"colors\">\n <option>Red</option>\n <option selected>Green</option>\n <option>Blue</option>\n </select>\n</div>"
504
406
  },
@@ -527,7 +429,7 @@
527
429
  },
528
430
  "hidden": true,
529
431
  "description": "",
530
- "previewLayoutModifiers": [],
432
+ "pageTemplateOptions": {},
531
433
  "screenshot": false,
532
434
  "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"falsy-values\">\n Label text goes here\n </label>\n <select class=\"govuk-select\" id=\"falsy-values\" name=\"falsy-values\">\n <option value=\"\">Empty string</option>\n <option value=\"false\">Boolean false</option>\n <option value=\"0\">Number zero</option>\n </select>\n</div>"
533
435
  },
@@ -558,9 +460,91 @@
558
460
  },
559
461
  "hidden": true,
560
462
  "description": "",
561
- "previewLayoutModifiers": [],
463
+ "pageTemplateOptions": {},
562
464
  "screenshot": false,
563
465
  "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"colors\">\n Label text goes here\n </label>\n <select class=\"govuk-select\" id=\"colors\" name=\"colors\">\n <option value=\"red\">Red</option>\n <option value=\"green\">Green</option>\n <option value=\"blue\">Blue</option>\n </select>\n</div>"
466
+ },
467
+ {
468
+ "name": "id",
469
+ "options": {
470
+ "id": "select-id",
471
+ "name": "test-name",
472
+ "label": {
473
+ "text": "Horse with no name"
474
+ },
475
+ "items": []
476
+ },
477
+ "hidden": true,
478
+ "description": "",
479
+ "pageTemplateOptions": {},
480
+ "screenshot": false,
481
+ "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"select-id\">\n Horse with no name\n </label>\n <select class=\"govuk-select\" id=\"select-id\" name=\"test-name\">\n </select>\n</div>"
482
+ },
483
+ {
484
+ "name": "with selected value",
485
+ "options": {
486
+ "id": "select-1",
487
+ "name": "select-1",
488
+ "label": {
489
+ "text": "Label text goes here"
490
+ },
491
+ "items": [
492
+ {
493
+ "value": 1,
494
+ "text": "GOV.UK frontend option 1"
495
+ },
496
+ {
497
+ "value": 2,
498
+ "text": "GOV.UK frontend option 2"
499
+ },
500
+ {
501
+ "value": 3,
502
+ "text": "GOV.UK frontend option 3",
503
+ "disabled": true
504
+ }
505
+ ],
506
+ "value": 2
507
+ },
508
+ "hidden": true,
509
+ "description": "",
510
+ "pageTemplateOptions": {},
511
+ "screenshot": false,
512
+ "html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"select-1\">\n Label text goes here\n </label>\n <select class=\"govuk-select\" id=\"select-1\" name=\"select-1\">\n <option value=\"1\">GOV.UK frontend option 1</option>\n <option value=\"2\" selected>GOV.UK frontend option 2</option>\n <option value=\"3\" disabled>GOV.UK frontend option 3</option>\n </select>\n</div>"
513
+ },
514
+ {
515
+ "name": "with optional form-group classes",
516
+ "options": {
517
+ "id": "select-1",
518
+ "name": "select-1",
519
+ "classes": "govuk-!-width-full",
520
+ "label": {
521
+ "text": "Label text goes here"
522
+ },
523
+ "formGroup": {
524
+ "classes": "extra-class"
525
+ },
526
+ "items": [
527
+ {
528
+ "value": 1,
529
+ "text": "GOV.UK frontend option 1"
530
+ },
531
+ {
532
+ "value": 2,
533
+ "text": "GOV.UK frontend option 2",
534
+ "selected": true
535
+ },
536
+ {
537
+ "value": 3,
538
+ "text": "GOV.UK frontend option 3",
539
+ "disabled": true
540
+ }
541
+ ]
542
+ },
543
+ "hidden": true,
544
+ "description": "",
545
+ "pageTemplateOptions": {},
546
+ "screenshot": false,
547
+ "html": "<div class=\"govuk-form-group extra-class\">\n <label class=\"govuk-label\" for=\"select-1\">\n Label text goes here\n </label>\n <select class=\"govuk-select govuk-!-width-full\" id=\"select-1\" name=\"select-1\">\n <option value=\"1\">GOV.UK frontend option 1</option>\n <option value=\"2\" selected>GOV.UK frontend option 2</option>\n <option value=\"3\" disabled>GOV.UK frontend option 3</option>\n </select>\n</div>"
564
548
  }
565
549
  ]
566
550
  }
@@ -42,13 +42,22 @@
42
42
  border: 0 solid $govuk-service-navigation-link-colour;
43
43
 
44
44
  @include govuk-media-query($from: tablet) {
45
+ // inline-block is used as a fallback for browsers that don't support flexbox
46
+ display: inline-block;
47
+
45
48
  margin-top: 0;
46
49
  margin-bottom: 0;
47
50
  padding: govuk-spacing(4) 0;
48
51
 
49
52
  @include _govuk-rebrand {
50
53
  padding: govuk-spacing(3) 0;
51
- line-height: 1.5;
54
+
55
+ // More magic numbers ahoy:
56
+ // 29 is the desired height of the element (60), minus top and bottom
57
+ // padding (2×15), minus bottom border (1); 19 is the font-size at this
58
+ // point. This gives us the perfect fractional line height to make the
59
+ // overall component 60px high
60
+ line-height: (29 / 19);
52
61
  }
53
62
 
54
63
  &:not(:last-child) {
@@ -57,6 +66,17 @@
57
66
  }
58
67
  }
59
68
 
69
+ // Remove the top margin of the first nav item if there is a service name but
70
+ // there's no menu button (either because it doesn't exist or it's hidden)
71
+ .govuk-service-navigation__service-name + .govuk-service-navigation__wrapper {
72
+ .govuk-service-navigation__list:first-child,
73
+ .govuk-service-navigation__toggle[hidden] + .govuk-service-navigation__list {
74
+ .govuk-service-navigation__item:first-child {
75
+ margin-top: 0;
76
+ }
77
+ }
78
+ }
79
+
60
80
  .govuk-service-navigation__item--active {
61
81
  @include govuk-media-query($until: tablet) {
62
82
  // Negative offset the left margin so we can place a current page indicator
@@ -102,6 +122,13 @@
102
122
  @include govuk-link-style-text;
103
123
  }
104
124
 
125
+ // Allow navigation section to always take up maximum available space,
126
+ // rather than sizing to fit the content. This makes it easier to right align
127
+ // nav items and use slots.
128
+ .govuk-service-navigation__wrapper {
129
+ flex-grow: 1;
130
+ }
131
+
105
132
  //
106
133
  // Navigation list specific code
107
134
  //
@@ -165,11 +192,10 @@
165
192
  // However... IE11 totally trips over flexbox and doesn't wrap anything,
166
193
  // making all of the items into a single, horizontally scrolling row,
167
194
  // which is no good. This CSS hack removes the flexbox definition for
168
- // IE 10 & 11, reverting it to the flawed, but OK, non-flexbox version.
195
+ // IE 9–11, reverting it to the flawed, but OK, non-flexbox version.
169
196
  //
170
- // CSS hack taken from https://stackoverflow.com/questions/11173106/apply-style-only-on-ie#answer-36448860
171
- // which also includes an explanation of why this works
172
- @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
197
+ // CSS hack from http://browserhacks.com/#hack-a60b03e301a67f76a5a22221c739dc64
198
+ @media screen and (min-width: 0\0) {
173
199
  display: block;
174
200
  }
175
201
  }
@@ -182,6 +208,47 @@
182
208
  .govuk-service-navigation__active-fallback {
183
209
  font-weight: inherit;
184
210
  }
211
+
212
+ // Inverted colour scheme style intended for product pages
213
+ .govuk-service-navigation--inverse {
214
+ @include _govuk-rebrand {
215
+ // Remove bottom border to add width-container ones
216
+ border-bottom: none;
217
+
218
+ // Set colour here so non-link text (service name, slot content) can
219
+ // use it too.
220
+ color: govuk-colour("white");
221
+
222
+ background-color: $govuk-brand-colour;
223
+
224
+ .govuk-width-container {
225
+ border-width: 1px 0;
226
+ border-style: solid;
227
+ border-color: $_govuk-rebrand-border-colour-on-blue-tint-95;
228
+ }
229
+
230
+ // Subtract 1px of space to account for the extra border-top
231
+ .govuk-service-navigation__container {
232
+ margin-top: -1px;
233
+ }
234
+
235
+ // Override the 'active' border colour
236
+ .govuk-service-navigation__item,
237
+ .govuk-service-navigation__service-name {
238
+ border-color: govuk-colour("white");
239
+ }
240
+
241
+ // Override link styles
242
+ .govuk-service-navigation__link {
243
+ @include govuk-link-style-inverse;
244
+ }
245
+
246
+ // Override mobile menu toggle colour when not focused
247
+ .govuk-service-navigation__toggle:not(:focus) {
248
+ color: currentcolor;
249
+ }
250
+ }
251
+ }
185
252
  }
186
253
 
187
254
  /*# sourceMappingURL=_index.scss.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/govuk/components/service-navigation/_index.scss"],"names":[],"mappings":"AAAA;EACE,oEAAoE;EACpE,gEAAgE;EAChE,6DAA6D;;EAE7D,yEAAyE;EACzE,4DAA4D;EAC5D,2EAA2E;;EAE3E;IACE,wBAAwB;IACxB,0BAA0B;IAC1B;;;;KAIC;IACD;;;;KAIC;EACH;;EAEA;IACE,aAAa;IACb,sBAAsB;IACtB,kBAAkB;;IAElB;MACE,mBAAmB;MACnB,eAAe;IACjB;EACF;;EAEA,sEAAsE;EACtE,qEAAqE;EACrE;;IAEE,kBAAkB;IAClB,0BAA0B;IAC1B,qDAAqD;;IAErD;MACE,aAAa;MACb,gBAAgB;MAChB,2BAA2B;;MAE3B;QACE,2BAA2B;QAC3B,gBAAgB;MAClB;;MAEA;QACE,sDAAsD;MACxD;IACF;EACF;;EAEA;IACE;MACE,0EAA0E;MAC1E,qDAAqD;MACrD,2FAA2F;MAC3F,8BAA8B;MAC9B,qEAAqE;IACvE;;IAEA;MACE;;;;OAIC;MACD,uEAAuE;IACzE;EACF;;EAEA;IACE,0BAA0B;IAC1B,sCAAsC;IACtC,0CAA0C;;IAE1C;MACE,kEAAkE;MAClE,eAAe;MACf,4CAA4C;IAC9C;EACF;;EAEA,CAAC;EACD,4BAA4B;EAC5B,CAAC;;EAED;IACE,6CAA6C;EAC/C;;EAEA,uEAAuE;EACvE,2DAA2D;EAC3D;IACE,8BAA8B;EAChC;;EAEA,CAAC;EACD,+BAA+B;EAC/B,CAAC;;EAED;IACE,6CAA6C;IAC7C,oBAAoB;IACpB,0BAA0B;IAC1B,UAAU;IACV,SAAS;IACT,4CAA4C;IAC5C,gBAAgB;IAChB,qBAAqB;IACrB,eAAe;IACf,mBAAmB;;IAEnB;MACE,2BAA2B;IAC7B;;IAEA;MACE,iFAAiF;MACjF,WAAW;MACX,6BAA6B;IAC/B;;IAEA;MACE,+EAA+E;IACjF;;IAEA,mEAAmE;IACnE;MACE,aAAa;IACf;;IAEA,kEAAkE;IAClE,8DAA8D;IAC9D;MACE,aAAa;IACf;EACF;;EAEA;IACE,8BAA8B;IAC9B,SAAS;IACT,+BAA+B;IAC/B,UAAU;IACV,gBAAgB;;IAEhB,mEAAmE;IACnE,sEAAsE;IACtE,wEAAwE;IACxE,uCAAuC;IACvC,wEAAwE;IACxE,0CAA0C;IAC1C;MACE,aAAa;MACb,eAAe;MACf,gBAAgB;;MAEhB,uEAAuE;MACvE,oEAAoE;MACpE,oEAAoE;MACpE,sEAAsE;MACtE,CAAC;MACD,yGAAyG;MACzG,sDAAsD;MACtD;QACE,cAAc;MAChB;IACF;EACF;;EAEA,qEAAqE;EACrE,mEAAmE;EACnE,wEAAwE;EACxE,iCAAiC;EACjC;IACE,oBAAoB;EACtB;AACF","file":"_index.scss","sourcesContent":["@include govuk-exports(\"govuk/component/service-navigation\") {\n $govuk-service-navigation-active-link-border-width: govuk-spacing(1);\n $govuk-service-navigation-background: govuk-colour(\"light-grey\");\n $govuk-service-navigation-border-colour: $govuk-border-colour;\n\n // We make the link colour a little darker than normal here so that it has\n // better perceptual contrast with the navigation background.\n $govuk-service-navigation-link-colour: govuk-shade($govuk-link-colour, 10%);\n\n .govuk-service-navigation {\n border-bottom-width: 1px;\n border-bottom-style: solid;\n @include _govuk-rebrand(\n \"border-bottom-color\",\n $from: $govuk-service-navigation-border-colour,\n $to: $_govuk-rebrand-border-colour-on-blue-tint-95\n );\n @include _govuk-rebrand(\n \"background-color\",\n $from: $govuk-service-navigation-background,\n $to: $_govuk-rebrand-template-background-colour\n );\n }\n\n .govuk-service-navigation__container {\n display: flex;\n flex-direction: column;\n align-items: start;\n\n @include govuk-media-query($from: tablet) {\n flex-direction: row;\n flex-wrap: wrap;\n }\n }\n\n // These styles are shared between nav items and the service name, they\n // ensure that both of them remain vertically aligned with one another\n .govuk-service-navigation__item,\n .govuk-service-navigation__service-name {\n position: relative;\n margin: govuk-spacing(2) 0;\n border: 0 solid $govuk-service-navigation-link-colour;\n\n @include govuk-media-query($from: tablet) {\n margin-top: 0;\n margin-bottom: 0;\n padding: govuk-spacing(4) 0;\n\n @include _govuk-rebrand {\n padding: govuk-spacing(3) 0;\n line-height: 1.5;\n }\n\n &:not(:last-child) {\n @include govuk-responsive-margin(6, $direction: right);\n }\n }\n }\n\n .govuk-service-navigation__item--active {\n @include govuk-media-query($until: tablet) {\n // Negative offset the left margin so we can place a current page indicator\n // to the left without misaligning the list item text.\n margin-left: ((govuk-spacing(2) + $govuk-service-navigation-active-link-border-width) * -1);\n padding-left: govuk-spacing(2);\n border-left-width: $govuk-service-navigation-active-link-border-width;\n }\n\n @include govuk-media-query($from: tablet) {\n @include _govuk-rebrand(\n \"padding-bottom\",\n $from: govuk-spacing(4) - $govuk-service-navigation-active-link-border-width,\n $to: govuk-spacing(3) - $govuk-service-navigation-active-link-border-width\n );\n border-bottom-width: $govuk-service-navigation-active-link-border-width;\n }\n }\n\n .govuk-service-navigation__link {\n @include govuk-link-common;\n @include govuk-link-style-no-underline;\n @include govuk-link-style-no-visited-state;\n\n &:not(:hover):not(:focus) {\n // We set the colour here as we don't want to override the hover or\n // focus colours\n color: $govuk-service-navigation-link-colour;\n }\n }\n\n //\n // Service name specific code\n //\n\n .govuk-service-navigation__service-name {\n @include govuk-font($size: 19, $weight: bold);\n }\n\n // Annoyingly this requires a compound selector in order to overcome the\n // specificity of the other link colour override we're doing\n .govuk-service-navigation__service-name .govuk-service-navigation__link {\n @include govuk-link-style-text;\n }\n\n //\n // Navigation list specific code\n //\n\n .govuk-service-navigation__toggle {\n @include govuk-font($size: 19, $weight: bold);\n display: inline-flex;\n margin: govuk-spacing(2) 0;\n padding: 0;\n border: 0;\n color: $govuk-service-navigation-link-colour;\n background: none;\n word-break: break-all;\n cursor: pointer;\n align-items: center;\n\n &:focus {\n @include govuk-focused-text;\n }\n\n &::after {\n @include govuk-shape-arrow($direction: down, $base: 10px, $display: inline-block);\n content: \"\";\n margin-left: govuk-spacing(1);\n }\n\n &[aria-expanded=\"true\"]::after {\n @include govuk-shape-arrow($direction: up, $base: 10px, $display: inline-block);\n }\n\n // Ensure the button stays hidden if the hidden attribute is present\n &[hidden] {\n display: none;\n }\n\n // If we have both a service name and navigation toggle, remove the\n // margin-top so that there isn't a bunch of space between them\n .govuk-service-navigation__service-name + .govuk-service-navigation__wrapper & {\n margin-top: 0;\n }\n }\n\n .govuk-service-navigation__list {\n @include govuk-font($size: 19);\n margin: 0;\n margin-bottom: govuk-spacing(3);\n padding: 0;\n list-style: none;\n\n // Make the navigation list a flexbox. Doing so resolves a couple of\n // accessibility problems caused by the list items being inline-blocks:\n // - Removes the extra whitespace from between each list item that screen\n // readers would pointlessly announce.\n // - Fixes an NVDA issue in Firefox and Chrome <= 124 where it would read\n // all of the links as a run-on sentence.\n @include govuk-media-query($from: tablet) {\n display: flex;\n flex-wrap: wrap;\n margin-bottom: 0;\n\n // However... IE11 totally trips over flexbox and doesn't wrap anything,\n // making all of the items into a single, horizontally scrolling row,\n // which is no good. This CSS hack removes the flexbox definition for\n // IE 10 & 11, reverting it to the flawed, but OK, non-flexbox version.\n //\n // CSS hack taken from https://stackoverflow.com/questions/11173106/apply-style-only-on-ie#answer-36448860\n // which also includes an explanation of why this works\n @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n display: block;\n }\n }\n }\n\n // This is a <strong> element that is used as a fallback mechanism for\n // visually indicating the current page in scenarios where CSS isn't\n // available. We don't actually want it to be bold normally, so set it to\n // inherit the parent font-weight.\n .govuk-service-navigation__active-fallback {\n font-weight: inherit;\n }\n}\n"]}
1
+ {"version":3,"sources":["../../../../src/govuk/components/service-navigation/_index.scss"],"names":[],"mappings":"AAAA;EACE,oEAAoE;EACpE,gEAAgE;EAChE,6DAA6D;;EAE7D,yEAAyE;EACzE,4DAA4D;EAC5D,2EAA2E;;EAE3E;IACE,wBAAwB;IACxB,0BAA0B;IAC1B;;;;KAIC;IACD;;;;KAIC;EACH;;EAEA;IACE,aAAa;IACb,sBAAsB;IACtB,kBAAkB;;IAElB;MACE,mBAAmB;MACnB,eAAe;IACjB;EACF;;EAEA,sEAAsE;EACtE,qEAAqE;EACrE;;IAEE,kBAAkB;IAClB,0BAA0B;IAC1B,qDAAqD;;IAErD;MACE,4EAA4E;MAC5E,qBAAqB;;MAErB,aAAa;MACb,gBAAgB;MAChB,2BAA2B;;MAE3B;QACE,2BAA2B;;QAE3B,0BAA0B;QAC1B,oEAAoE;QACpE,sEAAsE;QACtE,qEAAqE;QACrE,6BAA6B;QAC7B,sBAAsB;MACxB;;MAEA;QACE,sDAAsD;MACxD;IACF;EACF;;EAEA,4EAA4E;EAC5E,yEAAyE;EACzE;IACE;;MAEE;QACE,aAAa;MACf;IACF;EACF;;EAEA;IACE;MACE,0EAA0E;MAC1E,qDAAqD;MACrD,2FAA2F;MAC3F,8BAA8B;MAC9B,qEAAqE;IACvE;;IAEA;MACE;;;;OAIC;MACD,uEAAuE;IACzE;EACF;;EAEA;IACE,0BAA0B;IAC1B,sCAAsC;IACtC,0CAA0C;;IAE1C;MACE,kEAAkE;MAClE,eAAe;MACf,4CAA4C;IAC9C;EACF;;EAEA,CAAC;EACD,4BAA4B;EAC5B,CAAC;;EAED;IACE,6CAA6C;EAC/C;;EAEA,uEAAuE;EACvE,2DAA2D;EAC3D;IACE,8BAA8B;EAChC;;EAEA,qEAAqE;EACrE,4EAA4E;EAC5E,0BAA0B;EAC1B;IACE,YAAY;EACd;;EAEA,CAAC;EACD,+BAA+B;EAC/B,CAAC;;EAED;IACE,6CAA6C;IAC7C,oBAAoB;IACpB,0BAA0B;IAC1B,UAAU;IACV,SAAS;IACT,4CAA4C;IAC5C,gBAAgB;IAChB,qBAAqB;IACrB,eAAe;IACf,mBAAmB;;IAEnB;MACE,2BAA2B;IAC7B;;IAEA;MACE,iFAAiF;MACjF,WAAW;MACX,6BAA6B;IAC/B;;IAEA;MACE,+EAA+E;IACjF;;IAEA,mEAAmE;IACnE;MACE,aAAa;IACf;;IAEA,kEAAkE;IAClE,8DAA8D;IAC9D;MACE,aAAa;IACf;EACF;;EAEA;IACE,8BAA8B;IAC9B,SAAS;IACT,+BAA+B;IAC/B,UAAU;IACV,gBAAgB;;IAEhB,mEAAmE;IACnE,sEAAsE;IACtE,wEAAwE;IACxE,uCAAuC;IACvC,wEAAwE;IACxE,0CAA0C;IAC1C;MACE,aAAa;MACb,eAAe;MACf,gBAAgB;;MAEhB,uEAAuE;MACvE,oEAAoE;MACpE,oEAAoE;MACpE,mEAAmE;MACnE,CAAC;MACD,8EAA8E;MAC9E;QACE,cAAc;MAChB;IACF;EACF;;EAEA,qEAAqE;EACrE,mEAAmE;EACnE,wEAAwE;EACxE,iCAAiC;EACjC;IACE,oBAAoB;EACtB;;EAEA,yDAAyD;EACzD;IACE;MACE,kDAAkD;MAClD,mBAAmB;;MAEnB,mEAAmE;MACnE,aAAa;MACb,4BAA4B;;MAE5B,qCAAqC;;MAErC;QACE,mBAAmB;QACnB,mBAAmB;QACnB,2DAA2D;MAC7D;;MAEA,2DAA2D;MAC3D;QACE,gBAAgB;MAClB;;MAEA,qCAAqC;MACrC;;QAEE,mCAAmC;MACrC;;MAEA,sBAAsB;MACtB;QACE,iCAAiC;MACnC;;MAEA,qDAAqD;MACrD;QACE,mBAAmB;MACrB;IACF;EACF;AACF","file":"_index.scss","sourcesContent":["@include govuk-exports(\"govuk/component/service-navigation\") {\n $govuk-service-navigation-active-link-border-width: govuk-spacing(1);\n $govuk-service-navigation-background: govuk-colour(\"light-grey\");\n $govuk-service-navigation-border-colour: $govuk-border-colour;\n\n // We make the link colour a little darker than normal here so that it has\n // better perceptual contrast with the navigation background.\n $govuk-service-navigation-link-colour: govuk-shade($govuk-link-colour, 10%);\n\n .govuk-service-navigation {\n border-bottom-width: 1px;\n border-bottom-style: solid;\n @include _govuk-rebrand(\n \"border-bottom-color\",\n $from: $govuk-service-navigation-border-colour,\n $to: $_govuk-rebrand-border-colour-on-blue-tint-95\n );\n @include _govuk-rebrand(\n \"background-color\",\n $from: $govuk-service-navigation-background,\n $to: $_govuk-rebrand-template-background-colour\n );\n }\n\n .govuk-service-navigation__container {\n display: flex;\n flex-direction: column;\n align-items: start;\n\n @include govuk-media-query($from: tablet) {\n flex-direction: row;\n flex-wrap: wrap;\n }\n }\n\n // These styles are shared between nav items and the service name, they\n // ensure that both of them remain vertically aligned with one another\n .govuk-service-navigation__item,\n .govuk-service-navigation__service-name {\n position: relative;\n margin: govuk-spacing(2) 0;\n border: 0 solid $govuk-service-navigation-link-colour;\n\n @include govuk-media-query($from: tablet) {\n // inline-block is used as a fallback for browsers that don't support flexbox\n display: inline-block;\n\n margin-top: 0;\n margin-bottom: 0;\n padding: govuk-spacing(4) 0;\n\n @include _govuk-rebrand {\n padding: govuk-spacing(3) 0;\n\n // More magic numbers ahoy:\n // 29 is the desired height of the element (60), minus top and bottom\n // padding (2×15), minus bottom border (1); 19 is the font-size at this\n // point. This gives us the perfect fractional line height to make the\n // overall component 60px high\n line-height: (29 / 19);\n }\n\n &:not(:last-child) {\n @include govuk-responsive-margin(6, $direction: right);\n }\n }\n }\n\n // Remove the top margin of the first nav item if there is a service name but\n // there's no menu button (either because it doesn't exist or it's hidden)\n .govuk-service-navigation__service-name + .govuk-service-navigation__wrapper {\n .govuk-service-navigation__list:first-child,\n .govuk-service-navigation__toggle[hidden] + .govuk-service-navigation__list {\n .govuk-service-navigation__item:first-child {\n margin-top: 0;\n }\n }\n }\n\n .govuk-service-navigation__item--active {\n @include govuk-media-query($until: tablet) {\n // Negative offset the left margin so we can place a current page indicator\n // to the left without misaligning the list item text.\n margin-left: ((govuk-spacing(2) + $govuk-service-navigation-active-link-border-width) * -1);\n padding-left: govuk-spacing(2);\n border-left-width: $govuk-service-navigation-active-link-border-width;\n }\n\n @include govuk-media-query($from: tablet) {\n @include _govuk-rebrand(\n \"padding-bottom\",\n $from: govuk-spacing(4) - $govuk-service-navigation-active-link-border-width,\n $to: govuk-spacing(3) - $govuk-service-navigation-active-link-border-width\n );\n border-bottom-width: $govuk-service-navigation-active-link-border-width;\n }\n }\n\n .govuk-service-navigation__link {\n @include govuk-link-common;\n @include govuk-link-style-no-underline;\n @include govuk-link-style-no-visited-state;\n\n &:not(:hover):not(:focus) {\n // We set the colour here as we don't want to override the hover or\n // focus colours\n color: $govuk-service-navigation-link-colour;\n }\n }\n\n //\n // Service name specific code\n //\n\n .govuk-service-navigation__service-name {\n @include govuk-font($size: 19, $weight: bold);\n }\n\n // Annoyingly this requires a compound selector in order to overcome the\n // specificity of the other link colour override we're doing\n .govuk-service-navigation__service-name .govuk-service-navigation__link {\n @include govuk-link-style-text;\n }\n\n // Allow navigation section to always take up maximum available space,\n // rather than sizing to fit the content. This makes it easier to right align\n // nav items and use slots.\n .govuk-service-navigation__wrapper {\n flex-grow: 1;\n }\n\n //\n // Navigation list specific code\n //\n\n .govuk-service-navigation__toggle {\n @include govuk-font($size: 19, $weight: bold);\n display: inline-flex;\n margin: govuk-spacing(2) 0;\n padding: 0;\n border: 0;\n color: $govuk-service-navigation-link-colour;\n background: none;\n word-break: break-all;\n cursor: pointer;\n align-items: center;\n\n &:focus {\n @include govuk-focused-text;\n }\n\n &::after {\n @include govuk-shape-arrow($direction: down, $base: 10px, $display: inline-block);\n content: \"\";\n margin-left: govuk-spacing(1);\n }\n\n &[aria-expanded=\"true\"]::after {\n @include govuk-shape-arrow($direction: up, $base: 10px, $display: inline-block);\n }\n\n // Ensure the button stays hidden if the hidden attribute is present\n &[hidden] {\n display: none;\n }\n\n // If we have both a service name and navigation toggle, remove the\n // margin-top so that there isn't a bunch of space between them\n .govuk-service-navigation__service-name + .govuk-service-navigation__wrapper & {\n margin-top: 0;\n }\n }\n\n .govuk-service-navigation__list {\n @include govuk-font($size: 19);\n margin: 0;\n margin-bottom: govuk-spacing(3);\n padding: 0;\n list-style: none;\n\n // Make the navigation list a flexbox. Doing so resolves a couple of\n // accessibility problems caused by the list items being inline-blocks:\n // - Removes the extra whitespace from between each list item that screen\n // readers would pointlessly announce.\n // - Fixes an NVDA issue in Firefox and Chrome <= 124 where it would read\n // all of the links as a run-on sentence.\n @include govuk-media-query($from: tablet) {\n display: flex;\n flex-wrap: wrap;\n margin-bottom: 0;\n\n // However... IE11 totally trips over flexbox and doesn't wrap anything,\n // making all of the items into a single, horizontally scrolling row,\n // which is no good. This CSS hack removes the flexbox definition for\n // IE 9–11, reverting it to the flawed, but OK, non-flexbox version.\n //\n // CSS hack from http://browserhacks.com/#hack-a60b03e301a67f76a5a22221c739dc64\n @media screen and (min-width: 0\\0) {\n display: block;\n }\n }\n }\n\n // This is a <strong> element that is used as a fallback mechanism for\n // visually indicating the current page in scenarios where CSS isn't\n // available. We don't actually want it to be bold normally, so set it to\n // inherit the parent font-weight.\n .govuk-service-navigation__active-fallback {\n font-weight: inherit;\n }\n\n // Inverted colour scheme style intended for product pages\n .govuk-service-navigation--inverse {\n @include _govuk-rebrand {\n // Remove bottom border to add width-container ones\n border-bottom: none;\n\n // Set colour here so non-link text (service name, slot content) can\n // use it too.\n color: govuk-colour(\"white\");\n\n background-color: $govuk-brand-colour;\n\n .govuk-width-container {\n border-width: 1px 0;\n border-style: solid;\n border-color: $_govuk-rebrand-border-colour-on-blue-tint-95;\n }\n\n // Subtract 1px of space to account for the extra border-top\n .govuk-service-navigation__container {\n margin-top: -1px;\n }\n\n // Override the 'active' border colour\n .govuk-service-navigation__item,\n .govuk-service-navigation__service-name {\n border-color: govuk-colour(\"white\");\n }\n\n // Override link styles\n .govuk-service-navigation__link {\n @include govuk-link-style-inverse;\n }\n\n // Override mobile menu toggle colour when not focused\n .govuk-service-navigation__toggle:not(:focus) {\n color: currentcolor;\n }\n }\n }\n}\n"]}