govuk_publishing_components 44.1.0 → 44.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/lib/govuk_publishing_components/version.rb +1 -1
  3. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +336 -225
  4. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
  5. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +334 -226
  6. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -1
  7. data/node_modules/govuk-frontend/dist/govuk/all.mjs +3 -0
  8. data/node_modules/govuk-frontend/dist/govuk/all.mjs.map +1 -1
  9. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-crest.svg +1 -0
  10. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
  11. data/node_modules/govuk-frontend/dist/govuk/common/index.mjs +21 -1
  12. data/node_modules/govuk-frontend/dist/govuk/common/index.mjs.map +1 -1
  13. data/node_modules/govuk-frontend/dist/govuk/components/_index.scss +1 -0
  14. data/node_modules/govuk-frontend/dist/govuk/components/_index.scss.map +1 -1
  15. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js +92 -26
  16. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js.map +1 -1
  17. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs +92 -26
  18. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -1
  19. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs +12 -21
  20. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs.map +1 -1
  21. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js +86 -20
  22. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js.map +1 -1
  23. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs +86 -20
  24. data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs.map +1 -1
  25. data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs +6 -16
  26. data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs.map +1 -1
  27. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +89 -23
  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 +89 -23
  30. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs.map +1 -1
  31. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs +10 -19
  32. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs.map +1 -1
  33. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js +113 -47
  34. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js.map +1 -1
  35. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs +113 -47
  36. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs.map +1 -1
  37. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs +7 -16
  38. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs.map +1 -1
  39. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +7 -2
  40. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss.map +1 -1
  41. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js +86 -20
  42. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js.map +1 -1
  43. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs +86 -20
  44. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs.map +1 -1
  45. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs +6 -16
  46. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs.map +1 -1
  47. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js +87 -21
  48. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js.map +1 -1
  49. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs +87 -21
  50. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs.map +1 -1
  51. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs +7 -16
  52. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs.map +1 -1
  53. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +8 -10
  54. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss.map +1 -1
  55. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +8 -0
  56. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss.map +1 -1
  57. data/node_modules/govuk-frontend/dist/govuk/components/header/fixtures.json +12 -0
  58. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +87 -21
  59. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js.map +1 -1
  60. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +87 -21
  61. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs.map +1 -1
  62. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs +7 -16
  63. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs.map +1 -1
  64. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-full-width-border.html +24 -0
  65. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js +86 -20
  66. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js.map +1 -1
  67. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs +86 -20
  68. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs.map +1 -1
  69. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs +6 -16
  70. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs.map +1 -1
  71. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js +89 -23
  72. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js.map +1 -1
  73. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs +89 -23
  74. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs.map +1 -1
  75. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs +9 -18
  76. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs.map +1 -1
  77. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js +113 -47
  78. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js.map +1 -1
  79. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs +113 -47
  80. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs.map +1 -1
  81. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.mjs +7 -16
  82. data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.mjs.map +1 -1
  83. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/README.md +15 -0
  84. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +168 -0
  85. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss.map +1 -0
  86. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss +4 -0
  87. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss.map +1 -0
  88. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json +464 -0
  89. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/macro-options.json +138 -0
  90. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/macro.njk +3 -0
  91. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js +249 -0
  92. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js.map +1 -0
  93. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs +241 -0
  94. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs.map +1 -0
  95. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs +85 -0
  96. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs.map +1 -0
  97. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-default.html +57 -0
  98. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-html-navigation-items.html +49 -0
  99. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-large-navigation.html +153 -0
  100. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-long-service-name.html +20 -0
  101. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-navigation-with-a-current-item.html +58 -0
  102. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-navigation-with-an-active-item.html +58 -0
  103. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-non-link-navigation-items.html +49 -0
  104. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-link.html +20 -0
  105. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-name-and-navigation.html +63 -0
  106. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-name.html +18 -0
  107. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template.njk +102 -0
  108. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js +93 -26
  109. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js.map +1 -1
  110. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs +93 -26
  111. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs.map +1 -1
  112. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs +13 -21
  113. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs.map +1 -1
  114. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js +93 -27
  115. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js.map +1 -1
  116. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs +93 -27
  117. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs.map +1 -1
  118. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs +13 -22
  119. data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs.map +1 -1
  120. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +4 -3
  121. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss.map +1 -1
  122. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +1 -1
  123. data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs +16 -3
  124. data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs.map +1 -1
  125. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend-component.mjs +49 -5
  126. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend-component.mjs.map +1 -1
  127. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
  128. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
  129. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
  130. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js.map +1 -1
  131. data/node_modules/govuk-frontend/dist/govuk/init.mjs +72 -10
  132. data/node_modules/govuk-frontend/dist/govuk/init.mjs.map +1 -1
  133. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +3 -0
  134. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss.map +1 -1
  135. data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +5 -1
  136. data/node_modules/govuk-frontend/package.json +8 -8
  137. metadata +29 -4
  138. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-crest-2x.png +0 -0
  139. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-crest.png +0 -0
