nhsuk-frontend 5.0.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/CHANGELOG.md +366 -3
  2. package/README.md +2 -5
  3. package/dist/nhsuk-6.0.0.min.css +1 -0
  4. package/dist/nhsuk-6.0.0.min.js +1 -0
  5. package/dist/nhsuk.css +4930 -3611
  6. package/dist/nhsuk.js +1 -1
  7. package/dist/nhsuk.min.js +1 -1
  8. package/package.json +13 -9
  9. package/packages/assets/icons/icon-arrow-left.svg +1 -1
  10. package/packages/assets/icons/icon-arrow-right-circle.svg +1 -1
  11. package/packages/assets/icons/icon-arrow-right.svg +1 -1
  12. package/packages/assets/icons/icon-chevron-left.svg +1 -1
  13. package/packages/assets/icons/icon-chevron-right.svg +1 -1
  14. package/packages/assets/icons/icon-close.svg +1 -1
  15. package/packages/assets/icons/icon-cross.svg +1 -1
  16. package/packages/assets/icons/icon-minus.svg +1 -1
  17. package/packages/assets/icons/icon-plus.svg +1 -1
  18. package/packages/assets/icons/icon-search.svg +1 -1
  19. package/packages/assets/icons/icon-tick.svg +1 -1
  20. package/packages/common.js +7 -2
  21. package/packages/components/action-link/README.md +1 -1
  22. package/packages/components/action-link/template.njk +1 -1
  23. package/packages/components/back-link/README.md +1 -1
  24. package/packages/components/back-link/template.njk +1 -1
  25. package/packages/components/breadcrumb/_breadcrumb.scss +20 -15
  26. package/packages/components/button/_button.scss +4 -4
  27. package/packages/components/card/README.md +144 -0
  28. package/packages/components/card/card.scss +130 -2
  29. package/packages/components/card/template.njk +38 -15
  30. package/packages/components/checkboxes/README.md +166 -0
  31. package/packages/components/checkboxes/_checkboxes.scss +3 -3
  32. package/packages/components/checkboxes/checkboxes.js +74 -1
  33. package/packages/components/checkboxes/template.njk +2 -0
  34. package/packages/components/contents-list/_contents-list.scss +2 -2
  35. package/packages/components/details/_details.scss +21 -17
  36. package/packages/components/details/details.js +10 -9
  37. package/packages/components/do-dont-list/README.md +18 -18
  38. package/packages/components/do-dont-list/template.njk +5 -5
  39. package/packages/components/error-summary/README.md +230 -20
  40. package/packages/components/error-summary/error-summary.js +119 -0
  41. package/packages/components/footer/README.md +15 -15
  42. package/packages/components/header/README.md +68 -116
  43. package/packages/components/header/_header.scss +157 -220
  44. package/packages/components/header/menuToggle.test.js +1 -1
  45. package/packages/components/header/template.njk +23 -22
  46. package/packages/components/hint/_hint.scss +0 -1
  47. package/packages/components/images/_images.scss +3 -3
  48. package/packages/components/input/_input.scss +1 -1
  49. package/packages/components/pagination/README.md +4 -4
  50. package/packages/components/pagination/template.njk +2 -2
  51. package/packages/components/radios/_radios.scss +1 -1
  52. package/packages/components/radios/radios.js +20 -12
  53. package/packages/components/summary-list/_summary-list.scss +0 -1
  54. package/packages/components/tables/_tables.scss +5 -5
  55. package/packages/core/README.md +8 -0
  56. package/packages/core/elements/_page.scss +7 -3
  57. package/packages/core/generic/_font-face.scss +31 -23
  58. package/packages/core/settings/_colours.scss +2 -1
  59. package/packages/core/settings/_globals.scss +7 -7
  60. package/packages/core/styles/_icons.scss +2 -2
  61. package/packages/core/tools/_focused.scss +2 -2
  62. package/packages/core/tools/_grid.scss +1 -1
  63. package/packages/core/tools/_mixins.scss +6 -6
  64. package/packages/core/tools/_shape-arrow.scss +1 -1
  65. package/packages/core/tools/_spacing.scss +3 -5
  66. package/packages/core/tools/_typography.scss +6 -10
  67. package/packages/core/utilities/_grid-widths.scss +2 -2
  68. package/packages/core/utilities/_typography.scss +2 -3
  69. package/packages/core/utilities/_widths.scss +2 -2
  70. package/packages/core/vendor/sass-mq.scss +9 -9
  71. package/packages/nhsuk.js +9 -7
  72. package/packages/nhsuk.scss +0 -3
  73. package/packages/polyfills.js +23 -2
  74. package/dist/nhsuk-5.0.0.min.css +0 -1
  75. package/dist/nhsuk-5.0.0.min.js +0 -1
  76. package/packages/components/care-card/README.md +0 -158
  77. package/packages/components/care-card/_care-card.scss +0 -159
  78. package/packages/components/care-card/macro.njk +0 -3
  79. package/packages/components/care-card/template.njk +0 -17
  80. package/packages/components/list-panel/README.md +0 -192
  81. package/packages/components/list-panel/_list-panel.scss +0 -169
  82. package/packages/components/list-panel/macro.njk +0 -3
  83. package/packages/components/list-panel/template.njk +0 -31
  84. package/packages/components/nav-a-z/README.md +0 -196
  85. package/packages/components/nav-a-z/_nav-a-z.scss +0 -58
  86. package/packages/components/nav-a-z/macro.njk +0 -3
  87. package/packages/components/nav-a-z/template.njk +0 -15