@@ -0,0 +1,464 @@
1
+ {
2
+ "component": "service-navigation",
3
+ "fixtures": [
4
+ {
5
+ "name": "default",
6
+ "options": {
7
+ "navigation": [
8
+ {
9
+ "href": "#/1",
10
+ "text": "Navigation item 1"
11
+ },
12
+ {
13
+ "href": "#/2",
14
+ "text": "Navigation item 2"
15
+ },
16
+ {
17
+ "href": "#/3",
18
+ "text": "Navigation item 3"
19
+ },
20
+ {
21
+ "href": "#/4",
22
+ "text": "Navigation item 4"
23
+ }
24
+ ]
25
+ },
26
+ "hidden": false,
27
+ "description": "",
28
+ "previewLayoutModifiers": [],
29
+ "screenshot": false,
30
+ "html": "<div class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n\n \n <nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\">\n <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" hidden>\n Menu\n </button>\n\n <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n \n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/1\">\n \nNavigation item 1\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/2\">\n \nNavigation item 2\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/3\">\n \nNavigation item 3\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/4\">\n \nNavigation item 4\n </a>\n </li>\n\n </ul>\n </nav>\n </div>\n\n </div>\n\n </div>"
31
+ },
32
+ {
33
+ "name": "with navigation with a current item",
34
+ "options": {
35
+ "navigation": [
36
+ {
37
+ "href": "#/1",
38
+ "text": "Navigation item 1"
39
+ },
40
+ {
41
+ "href": "#/2",
42
+ "text": "Navigation item 2",
43
+ "current": true
44
+ },
45
+ {
46
+ "href": "#/3",
47
+ "text": "Navigation item 3"
48
+ },
49
+ {
50
+ "href": "#/4",
51
+ "text": "Navigation item 4"
52
+ }
53
+ ]
54
+ },
55
+ "hidden": false,
56
+ "description": "The current item indicates that the user is present on that exact page. It looks the same as an active item, but marks this item as the one the user is currently viewing in ARIA.",
57
+ "previewLayoutModifiers": [],
58
+ "screenshot": false,
59
+ "html": "<div class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n\n \n <nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\">\n <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" hidden>\n Menu\n </button>\n\n <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n \n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/1\">\n \nNavigation item 1\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item govuk-service-navigation__item--active\">\n <a class=\"govuk-service-navigation__link\" href=\"#/2\" aria-current=\"page\">\n \n <strong class=\"govuk-service-navigation__active-fallback\">Navigation item 2</strong>\n\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/3\">\n \nNavigation item 3\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/4\">\n \nNavigation item 4\n </a>\n </li>\n\n </ul>\n </nav>\n </div>\n\n </div>\n\n </div>"
60
+ },
61
+ {
62
+ "name": "with navigation with an active item",
63
+ "options": {
64
+ "navigation": [
65
+ {
66
+ "href": "#/1",
67
+ "text": "Navigation item 1"
68
+ },
69
+ {
70
+ "href": "#/2",
71
+ "text": "Navigation item 2",
72
+ "active": true
73
+ },
74
+ {
75
+ "href": "#/3",
76
+ "text": "Navigation item 3"
77
+ },
78
+ {
79
+ "href": "#/4",
80
+ "text": "Navigation item 4"
81
+ }
82
+ ]
83
+ },
84
+ "hidden": false,
85
+ "description": "The active item indicates that the user is within that section, but not on the exact page being linked. It looks the same as a current item, but marks this item as an ancestor to the one the user is viewing in ARIA (e.g. a parent section).",
86
+ "previewLayoutModifiers": [],
87
+ "screenshot": false,
88
+ "html": "<div class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n\n \n <nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\">\n <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" hidden>\n Menu\n </button>\n\n <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n \n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/1\">\n \nNavigation item 1\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item govuk-service-navigation__item--active\">\n <a class=\"govuk-service-navigation__link\" href=\"#/2\" aria-current=\"true\">\n \n <strong class=\"govuk-service-navigation__active-fallback\">Navigation item 2</strong>\n\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/3\">\n \nNavigation item 3\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/4\">\n \nNavigation item 4\n </a>\n </li>\n\n </ul>\n </nav>\n </div>\n\n </div>\n\n </div>"
89
+ },
90
+ {
91
+ "name": "with large navigation",
92
+ "options": {
93
+ "navigation": [
94
+ {
95
+ "href": "#/browse/benefits",
96
+ "text": "Benefits"
97
+ },
98
+ {
99
+ "href": "#/browse/births-deaths-marriages",
100
+ "text": "Births, deaths, marriages and care"
101
+ },
102
+ {
103
+ "href": "#/browse/business",
104
+ "text": "Business and self-employed"
105
+ },
106
+ {
107
+ "href": "#/browse/childcare-parenting",
108
+ "text": "Childcare and parenting"
109
+ },
110
+ {
111
+ "href": "#/browse/citizenship",
112
+ "text": "Citizenship and living in the UK"
113
+ },
114
+ {
115
+ "href": "#/browse/justice",
116
+ "text": "Crime, justice and the law"
117
+ },
118
+ {
119
+ "href": "#/browse/disabilities",
120
+ "text": "Disabled people"
121
+ },
122
+ {
123
+ "href": "#/browse/driving",
124
+ "text": "Driving and transport"
125
+ },
126
+ {
127
+ "href": "#/browse/education",
128
+ "text": "Education and learning"
129
+ },
130
+ {
131
+ "href": "#/browse/employing-people",
132
+ "text": "Employing people"
133
+ },
134
+ {
135
+ "href": "#/browse/environment-countryside",
136
+ "text": "Environment and countryside"
137
+ },
138
+ {
139
+ "href": "#/browse/housing-local-services",
140
+ "text": "Housing and local services"
141
+ },
142
+ {
143
+ "href": "#/browse/tax",
144
+ "text": "Money and tax"
145
+ },
146
+ {
147
+ "href": "#/browse/abroad",
148
+ "text": "Passports, travel and living abroad"
149
+ },
150
+ {
151
+ "href": "#/browse/visas-immigration",
152
+ "text": "Visas and immigration"
153
+ },
154
+ {
155
+ "href": "#/browse/working",
156
+ "text": "Working, jobs and pensions"
157
+ }
158
+ ]
159
+ },
160
+ "hidden": false,
161
+ "description": "",
162
+ "previewLayoutModifiers": [],
163
+ "screenshot": false,
164
+ "html": "<div class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n\n \n <nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\">\n <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" hidden>\n Menu\n </button>\n\n <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n \n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/benefits\">\n \nBenefits\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/births-deaths-marriages\">\n \nBirths, deaths, marriages and care\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/business\">\n \nBusiness and self-employed\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/childcare-parenting\">\n \nChildcare and parenting\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/citizenship\">\n \nCitizenship and living in the UK\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/justice\">\n \nCrime, justice and the law\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/disabilities\">\n \nDisabled people\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/driving\">\n \nDriving and transport\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/education\">\n \nEducation and learning\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/employing-people\">\n \nEmploying people\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/environment-countryside\">\n \nEnvironment and countryside\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/housing-local-services\">\n \nHousing and local services\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/tax\">\n \nMoney and tax\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/abroad\">\n \nPassports, travel and living abroad\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/visas-immigration\">\n \nVisas and immigration\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/browse/working\">\n \nWorking, jobs and pensions\n </a>\n </li>\n\n </ul>\n </nav>\n </div>\n\n </div>\n\n </div>"
165
+ },
166
+ {
167
+ "name": "with HTML navigation items",
168
+ "options": {
169
+ "navigation": [
170
+ {
171
+ "href": "#/1",
172
+ "html": "<em>Navigation item 1</em>"
173
+ },
174
+ {
175
+ "href": "#/2",
176
+ "html": "<em>Navigation item 2</em>"
177
+ },
178
+ {
179
+ "href": "#/3",
180
+ "html": "<em>Navigation item 3</em>"
181
+ }
182
+ ]
183
+ },
184
+ "hidden": false,
185
+ "description": "",
186
+ "previewLayoutModifiers": [],
187
+ "screenshot": false,
188
+ "html": "<div class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n\n \n <nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\">\n <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" hidden>\n Menu\n </button>\n\n <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n \n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/1\">\n \n<em>Navigation item 1</em>\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/2\">\n \n<em>Navigation item 2</em>\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/3\">\n \n<em>Navigation item 3</em>\n </a>\n </li>\n\n </ul>\n </nav>\n </div>\n\n </div>\n\n </div>"
189
+ },
190
+ {
191
+ "name": "with non-link navigation items",
192
+ "options": {
193
+ "navigation": [
194
+ {
195
+ "text": "Navigation item 1"
196
+ },
197
+ {
198
+ "html": "<em>Navigation item 2</em>"
199
+ },
200
+ {
201
+ "text": "Navigation item 3"
202
+ }
203
+ ]
204
+ },
205
+ "hidden": false,
206
+ "description": "",
207
+ "previewLayoutModifiers": [],
208
+ "screenshot": false,
209
+ "html": "<div class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n\n \n <nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\">\n <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" hidden>\n Menu\n </button>\n\n <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n \n \n <li class=\"govuk-service-navigation__item\">\n <span class=\"govuk-service-navigation__text\">\n \nNavigation item 1\n </span>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <span class=\"govuk-service-navigation__text\">\n \n<em>Navigation item 2</em>\n </span>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <span class=\"govuk-service-navigation__text\">\n \nNavigation item 3\n </span>\n </li>\n\n </ul>\n </nav>\n </div>\n\n </div>\n\n </div>"
210
+ },
211
+ {
212
+ "name": "with service name",
213
+ "options": {
214
+ "serviceName": "Service name"
215
+ },
216
+ "hidden": false,
217
+ "description": "",
218
+ "previewLayoutModifiers": [],
219
+ "screenshot": false,
220
+ "html": "<section aria-label=\"Service information\" class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n <span class=\"govuk-service-navigation__service-name\">\n <span class=\"govuk-service-navigation__text\">Service name</span>\n </span>\n\n \n </div>\n\n </div>\n\n </section>"
221
+ },
222
+ {
223
+ "name": "with service link",
224
+ "options": {
225
+ "serviceName": "Service name",
226
+ "serviceUrl": "#/"
227
+ },
228
+ "hidden": false,
229
+ "description": "",
230
+ "previewLayoutModifiers": [],
231
+ "screenshot": false,
232
+ "html": "<section aria-label=\"Service information\" class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n <span class=\"govuk-service-navigation__service-name\">\n <a href=\"#/\" class=\"govuk-service-navigation__link\">\n Service name\n </a>\n </span>\n\n \n </div>\n\n </div>\n\n </section>"
233
+ },
234
+ {
235
+ "name": "with long service name",
236
+ "options": {
237
+ "serviceName": "Apply to receive a rare holofoil Charizard Pokémon card from the King",
238
+ "serviceUrl": "#/"
239
+ },
240
+ "hidden": false,
241
+ "description": "",
242
+ "previewLayoutModifiers": [],
243
+ "screenshot": false,
244
+ "html": "<section aria-label=\"Service information\" class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n <span class=\"govuk-service-navigation__service-name\">\n <a href=\"#/\" class=\"govuk-service-navigation__link\">\n Apply to receive a rare holofoil Charizard Pokémon card from the King\n </a>\n </span>\n\n \n </div>\n\n </div>\n\n </section>"
245
+ },
246
+ {
247
+ "name": "with service name and navigation",
248
+ "options": {
249
+ "serviceName": "Apply for a juggling license",
250
+ "serviceUrl": "#/",
251
+ "navigation": [
252
+ {
253
+ "href": "#/1",
254
+ "text": "Navigation item 1"
255
+ },
256
+ {
257
+ "href": "#/2",
258
+ "text": "Navigation item 2",
259
+ "active": true
260
+ },
261
+ {
262
+ "href": "#/3",
263
+ "text": "Navigation item 3"
264
+ },
265
+ {
266
+ "href": "#/4",
267
+ "text": "Navigation item 4"
268
+ }
269
+ ]
270
+ },
271
+ "hidden": false,
272
+ "description": "",
273
+ "previewLayoutModifiers": [],
274
+ "screenshot": false,
275
+ "html": "<section aria-label=\"Service information\" class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n <span class=\"govuk-service-navigation__service-name\">\n <a href=\"#/\" class=\"govuk-service-navigation__link\">\n Apply for a juggling license\n </a>\n </span>\n\n \n <nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\">\n <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" hidden>\n Menu\n </button>\n\n <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n \n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/1\">\n \nNavigation item 1\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item govuk-service-navigation__item--active\">\n <a class=\"govuk-service-navigation__link\" href=\"#/2\" aria-current=\"true\">\n \n <strong class=\"govuk-service-navigation__active-fallback\">Navigation item 2</strong>\n\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/3\">\n \nNavigation item 3\n </a>\n </li>\n\n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/4\">\n \nNavigation item 4\n </a>\n </li>\n\n </ul>\n </nav>\n </div>\n\n </div>\n\n </section>"
276
+ },
277
+ {
278
+ "name": "with no options set",
279
+ "options": {},
280
+ "hidden": true,
281
+ "description": "If no serviceName or navigation is set, don't render anything.",
282
+ "previewLayoutModifiers": [],
283
+ "screenshot": false,
284
+ "html": "<div class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n\n \n </div>\n\n </div>\n\n </div>"
285
+ },
286
+ {
287
+ "name": "attributes",
288
+ "options": {
289
+ "serviceName": "Service name",
290
+ "attributes": {
291
+ "data-foo": "bar",
292
+ "data-pika": "chu"
293
+ }
294
+ },
295
+ "hidden": true,
296
+ "description": "",
297
+ "previewLayoutModifiers": [],
298
+ "screenshot": false,
299
+ "html": "<section aria-label=\"Service information\" class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\" data-foo=\"bar\" data-pika=\"chu\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n <span class=\"govuk-service-navigation__service-name\">\n <span class=\"govuk-service-navigation__text\">Service name</span>\n </span>\n\n \n </div>\n\n </div>\n\n </section>"
300
+ },
301
+ {
302
+ "name": "classes",
303
+ "options": {
304
+ "serviceName": "Service name",
305
+ "classes": "app-my-curious-custom-class"
306
+ },
307
+ "hidden": true,
308
+ "description": "",
309
+ "previewLayoutModifiers": [],
310
+ "screenshot": false,
311
+ "html": "<section aria-label=\"Service information\" class=\"govuk-service-navigation app-my-curious-custom-class\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n <span class=\"govuk-service-navigation__service-name\">\n <span class=\"govuk-service-navigation__text\">Service name</span>\n </span>\n\n \n </div>\n\n </div>\n\n </section>"
312
+ },
313
+ {
314
+ "name": "with custom aria-label",
315
+ "options": {
316
+ "serviceName": "Service name",
317
+ "ariaLabel": "Service name and nav"
318
+ },
319
+ "hidden": true,
320
+ "description": "",
321
+ "previewLayoutModifiers": [],
322
+ "screenshot": false,
323
+ "html": "<section aria-label=\"Service name and nav\" class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n <span class=\"govuk-service-navigation__service-name\">\n <span class=\"govuk-service-navigation__text\">Service name</span>\n </span>\n\n \n </div>\n\n </div>\n\n </section>"
324
+ },
325
+ {
326
+ "name": "with custom navigation toggle text",
327
+ "options": {
328
+ "menuButtonText": "Enter the NavZone",
329
+ "navigation": [
330
+ {
331
+ "href": "#/1",
332
+ "text": "Navigation item 1"
333
+ }
334
+ ]
335
+ },
336
+ "hidden": true,
337
+ "description": "",
338
+ "previewLayoutModifiers": [],
339
+ "screenshot": false,
340
+ "html": "<div class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n\n \n <nav aria-label=\"Enter the NavZone\" class=\"govuk-service-navigation__wrapper\">\n <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" hidden>\n Enter the NavZone\n </button>\n\n <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n \n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/1\">\n \nNavigation item 1\n </a>\n </li>\n\n </ul>\n </nav>\n </div>\n\n </div>\n\n </div>"
341
+ },
342
+ {
343
+ "name": "with custom navigation toggle label",
344
+ "options": {
345
+ "menuButtonLabel": "Enter the NavZone",
346
+ "navigation": [
347
+ {
348
+ "href": "#/1",
349
+ "text": "Navigation item 1"
350
+ }
351
+ ]
352
+ },
353
+ "hidden": true,
354
+ "description": "",
355
+ "previewLayoutModifiers": [],
356
+ "screenshot": false,
357
+ "html": "<div class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n\n \n <nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\">\n <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" aria-label=\"Enter the NavZone\" hidden>\n Menu\n </button>\n\n <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n \n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/1\">\n \nNavigation item 1\n </a>\n </li>\n\n </ul>\n </nav>\n </div>\n\n </div>\n\n </div>"
358
+ },
359
+ {
360
+ "name": "with identical navigation toggle text and label",
361
+ "options": {
362
+ "menuButtonText": "Enter the NavZone",
363
+ "menuButtonLabel": "Enter the NavZone",
364
+ "navigation": [
365
+ {
366
+ "href": "#/1",
367
+ "text": "Navigation item 1"
368
+ }
369
+ ]
370
+ },
371
+ "hidden": true,
372
+ "description": "",
373
+ "previewLayoutModifiers": [],
374
+ "screenshot": false,
375
+ "html": "<div class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n\n \n <nav aria-label=\"Enter the NavZone\" class=\"govuk-service-navigation__wrapper\">\n <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" hidden>\n Enter the NavZone\n </button>\n\n <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n \n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/1\">\n \nNavigation item 1\n </a>\n </li>\n\n </ul>\n </nav>\n </div>\n\n </div>\n\n </div>"
376
+ },
377
+ {
378
+ "name": "with custom navigation label",
379
+ "options": {
380
+ "navigationLabel": "Main navigation",
381
+ "navigation": [
382
+ {
383
+ "href": "#/1",
384
+ "text": "Navigation item 1"
385
+ }
386
+ ]
387
+ },
388
+ "hidden": true,
389
+ "description": "",
390
+ "previewLayoutModifiers": [],
391
+ "screenshot": false,
392
+ "html": "<div class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n\n \n <nav aria-label=\"Main navigation\" class=\"govuk-service-navigation__wrapper\">\n <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" hidden>\n Menu\n </button>\n\n <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n \n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/1\">\n \nNavigation item 1\n </a>\n </li>\n\n </ul>\n </nav>\n </div>\n\n </div>\n\n </div>"
393
+ },
394
+ {
395
+ "name": "with custom navigation toggle text and navigation label",
396
+ "options": {
397
+ "menuButtonText": "Enter the NavZone",
398
+ "navigationLabel": "The NavZone",
399
+ "navigation": [
400
+ {
401
+ "href": "#/1",
402
+ "text": "Navigation item 1"
403
+ }
404
+ ]
405
+ },
406
+ "hidden": true,
407
+ "description": "",
408
+ "previewLayoutModifiers": [],
409
+ "screenshot": false,
410
+ "html": "<div class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n\n \n <nav aria-label=\"The NavZone\" class=\"govuk-service-navigation__wrapper\">\n <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" hidden>\n Enter the NavZone\n </button>\n\n <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n \n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/1\">\n \nNavigation item 1\n </a>\n </li>\n\n </ul>\n </nav>\n </div>\n\n </div>\n\n </div>"
411
+ },
412
+ {
413
+ "name": "with custom navigation classes",
414
+ "options": {
415
+ "navigationClasses": "app-my-neat-navigation-class",
416
+ "navigation": [
417
+ {
418
+ "href": "#/1",
419
+ "text": "Navigation item 1"
420
+ }
421
+ ]
422
+ },
423
+ "hidden": true,
424
+ "description": "",
425
+ "previewLayoutModifiers": [],
426
+ "screenshot": false,
427
+ "html": "<div class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n\n \n <nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper app-my-neat-navigation-class\">\n <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" hidden>\n Menu\n </button>\n\n <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n \n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/1\">\n \nNavigation item 1\n </a>\n </li>\n\n </ul>\n </nav>\n </div>\n\n </div>\n\n </div>"
428
+ },
429
+ {
430
+ "name": "with custom navigation ID",
431
+ "options": {
432
+ "navigationId": "main-nav",
433
+ "navigation": [
434
+ {
435
+ "href": "#/1",
436
+ "text": "Navigation item 1"
437
+ }
438
+ ]
439
+ },
440
+ "hidden": true,
441
+ "description": "",
442
+ "previewLayoutModifiers": [],
443
+ "screenshot": false,
444
+ "html": "<div class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div class=\"govuk-service-navigation__container\">\n \n\n \n <nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\">\n <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"main-nav\" hidden>\n Menu\n </button>\n\n <ul class=\"govuk-service-navigation__list\" id=\"main-nav\" >\n\n \n \n <li class=\"govuk-service-navigation__item\">\n <a class=\"govuk-service-navigation__link\" href=\"#/1\">\n \nNavigation item 1\n </a>\n </li>\n\n </ul>\n </nav>\n </div>\n\n </div>\n\n </div>"
445
+ },
446
+ {
447
+ "name": "with slotted content",
448
+ "options": {
449
+ "slots": {
450
+ "start": "<div>[start]</div>",
451
+ "end": "<div>[end]</div>",
452
+ "navigationStart": "<li>[navigation start]</li>",
453
+ "navigationEnd": "<li>[navigation end]</li>"
454
+ }
455
+ },
456
+ "hidden": true,
457
+ "description": "",
458
+ "previewLayoutModifiers": [],
459
+ "screenshot": false,
460
+ "html": "<section aria-label=\"Service information\" class=\"govuk-service-navigation\"\ndata-module=\"govuk-service-navigation\"\n>\n <div class=\"govuk-width-container\">\n\n <div>[start]</div><div class=\"govuk-service-navigation__container\">\n \n\n \n <nav aria-label=\"Menu\" class=\"govuk-service-navigation__wrapper\">\n <button type=\"button\" class=\"govuk-service-navigation__toggle govuk-js-service-navigation-toggle\" aria-controls=\"navigation\" hidden>\n Menu\n </button>\n\n <ul class=\"govuk-service-navigation__list\" id=\"navigation\" >\n\n <li>[navigation start]</li>\n <li>[navigation end]</li></ul>\n </nav>\n </div>\n\n <div>[end]</div></div>\n\n </section>"
461
+ }
462
+ ],
463
+ "previewLayout": "full-width"
464
+ }
@@ -0,0 +1,138 @@
1
+ [
2
+ {
3
+ "name": "classes",
4
+ "type": "string",
5
+ "required": false,
6
+ "description": "Classes to add to the service navigation container."
7
+ },
8
+ {
9
+ "name": "attributes",
10
+ "type": "object",
11
+ "required": false,
12
+ "description": "HTML attributes (for example, data attributes) to add to the service navigation container."
13
+ },
14
+ {
15
+ "name": "ariaLabel",
16
+ "type": "string",
17
+ "required": false,
18
+ "description": "The text for the `aria-label` which labels the service navigation container when a service name is included. Defaults to `\"Service information\"`."
19
+ },
20
+ {
21
+ "name": "menuButtonText",
22
+ "type": "string",
23
+ "required": false,
24
+ "description": "The text of the mobile navigation menu toggle."
25
+ },
26
+ {
27
+ "name": "menuButtonLabel",
28
+ "type": "string",
29
+ "required": false,
30
+ "description": "The screen reader label for the mobile navigation menu toggle. Defaults to the same value as `menuButtonText` if not specified."
31
+ },
32
+ {
33
+ "name": "navigationLabel",
34
+ "type": "string",
35
+ "required": false,
36
+ "description": "The screen reader label for the mobile navigation menu. Defaults to the same value as `menuButtonText` if not specified."
37
+ },
38
+ {
39
+ "name": "navigationId",
40
+ "type": "string",
41
+ "required": false,
42
+ "description": "The ID used to associate the mobile navigation toggle with the navigation menu. Defaults to `navigation`."
43
+ },
44
+ {
45
+ "name": "navigationClasses",
46
+ "type": "string",
47
+ "required": false,
48
+ "description": "Classes to add to the navigation menu container."
49
+ },
50
+ {
51
+ "name": "serviceName",
52
+ "type": "string",
53
+ "required": false,
54
+ "description": "The name of your service."
55
+ },
56
+ {
57
+ "name": "serviceUrl",
58
+ "type": "string",
59
+ "required": false,
60
+ "description": "The homepage of your service."
61
+ },
62
+ {
63
+ "name": "navigation",
64
+ "type": "array",
65
+ "required": true,
66
+ "description": "Used to add navigation to the service header.",
67
+ "params": [
68
+ {
69
+ "name": "current",
70
+ "type": "boolean",
71
+ "required": false,
72
+ "description": "If `true`, indicates that the user is currently on this page. This takes precedence over `active`."
73
+ },
74
+ {
75
+ "name": "active",
76
+ "type": "boolean",
77
+ "required": false,
78
+ "description": "If `true`, indicates that the user is within this group of pages in the navigation hierarchy."
79
+ },
80
+ {
81
+ "name": "html",
82
+ "type": "string",
83
+ "required": true,
84
+ "description": "HTML for the navigation item. If `html` is provided, the `text` option will be ignored."
85
+ },
86
+ {
87
+ "name": "text",
88
+ "type": "string",
89
+ "required": true,
90
+ "description": "Text for the navigation item. If `html` is provided, the `text` option will be ignored."
91
+ },
92
+ {
93
+ "name": "href",
94
+ "type": "string",
95
+ "required": false,
96
+ "description": "URL of the navigation item anchor."
97
+ },
98
+ {
99
+ "name": "attributes",
100
+ "type": "object",
101
+ "required": false,
102
+ "description": "HTML attributes (for example data attributes) to add to the navigation item anchor."
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ "name": "slots",
108
+ "type": "object",
109
+ "required": false,
110
+ "description": "Specified points for injecting custom HTML into the service header.",
111
+ "params": [
112
+ {
113
+ "name": "start",
114
+ "type": "string",
115
+ "required": false,
116
+ "description": "HTML injected at the start of the service header container."
117
+ },
118
+ {
119
+ "name": "end",
120
+ "type": "string",
121
+ "required": false,
122
+ "description": "HTML injected at the end of the service header container."
123
+ },
124
+ {
125
+ "name": "navigationStart",
126
+ "type": "string",
127
+ "required": false,
128
+ "description": "HTML injected before the first list item in the navigation list. Requires `navigation` to be set."
129
+ },
130
+ {
131
+ "name": "navigationEnd",
132
+ "type": "string",
133
+ "required": false,
134
+ "description": "HTML injected after the last list item in the navigation list. Requires `navigation` to be set."
135
+ }
136
+ ]
137
+ }
138
+ ]
@@ -0,0 +1,3 @@
1
+ {% macro govukServiceNavigation(params) %}
2
+ {%- include "./template.njk" -%}
3
+ {% endmacro %}