package/CHANGELOG.md CHANGED
@@ -1,6 +1,371 @@
1
1
  # NHS.UK frontend Changelog
2
2
 
3
- ## 5.0.0 - Unreleased
3
+ ## 6.0.0 - 29 November 2021
4
+
5
+ :boom: **Breaking changes**
6
+
7
+ - Care card refactor
8
+
9
+ Care card is now a variant of the card component.
10
+
11
+ We've reworked the care cards component as a pattern to "Help users decide when and where to get care". We've done this for 2 reasons.
12
+ 1. The care cards component was designed to deal with a specific problem in the context of health information. But we've seen teams use care cards in other ways and contexts with mixed results. By rewriting care cards as a pattern, we hope it's clearer what problem they're designed to solve.
13
+ 2. We're tidying up the frontend, reducing duplication in the code, making it easier to maintain and improving its performance. We're taking out things which aren't components in their own right. Care cards are a variation of the card component, used as a solution to a specific need, so we're taking them out of the frontend in a breaking change release today.
14
+
15
+ - Remove Nav A-Z component & List panel component
16
+
17
+ The Nav A-Z component & List Panel component are two components in the NHS.UK frontend that did not have guidance in the service manual.
18
+
19
+ ### Nav A-Z
20
+
21
+ #### Old code:
22
+
23
+ ```
24
+ <nav class="nhsuk-nav-a-z" id="nhsuk-nav-a-z" role="navigation" aria-label="A to Z Navigation">
25
+ <ol class="nhsuk-nav-a-z__list" role="list">
26
+ <li class="nhsuk-nav-a-z__item">
27
+ <a class="nhsuk-nav-a-z__link" href="#A">A</a>
28
+ </li>
29
+ <li class="nhsuk-nav-a-z__item">
30
+ <span class="nhsuk-nav-a-z__link--disabled">B</span>
31
+ </li>
32
+ <li class="nhsuk-nav-a-z__item">
33
+ <a class="nhsuk-nav-a-z__link" href="#C">C</a>
34
+ </li>
35
+ <li class="nhsuk-nav-a-z__item">
36
+ <a class="nhsuk-nav-a-z__link" href="#D">D</a>
37
+ </li>
38
+ <li class="nhsuk-nav-a-z__item">
39
+ <a class="nhsuk-nav-a-z__link" href="#E">E</a>
40
+ </li>
41
+ <li class="nhsuk-nav-a-z__item">
42
+ <a class="nhsuk-nav-a-z__link" href="#F">F</a>
43
+ </li>
44
+ <li class="nhsuk-nav-a-z__item">
45
+ <a class="nhsuk-nav-a-z__link" href="#G">G</a>
46
+ </li>
47
+ <li class="nhsuk-nav-a-z__item">
48
+ <a class="nhsuk-nav-a-z__link" href="#H">H</a>
49
+ </li>
50
+ <li class="nhsuk-nav-a-z__item">
51
+ <a class="nhsuk-nav-a-z__link" href="#I">I</a>
52
+ </li>
53
+ <li class="nhsuk-nav-a-z__item">
54
+ <a class="nhsuk-nav-a-z__link" href="#J">J</a>
55
+ </li>
56
+ <li class="nhsuk-nav-a-z__item">
57
+ <a class="nhsuk-nav-a-z__link" href="#K">K</a>
58
+ </li>
59
+ <li class="nhsuk-nav-a-z__item">
60
+ <a class="nhsuk-nav-a-z__link" href="#L">L</a>
61
+ </li>
62
+ <li class="nhsuk-nav-a-z__item">
63
+ <a class="nhsuk-nav-a-z__link" href="#M">M</a>
64
+ </li>
65
+ <li class="nhsuk-nav-a-z__item">
66
+ <a class="nhsuk-nav-a-z__link" href="#N">N</a>
67
+ </li>
68
+ <li class="nhsuk-nav-a-z__item">
69
+ <a class="nhsuk-nav-a-z__link" href="#O">O</a>
70
+ </li>
71
+ <li class="nhsuk-nav-a-z__item">
72
+ <a class="nhsuk-nav-a-z__link" href="#P">P</a>
73
+ </li>
74
+ <li class="nhsuk-nav-a-z__item">
75
+ <a class="nhsuk-nav-a-z__link" href="#Q">Q</a>
76
+ </li>
77
+ <li class="nhsuk-nav-a-z__item">
78
+ <a class="nhsuk-nav-a-z__link" href="#R">R</a>
79
+ </li>
80
+ <li class="nhsuk-nav-a-z__item">
81
+ <a class="nhsuk-nav-a-z__link" href="#S">S</a>
82
+ </li>
83
+ <li class="nhsuk-nav-a-z__item">
84
+ <a class="nhsuk-nav-a-z__link" href="#T">T</a>
85
+ </li>
86
+ <li class="nhsuk-nav-a-z__item">
87
+ <a class="nhsuk-nav-a-z__link" href="#U">U</a>
88
+ </li>
89
+ <li class="nhsuk-nav-a-z__item">
90
+ <a class="nhsuk-nav-a-z__link" href="#V">V</a>
91
+ </li>
92
+ <li class="nhsuk-nav-a-z__item">
93
+ <a class="nhsuk-nav-a-z__link" href="#W">W</a>
94
+ </li>
95
+ <li class="nhsuk-nav-a-z__item">
96
+ <a class="nhsuk-nav-a-z__link" href="#X">X</a>
97
+ </li>
98
+ <li class="nhsuk-nav-a-z__item">
99
+ <a class="nhsuk-nav-a-z__link" href="#Y">Y</a>
100
+ </li>
101
+ <li class="nhsuk-nav-a-z__item">
102
+ <a class="nhsuk-nav-a-z__link" href="#Z">Z</a>
103
+ </li>
104
+ </ol>
105
+ </nav>
106
+ ```
107
+
108
+ #### New code:
109
+
110
+ The nav A-Z component can be recreated using `nhsuk-list`.
111
+
112
+ ```
113
+ <nav class="nhsuk-u-margin-bottom-4 nhsuk-u-margin-top-4" id="nhsuk-nav-a-z" role="navigation" aria-label="A to Z Navigation">
114
+ <ol class="nhsuk-list nhsuk-u-clear nhsuk-u-margin-0" role="list">
115
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
116
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#A">A</a>
117
+ </li>
118
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
119
+ <span class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block nhsuk-u-secondary-text-color">B</span>
120
+ </li>
121
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
122
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#C">C</a>
123
+ </li>
124
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
125
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#D">D</a>
126
+ </li>
127
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
128
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#E">E</a>
129
+ </li>
130
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
131
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#F">F</a>
132
+ </li>
133
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
134
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#G">G</a>
135
+ </li>
136
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
137
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#H">H</a>
138
+ </li>
139
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
140
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#I">I</a>
141
+ </li>
142
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
143
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#J">J</a>
144
+ </li>
145
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
146
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#K">K</a>
147
+ </li>
148
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
149
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#L">L</a>
150
+ </li>
151
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
152
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#M">M</a>
153
+ </li>
154
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
155
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#N">N</a>
156
+ </li>
157
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
158
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#O">O</a>
159
+ </li>
160
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
161
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#P">P</a>
162
+ </li>
163
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
164
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#Q">Q</a>
165
+ </li>
166
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
167
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#R">R</a>
168
+ </li>
169
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
170
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#S">S</a>
171
+ </li>
172
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
173
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#T">T</a>
174
+ </li>
175
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
176
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#U">U</a>
177
+ </li>
178
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
179
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#V">V</a>
180
+ </li>
181
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
182
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#W">W</a>
183
+ </li>
184
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
185
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#X">X</a>
186
+ </li>
187
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
188
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#Y">Y</a>
189
+ </li>
190
+ <li class="nhsuk-u-margin-bottom-0 nhsuk-u-float-left nhsuk-u-margin-right-1">
191
+ <a class="nhsuk-u-font-size-22 nhsuk-u-padding-2 nhsuk-u-display-block" href="#Z">Z</a>
192
+ </li>
193
+ </ol>
194
+ </nav>
195
+ ```
196
+
197
+ The new code uses a new utility class:
198
+
199
+ ```
200
+ .nhsuk-u-float-left {
201
+ float: left !important;
202
+ }
203
+ ```
204
+
205
+ All the other code already exists and the spacing utility classes can be customised to fit into your design.
206
+
207
+ ### List panel
208
+
209
+ #### Old code:
210
+
211
+ ```
212
+ <ol class="nhsuk-list">
213
+ <li>
214
+ <div class="nhsuk-list-panel">
215
+ <h2 class="nhsuk-list-panel__label" id="A">A</h2>
216
+ <ul class="nhsuk-list-panel__list nhsuk-list-panel__list--with-label">
217
+ <li class="nhsuk-list-panel__item">
218
+ <a class="nhsuk-list-panel__link" href="/conditions/abdominal-aortic-aneurysm/">AAA</a>
219
+ </li>
220
+ <li class="nhsuk-list-panel__item">
221
+ <a class="nhsuk-list-panel__link" href="/conditions/abdominal-aortic-aneurysm/">Abdominal aortic aneurysm</a>
222
+ </li>
223
+ <li class="nhsuk-list-panel__item">
224
+ <a class="nhsuk-list-panel__link" href="/conditions/abscess/">Abscess</a>
225
+ </li>
226
+ </ul>
227
+ <div class="nhsuk-back-to-top">
228
+ <a class="nhsuk-back-to-top__link" href="#nhsuk-nav-a-z">
229
+ <svg class="nhsuk-icon nhsuk-icon__arrow-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" width="19" height="19">
230
+ <path d="M19.6 11.66l-2.73-3A.51.51 0 0 0 16 9v2H5a1 1 0 0 0 0 2h11v2a.5.5 0 0 0 .32.46.39.39 0 0 0 .18 0 .52.52 0 0 0 .37-.16l2.73-3a.5.5 0 0 0 0-.64z"></path>
231
+ </svg>
232
+ Back to top
233
+ </a>
234
+ </div>
235
+ </div>
236
+ </li>
237
+ <li>
238
+ <div class="nhsuk-list-panel">
239
+ <h2 class="nhsuk-list-panel__label" id="B">B</h2>
240
+ <div class="nhsuk-list-panel__box nhsuk-list-panel__box--with-label">
241
+ <p class="nhsuk-list-panel--results-items__no-results">There are currently no conditions listed</p>
242
+ </div>
243
+ <div class="nhsuk-back-to-top">
244
+ <a class="nhsuk-back-to-top__link" href="#nhsuk-nav-a-z">
245
+ <svg class="nhsuk-icon nhsuk-icon__arrow-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" width="19" height="19">
246
+ <path d="M19.6 11.66l-2.73-3A.51.51 0 0 0 16 9v2H5a1 1 0 0 0 0 2h11v2a.5.5 0 0 0 .32.46.39.39 0 0 0 .18 0 .52.52 0 0 0 .37-.16l2.73-3a.5.5 0 0 0 0-.64z"></path>
247
+ </svg>
248
+ Back to top
249
+ </a>
250
+ </div>
251
+ </div>
252
+ </li>
253
+ <li>
254
+ <div class="nhsuk-list-panel">
255
+ <h2 class="nhsuk-list-panel__label" id="C">C</h2>
256
+ <ul class="nhsuk-list-panel__list nhsuk-list-panel__list--with-label">
257
+ <li class="nhsuk-list-panel__item">
258
+ <a class="nhsuk-list-panel__link" href="/conditions/chest-pain/">Chest pain</a>
259
+ </li>
260
+ <li class="nhsuk-list-panel__item">
261
+ <a class="nhsuk-list-panel__link" href="/conditions/cold-sores/">Cold sore</a>
262
+ </li>
263
+ </ul>
264
+ <div class="nhsuk-back-to-top">
265
+ <a class="nhsuk-back-to-top__link" href="#nhsuk-nav-a-z">
266
+ <svg class="nhsuk-icon nhsuk-icon__arrow-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" width="19" height="19">
267
+ <path d="M19.6 11.66l-2.73-3A.51.51 0 0 0 16 9v2H5a1 1 0 0 0 0 2h11v2a.5.5 0 0 0 .32.46.39.39 0 0 0 .18 0 .52.52 0 0 0 .37-.16l2.73-3a.5.5 0 0 0 0-.64z"></path>
268
+ </svg>
269
+ Back to top
270
+ </a>
271
+ </div>
272
+ </div>
273
+ </li>
274
+ <li>
275
+ <div class="nhsuk-list-panel">
276
+ <h2 class="nhsuk-list-panel__label" id="D">D</h2>
277
+ <ul class="nhsuk-list-panel__list nhsuk-list-panel__list--with-label">
278
+ <li class="nhsuk-list-panel__item">
279
+ <a class="nhsuk-list-panel__link" href="/conditions/dandruff/">Dandruff</a>
280
+ </li>
281
+ <li class="nhsuk-list-panel__item">
282
+ <a class="nhsuk-list-panel__link" href="/conditions/dementia/">Dementia</a>
283
+ </li>
284
+ <li class="nhsuk-list-panel__item">
285
+ <a class="nhsuk-list-panel__link" href="/conditions/toothache/">Dental pain</a>
286
+ </li>
287
+ </ul>
288
+ <div class="nhsuk-back-to-top">
289
+ <a class="nhsuk-back-to-top__link" href="#nhsuk-nav-a-z">
290
+ <svg class="nhsuk-icon nhsuk-icon__arrow-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" width="19" height="19">
291
+ <path d="M19.6 11.66l-2.73-3A.51.51 0 0 0 16 9v2H5a1 1 0 0 0 0 2h11v2a.5.5 0 0 0 .32.46.39.39 0 0 0 .18 0 .52.52 0 0 0 .37-.16l2.73-3a.5.5 0 0 0 0-.64z"></path>
292
+ </svg>
293
+ Back to top
294
+ </a>
295
+ </div>
296
+ </div>
297
+ </li>
298
+ </ol>
299
+ ```
300
+
301
+ The list panel component can be recreated by adding `nhsuk-list--border` to the [list styles in typography](https://service-manual.nhs.uk/design-system/styles/typography#lists)
302
+
303
+ #### New code:
304
+
305
+ ```
306
+ <ul class="nhsuk-list nhsuk-list--border">
307
+ <li><a href="#">List item as a link</a></li>
308
+ <li><a href="#">List item as a link</a></li>
309
+ <li><a href="#">List item as a link</a></li>
310
+ </ul>
311
+ ```
312
+
313
+ ## 5.2.1 - 28 October 2021
314
+
315
+ :wrench: **Fixes**
316
+
317
+ - Tidying and removing of duplicate styles in header SCSS ([Issue 711](https://github.com/nhsuk/nhsuk-frontend/issues/711)), ([PR 779](https://github.com/nhsuk/nhsuk-frontend/pull/779)).
318
+ - Removal of unnecessary static `aria-label="Open menu"` on the header menu button. Included more descriptive `aria-expanded="false"` on page load.
319
+ - Fixing misaligned search magnifiying glass in header on landscape iOS devices ([Issue 781](https://github.com/nhsuk/nhsuk-frontend/issues/781), [PR 782](https://github.com/nhsuk/nhsuk-frontend/pull/782))
320
+
321
+ ## 5.2.0 - 22 September 2021
322
+
323
+ :new: **New features**
324
+
325
+ - Add "None of these" JavaScript behaviour to checkboxes - allowing all checkboxes in a group to be automatically unchecked when the "None of the above" option is checked ([PR 756](https://github.com/nhsuk/nhsuk-frontend/pull/756))
326
+
327
+ :wrench: **Fixes**
328
+
329
+ - Transactional header defaults to wrapping underneath the logo without the need for a modifier ([Issue 720](https://github.com/nhsuk/nhsuk-frontend/issues/720)).
330
+ - Add width, height, stroke and fill attributes to inline SVGs in order that they render at appropriate sizes when viewed with disabled/broken/missing CSS ([PR 761](https://github.com/nhsuk/nhsuk-frontend/pull/761)).
331
+ - Search input focus state style (desktop) – fix border width ([Issue 768](https://github.com/nhsuk/nhsuk-frontend/issues/768), [PR 771](https://github.com/nhsuk/nhsuk-frontend/pull/771)).
332
+ - Stop polyfilling details elements in browsers that support it natively since the polyfill was causing issues with JAWS/Firefox ([Issue 754](https://github.com/nhsuk/nhsuk-frontend/issues/754), [PR 773](https://github.com/nhsuk/nhsuk-frontend/pull/773))
333
+
334
+ ## 5.1.0 - 14 May 2021
335
+
336
+ :new: **New features**
337
+
338
+ - Ensure Error Summary receives keyboard focus when rendered ([Issue 702](https://github.com/nhsuk/nhsuk-frontend/issues/702)).
339
+ - Enhance Error Summary link focus behaviour such that the nearest label/legend remains in view when scrolling ([PR 725](https://github.com/nhsuk/nhsuk-frontend/pull/725)).
340
+
341
+ If you are importing component JavaScript with ES6 imports, you will need to update your imports to include the Error Summary JavaScript:
342
+
343
+ ```javascript
344
+ // Components
345
+ import ErrorSummary from '../node_modules/nhsuk-frontend/packages/components/error-summary/error-summary';
346
+
347
+ // Initialize components
348
+ document.addEventListener('DOMContentLoaded', () => {
349
+ ErrorSummary();
350
+ });
351
+ ```
352
+
353
+ Note: You may need to change the path to `node_modules` depending on your project structure.
354
+ - Added `$nhsuk-fonts-path` and `$nhsuk-include-font-face` variables to allow for self-hosted fonts or
355
+ disabling font altogether
356
+
357
+ The default `@font-face`, "Frutiger", is loaded from `https://assets.nhs.uk`. The host for the fonts can be
358
+ overridden or disabled entirely.
359
+
360
+ - `$nhsuk-fonts-path`: base URL to load fonts from (e.g. `/fonts/`; trailing slash required)
361
+ - `$nhsuk-include-font-face`: set to false to disable the inclusion of the `@font-face` definition entirely
362
+
363
+ :wrench: **Fixes**
364
+
365
+ - Fix aXe accessibility warning on breadcrumb and expander components ([PR 718](https://github.com/nhsuk/nhsuk-frontend/pull/718))
366
+ - Changed SCSS linting package to stylelint from sass-lint, which is more extensible and actively maintained.
367
+
368
+ ## 5.0.0 - 16 March 2021
4
369
 
5
370
  :boom: **Breaking changes**
6
371
 
@@ -68,7 +433,6 @@ NHS website specific and uses a third party supplier for the search results. ([I
68
433
  - Add a `max-width` to the service header with service name to accommodate longer service names ([Issue 708](https://github.com/nhsuk/nhsuk-frontend/issues/708))
69
434
  - Setting IE to use display block for the responsive table on small resolutions ([Issue 712](https://github.com/nhsuk/nhsuk-frontend/issues/712))
70
435
 
71
-
72
436
  ## 4.1.0 - 21 January 2021
73
437
 
74
438
  :new: **New features**
@@ -883,4 +1247,3 @@ See more about using ES6 modules in your project in the [installing with npm - i
883
1247
 
884
1248
  - This release includes all the content page components and the first
885
1249
  installable npm package.
886
-
package/README.md CHANGED
@@ -24,12 +24,9 @@ Visit our [support for browsers and assistive technology](/docs/contributing/bro
24
24
 
25
25
  Read our [contributing guidelines](CONTRIBUTING.md) to contribute to NHS.UK frontend.
26
26
 
27
- We created this library with help from:
27
+ ## Development environment
28
28
 
29
- - [Government Digital Service (GDS)](https://github.com/alphagov/)
30
- - [Harry Roberts (csswizardry)](https://github.com/csswizardry)
31
- - [Phil Sherry](https://github.com/philsherry)
32
- - [Caroline Jarrett](https://twitter.com/cjforms)
29
+ [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/nhsuk/nhsuk-frontend)
33
30
 
34
31
  ## Get in touch
35
32