UNPKG

43.2 kBMarkdownView Raw
1# NHS.UK frontend Changelog
2
3## 4.1.0 - 21 January 2021
4
5:new: **New features**
6
7- Add `inputmode` and `spellcheck` options to the text input Nunjucks macro
8- Change `type="number"` to `inputmode="numeric"` for the date input component
9- Add a colon after the word Important on the warning callout component ([Issue 670](https://github.com/nhsuk/nhsuk-frontend/issues/653))
10
11:wrench: **Fixes**
12
13- Align items to the top in the Summary list component ([Issue 663](https://github.com/nhsuk/nhsuk-frontend/issues/663))
14- Ensure the NHS logo SVG is a valid SVG file by adding `xlink` namespace to the markup ([PR 657](https://github.com/nhsuk/nhsuk-frontend/pull/657))
15- Transactional header - changed service name link style to include an underline on hover ([Issue 653](https://github.com/nhsuk/nhsuk-frontend/issues/653))
16- Switch from Travis CI to GitHub actions - Due to slow and inconsistent builds we have moved our CI to GitHub actions
17- Android search suggestions bug - when selecting an option from the suggestions in Chrome the form didn't populate and submit, this is now fixed.
18- Expander - Set width and height on expander SVG images to avoid squashed display in IE10 ([PR 668](https://github.com/nhsuk/nhsuk-frontend/pull/668))
19- Vendor in Sass-MQ (PR [#601](https://github.com/nhsuk/nhsuk-frontend/pull/601))
20- Update header focus styles to fix accessibility issue (PR [#684](https://github.com/nhsuk/nhsuk-frontend/pull/684))
21- Remove the full stops from the card component examples ([Issue 669](https://github.com/nhsuk/nhsuk-frontend/issues/653))
22
23## 4.0.0 - 26 October 2020
24
25:boom: **Breaking changes**
26
27- Tables - New responsive table component, when viewed on a desktop the table component will behave like any other table. However, when viewed on a mobile the table collapses into what appears to be a group list style component. ([Pull request 635](https://github.com/nhsuk/nhsuk-frontend/pull/635))
28
29 If you are using the current responsive table class `nhsuk-table-responsive` you will need to rename the `nhsuk-table-responsive` class to `nhsuk-table-container`.
30
31 [Preview the responsive table component](https://nhsuk.github.io/nhsuk-frontend/components/tables/responsive-table.html)
32
33- Remove Panel and Promo components
34
35 The panel and promo were two components in the NHS.UK frontend that did not have guidance in the service manual. They both also shared a lot of the same structure and design. This confused users of the design system, with people not knowing when and how to use the components.
36
37 There was also an accessibility issue with the content of the promo component being all contained within a link (anchor tag) causing a difficult experience for screenreader users. We have fixed this issue and combined the two components into one new component, a card component.
38
39 <details>
40 <summary>If you are using a panel component</summary>
41
42 You will need to replace the panel component with a card component.
43
44 ### For Nunjucks macro
45
46 You need to:
47 - replace `{% from 'components/panel/macro.njk' import panel %}` with `{% from 'components/card/macro.njk' import card %}`
48 - replace `{{ panel({` with `{{ card({`
49 - replace `"html"` with the relevant arguments - for example: `"heading"` and `"descriptionHtml"`
50 - declare the heading level size and heading sizes (with helper classes) because the default heading level is now 2 instead of 3
51
52 For example:
53
54 #### Old Nunjucks macro (Panel)
55
56 ```
57 {% from 'components/panel/macro.njk' import panel %}
58
59 {{ panel({
60 "html": "<h3>If you need help now, but it’s not an emergency</h3> <p>Go to <a href=\"#\">111.nhs.uk</a> or <a href=\"#\">call 111</a>.</p>"
61 }) }}
62 ```
63
64 #### New Nunjucks macro (Card)
65
66 ##### Changing the heading level
67
68 ```
69 {% from 'components/card/macro.njk' import card %}
70
71 {{ card({
72 "heading": "If you need help now, but it’s not an emergency",
73 "headingLevel": "3",
74 "descriptionHtml": "<p class=\"nhsuk-card__description\">Go to <a href=\"#\">111.nhs.uk</a> or <a href=\"#\">call 111</a>.</p>"
75 }) }}
76 ```
77
78 ##### Changing the heading size
79
80 ```
81 {% from 'components/card/macro.njk' import card %}
82
83 {{ card({
84 "heading": "If you need help now, but it’s not an emergency",
85 "headingClasses": "nhsuk-heading-m",
86 "descriptionHtml": "<p class=\"nhsuk-card__description\">Go to <a href=\"#\">111.nhs.uk</a> or <a href=\"#\">call 111</a>.</p>"
87 }) }}
88 ```
89
90 ### For HTML
91
92 You need to:
93 - replace all `nhsuk-panel` classes to `nhsuk-card`
94
95 For example:
96
97 #### Old HTML (Panel)
98
99 ```
100 <div class="nhsuk-panel nhsuk-panel--grey">
101 <h3>If you need help now, but it’s not an emergency</h3>
102 <p>Go to <a href="#">111.nhs.uk</a> or <a href="tel: 111">call 111</a>.</p>
103 </div>
104 ```
105
106 #### New HTML (Card)
107
108 ```
109 <div class="nhsuk-card>
110 <div class="nhsuk-card__content">
111 <h3 class="nhsuk-card__heading">If you need help now, but it’s not an emergency</h3>
112 <p>Go to <a href="#">111.nhs.uk</a> or <a href="#">call 111</a>.</p>
113 </div>
114 </div>
115 ```
116 </details>
117
118 <details>
119 <summary>If you are using a promo component</summary>
120
121 You will need to replace the promo component with a card component.
122
123 ### For Nunjucks macro
124
125 You need to:
126 - replace `{% from 'components/promo/macro.njk' import promo %}` with `{% from 'components/card/macro.njk' import card %}`
127 - replace `{{ promo({` with `{{ card({`
128 - declare the heading level size and heading sizes (with helper classes) because the default heading level is now 2 instead of 3
129
130 For example:
131
132 #### Old Nunjucks macro (Promo)
133
134 ```
135 {% from 'components/promo/macro.njk' import promo %}
136
137 {{ promo({
138 "href": "https://www.nhs.uk",
139 "heading": "Save a life: give blood",
140 "description": "Please register today. Donating blood is easy, and saves lives."
141 }) }}
142 ```
143
144 #### New Nunjucks macro (Card)
145
146 ##### Changing the heading level
147
148 ```
149 {% from 'components/card/macro.njk' import card %}
150
151 {{ card({
152 "href": "https://www.nhs.uk",
153 "heading": "Save a life: give blood",
154 "headingLevel": "3",
155 "description": "Please register today. Donating blood is easy, and saves lives."
156 }) }
157 ```
158
159 ##### Changing the heading size
160
161 ```
162 {% from 'components/card/macro.njk' import card %}
163
164 {{ card({
165 "href": "https://www.nhs.uk",
166 "heading": "Save a life: give blood",
167 "headingClasses": "nhsuk-heading-m",
168 "description": "Please register today. Donating blood is easy, and saves lives."
169 }) }
170 ```
171
172 ### For HTML
173
174 You need to:
175 - replace all `nhsuk-promo` classes to `nhsuk-card`
176 - remove surrounding `<a class="nhsuk-promo__link-wrapper" href="#">` and add `<a class="nhsuk-card__link" href="#">` within `<h3 class="nhsuk-card__heading">`
177 - add `nhsuk-card--clickable` class to make entire card clickable
178
179 For example:
180
181 #### Old HTML (Promo)
182
183 ```
184 <div class="nhsuk-promo">
185 <a class="nhsuk-promo__link-wrapper" href="#">
186 <img class="nhsuk-promo__img" src="https://assets.nhs.uk/prod/images/020720_PHE_Barrington_5426_TRL3_CL.2e16d0ba.fill-720x405.jpg" alt="">
187 <div class="nhsuk-promo__content">
188 <h3 class="nhsuk-promo__heading">Kickstart your health</h3>
189 <p class="nhsuk-promo__description">It's never too late to get your health back on track. Eat well, move more and start losing weight with Better Health. Try our NHS weight loss plan to get you started.</p>
190 </div>
191 </a>
192 </div>
193 ```
194
195 #### New HTML (Card)
196
197 ```
198 <div class="nhsuk-card nhsuk-card--clickable">
199 <img class="nhsuk-card__img" src="https://assets.nhs.uk/prod/images/020720_PHE_Barrington_5426_TRL3_CL.2e16d0ba.fill-720x405.jpg" alt="">
200 <div class="nhsuk-card__content">
201 <h3 class="nhsuk-card__heading">
202 <a class="nhsuk-card__link" href="#">Kickstart your health</a>
203 </h3>
204 <p class="nhsuk-card__description">It's never too late to get your health back on track. Eat well, move more and start losing weight with Better Health. Try our NHS weight loss plan to get you started.</p>
205 </div>
206 </div>
207 ```
208 </details>
209
210 ([PR 627](https://github.com/nhsuk/nhsuk-frontend/pull/627))
211
212:new: **New features**
213
214- Add Card component
215
216 Use a card instead of a panel or promo to provide users with a brief summary of content or a task, often with a link to more detail. Cards are frequently displayed alongside other cards to group related content or tasks.
217
218 ([PR 627](https://github.com/nhsuk/nhsuk-frontend/pull/627))
219
220- Add Tag component
221
222 Use the tag component when it’s possible for something to have more than one status and it’s useful for the user to know about that status.
223
224 ([PR 626](https://github.com/nhsuk/nhsuk-frontend/pull/626))
225
226- Add `nhsuk-link--no-visited-state` mixin - for where it is not helpful to distinguish between visited and non-visited links.
227
228- Custom search API endpoint – Improving the search experience it's now possible to define a custom API endpoint in the HTML. The JavaScript will check the window object to look for a new API reference, if nothing is found it will default to the standard NHS reference.
229
230 Add the below code to a base HTML file or any pages that use search.
231
232```HTML
233 <script>
234 window.NHSUK_SETTINGS = {};
235 window.NHSUK_SETTINGS.SUGGESTIONS_TEST_HOST = "[CUSTOM API ENDPOINT]";
236 window.NHSUK_SETTINGS.SEARCH_TEST_HOST = "[CUSTOM SEARCH PAGE URL]";
237 </script>
238```
239
240:wrench: **Fixes**
241
242- Hints - changed hints to be div instead of span to allow multi-line elements ([Issue 620](https://github.com/nhsuk/nhsuk-frontend/issues/620))
243- Details - fix the left alignment of the details text and summary ([Issue 615](https://github.com/nhsuk/nhsuk-frontend/issues/615))
244- Focus styling - Fixing issues with focus state on input and text area which caused resizing ([Issue 600](https://github.com/nhsuk/nhsuk-frontend/issues/600) and [Issue 613](https://github.com/nhsuk/nhsuk-frontend/issues/613))
245- Fix styles for the `nhsuk-link-style-white`
246- Fix breadcrumb link color when `:visited` and `:focus`
247- Warning callout - update Nunjucks macro template so custom headings get prefixed with `<span class="nhsuk-u-visually-hidden">Important:</span>` to convey the importance of the message to screen reader users. ([PR 630](https://github.com/nhsuk/nhsuk-frontend/pull/630))
248- Style updates to a few components so that they render properly on a range of quality monitors and devices found in use in the NHS.
249
250 Including adding a 1px border to:
251 - care cards (non-urgent and urgent)
252 - do and don't list
253 - expander
254 - warning callout
255
256## 3.1.0 - 24 April 2020
257
258:new: **New features**
259
260- Checkboxes with conditional content - add functionality to show and hide conditional content when checkbox is checked
261- Radios with conditional content - add functionality to show and hide conditional content when radio is checked
262- JS utils - add addClass, removeClass, getClasses and hasClass utils
263
264 **Conditional and polyfill JavaScript**
265
266 Add the following JavaScript to the top of the `<body>` section of your page template:
267
268 ```
269 document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');
270 ```
271
272 If you are importing component JavaScript with ES6 imports, you will need to update your imports to include the JavaScript:
273
274 ```javascript
275 // Components
276 import Header from '../node_modules/nhsuk-frontend/packages/components/header/header';
277 import SkipLink from '../node_modules/nhsuk-frontend/packages/components/skip-link/skip-link';
278 import Details from '../node_modules/nhsuk-frontend/packages/components/details/details';
279 import Radios from '../node_modules/nhsuk-frontend/packages/components/radios/radios';
280 import Checkboxes from '../node_modules/nhsuk-frontend/packages/components/checkboxes/checkboxes';
281
282 // Polyfills
283 import '../node_modules/nhsuk-frontend/packages/polyfills';
284
285 // Initialize components
286 document.addEventListener('DOMContentLoaded', () => {
287 Details();
288 Header();
289 SkipLink();
290 Radios();
291 Checkboxes();
292 });
293 ```
294
295 Note: You may need to change the path to `node_modules` depending on your project structure.
296
297:wrench: **Fixes**
298
299- Tidy dependencies - Removed unnecessary JavaScript linting NPM packages
300- JS utils - Fix toggleClass util which duplicated classes if there was no other class before it, more tests added
301- Nunjucks documentation - describe items as arrays not objects ([Issue 604](https://github.com/nhsuk/nhsuk-frontend/issues/604))
302
303## 3.0.4 - 24 March 2020
304
305:wrench: **Fixes**
306
307- Breadcrumb - fix the text colour on :focus:hover ([Issue 589](https://github.com/nhsuk/nhsuk-frontend/issues/589))
308- Transactional Header - fix the text colour on :focus:hover for non visited links ([Issue 592](https://github.com/nhsuk/nhsuk-frontend/issues/592))
309- Button - fix the text colour on :focus :visited states and remove the role="button" from button as a link example ([Issue 593](https://github.com/nhsuk/nhsuk-frontend/issues/593)) ([Issue 425](https://github.com/nhsuk/nhsuk-frontend/issues/425))
310
311## 3.0.3 - 17 February 2020
312
313:wrench: **Fixes**
314
315- Expander - fix the Expander plus and minus icon sizing on IE11 ([Issue 564](https://github.com/nhsuk/nhsuk-frontend/issues/564))
316- Button - fix the active state text colour for button as a link
317- Back button - fix the text hover colour for visited links
318- Breadcrumb - fix the text hover colour for visited links
319- Pagination - fix the pagination arrow colour on active and visited links
320- Header - remove random margin from the Menu button on Safari ([PR 581](https://github.com/nhsuk/nhsuk-frontend/pull/581))
321- Care card - prevent additional padding on care card headings
322- Header - use the latest version of the GOV.UK Accessible autocomplete which fixes a bug that prevented users from clicking on options in certain circumstances
323
324## 3.0.2 - 11 November 2019
325
326:wrench: **Fixes**
327
328- Details keydown - following the details polyfill refactor, we've fixed an issue with keydown events not opening or closing the component
329- Search defaults - change default header search URL to use nhs.uk search
330
331## 3.0.1 - 8 November 2019
332
333:wrench: **Fixes**
334
335- Focus states - following the focus styles changes, we've fixed an issue with the header navigation link styling
336
337## 3.0.0 - 7 November 2019
338
339:boom: **Breaking changes**
340
341- Non-text colour contrast for WCAG 2.1 ([Issue 473](https://github.com/nhsuk/nhsuk-frontend/issues/473)). Our focus states now meet the new WCAG 2.1 level AA requirements.
342
343 If you are using Sass and have created new components, you will need to migrate to the new accessible focus states.
344
345 ### Mixins that have been removed
346
347 The Sass mixins `nhsuk-focusable`, `nhsuk-focusable-fill` or `nhsuk-link-style-focus` have been removed. You can use the `nhsuk-focused-text` mixin instead.
348
349 Include the `nhsuk-focused-text` mixin inside your component's `:focus` selector. For example:
350
351 ```scss
352 .app-component:focus {
353 @include nhsuk-focused-text;
354 }
355 ```
356
357 ### Colour variables that have been removed
358
359 Some colour variables have also been removed. You can use the suggested replacement if you were using them in components that have been extended or created.
360
361 <details>
362 <summary>View the colour variables that have been replaced</summary>
363
364 | Colour variable removed | Suggested replacement |
365 | ------------- | ------------- |
366 | $color_tint_nhsuk-warm-yellow-30 | $color_nhsuk-warm-yellow |
367 | $color_tint_nhsuk-warm-yellow-10 | $color_nhsuk-warm-yellow |
368 | $nhsuk-link-focus-color | $nhsuk-focus-text-color |
369 | $nhsuk-link-hover-background-color | $nhsuk-focus-color |
370 | $nhsuk-link-focus-background-color | $nhsuk-focus-color |
371 | $nhsuk-link-active-background-color | $nhsuk-focus-color |
372 | $nhsuk-button-text-colour | $nhsuk-button-text-color |
373 | $nhsuk-button-hover-colour | $nhsuk-button-hover-color |
374 | $nhsuk-reverse-button-text-colour | $nhsuk-reverse-button-text-color |
375 | $nhsuk-button-shadow-colour | $nhsuk-button-shadow-color |
376 | $nhsuk-secondary-button-colour | $nhsuk-secondary-button-color |
377 | $nhsuk-secondary-button-hover-colour | $nhsuk-secondary-button-hover-color |
378 | $nhsuk-secondary-button-shadow-colour | $nhsuk-secondary-button-shadow-color |
379 | $nhsuk-reverse-button-colour | $nhsuk-reverse-button-color |
380 | $nhsuk-reverse-button-hover-colour | $nhsuk-reverse-button-hover-color |
381 | $nhsuk-button-colour | $nhsuk-button-color |
382 | $nhsuk-button-hover-colour | $nhsuk-button-hover-color |
383 | $nhsuk-secondary-button-colour | $nhsuk-secondary-button-color |
384 | $nhsuk-secondary-button-hover-colour | $nhsuk-secondary-button-hover-color |
385 | $nhsuk-secondary-button-shadow-colour | $nhsuk-secondary-button-shadow-color |
386 | $nhsuk-reverse-button-colour | $nhsuk-reverse-button-color |
387 | $nhsuk-reverse-button-hover-colour | $nhsuk-reverse-button-hover-color |
388 | $nhsuk-reverse-button-shadow-colour | $nhsuk-reverse-button-shadow-color |
389 | $nhsuk-focus-colour | $nhsuk-focus-color |
390 | $nhsuk-focus-text-colour | $nhsuk-focus-text-color |
391 | $nhsuk-button-shadow-colour | $nhsuk-button-shadow-color |
392 </details>
393
394 <hr>
395
396:boom: **Breaking changes**
397
398- Deprecation of the [Feedback banner](https://github.com/nhsuk/nhsuk-service-manual-backlog/issues/151) and [Emergency alert](https://github.com/nhsuk/nhsuk-service-manual-backlog/issues/149) components.
399
400 If you are using Sass and JavaScript (ES6) imports, you will need to remove the imports for these components. You will also no longer be able to use the Nunjucks macros.
401
402 **Sass**
403
404 If you are importing component styles individually, you will need to remove the imports for the emergency alert and feedback banner:
405
406 ```scss
407 @import 'node_modules/nhsuk-frontend/packages/components/emergency-alert/emergency-alert';
408 ```
409 ```scss
410 @import 'node_modules/nhsuk-frontend/packages/components/feedback-banner/feedback-banner';
411 ```
412
413 If you import all the component styles with `@import 'node_modules/nhsuk-frontend/packages/core/all';`, you don't need to update your Sass imports.
414
415 **JavaScript**
416
417 If you are importing component JavaScript with ES6 imports, you will need to remove the imports and initialisation for the feedback banner:
418
419 ```js
420 import nhsuk_feedbackBanner from 'node_modules/nhsuk-frontend/packages/components/feedback-banner/feedback-banner';
421 ```
422 ```js
423 nhsuk_feedbackBanner(3000);
424 ```
425
426 <hr>
427
428:boom: **Breaking changes**
429
430- Refactor component JavaScript to make it more robust and use the latest ES6 coding standards ([Issue 425](https://github.com/nhsuk/nhsuk-frontend/issues/425)) ([Issue 450](https://github.com/nhsuk/nhsuk-frontend/issues/450))
431
432 **JavaScript**
433
434 If you are importing component JavaScript with ES6 imports, you will need to update the imports to:
435
436 ```js
437 // Components
438 import Header from './components/header/header';
439 import SkipLink from './components/skip-link/skip-link';
440 import Details from './components/details/details';
441
442 // Initialize components
443 document.addEventListener('DOMContentLoaded', () => {
444 Details();
445 Header();
446 SkipLink();
447 });
448 ```
449
450 If you are already importing JavaScript with these export names, you can change the default export name.
451
452:new: **New features**
453
454- Organisational logos - the Header component now supports organisational logos. The organisational logo can be SVG code, with the organisation name and descriptor being editable through code, or a static PNG asset. You can also change the colour of the header and navigation menu from blue (default) to white ([Issue 446](https://github.com/nhsuk/nhsuk-frontend/issues/446)).
455
456 **SVG logo**
457
458 [Preview the header organisational component](https://nhsuk.github.io/nhsuk-frontend/components/header/header-org.html)
459
460 Organisation names can be edited as text in the `nhsuk-organisation-name` span element.
461 Longer organisation names can be split onto multiple lines with `nhsuk-organisation-name-split` span. (The NHS England brand guidelines explain when this must be done.)
462 The organisation descriptor can be used with the `nhsuk-organisation-descriptor` class name span.
463
464 See [NHS England brand guidelines - Organisational logos](https://www.england.nhs.uk/nhsidentity/identity-guidelines/organisational-logos/) for more information on organisational logos.
465
466 **PNG logo**
467
468 You can also use a static asset, such as a PNG image.
469
470 ```
471 <a class="nhsuk-header__link" href="/" aria-label="Anytown Anyplace Anywhere NHS Foundation Trust homepage">
472 <img class="nhsuk-org-logo" src="/path-to-assets/logo.png" alt="">
473 </a>
474 ```
475
476 **Colour variants**
477
478 [Preview the header organisational with white header component](https://nhsuk.github.io/nhsuk-frontend/components/header/header-org-white.html)
479
480 [Preview the header organisational with white header and navigation component](https://nhsuk.github.io/nhsuk-frontend/components/header/header-org-white-nav.html)
481
482:wrench: **Fixes**
483
484- Images - Add `size` and `srcset` attributes to the images component for responsive loading of images. ([Issue 422](https://github.com/nhsuk/nhsuk-frontend/issues/422))
485- Jaws/NVDA not reading fieldset heading - removing old `overflow: hidden` hack for hint text in legend ([Issue 534](https://github.com/nhsuk/nhsuk-frontend/issues/534))
486- Fallback font - Fix fallback to be Arial by removing Helvetica.
487- Fieldset legend - Fix bottom margin of fieldset legend heading modifiers to make spacing consistent.
488- Hero - Prevent text breaking out of box on smaller screen sizes ([Issue 432](https://github.com/nhsuk/nhsuk-frontend/issues/432))
489- Table - Update table cell padding to align content
490- Header search autocomplete - Use the latest version of GOV.UK accessible autocomplete ([Issue 538](https://github.com/nhsuk/nhsuk-frontend/issues/538))
491
492## 2.3.2 - 30 September 2019
493
494:wrench: **Fixes**
495
496- Header search - Fix javascript error when header search autocomplete is not present on the page ([Issue 531](https://github.com/nhsuk/nhsuk-frontend/issues/531)), add linting to all component JavaScript files, exclude linting from details polyfill, fix linting errors in autocomplete JavaScript, remove unnecessary JavaScript and CSS from autocomplete.
497
498## 2.3.1 - 10 September 2019
499
500:wrench: **Fixes**
501
502- Details (Expander variant) - Fix an issue on Microsoft Edge with the sizing of the +/- icons overlapping the title of the Expander. ([Issue 508](https://github.com/nhsuk/nhsuk-frontend/issues/508))
503- Footer - Added a new parameter to the nunjucks template to override the default copyright notice. ([Issue 485](https://github.com/nhsuk/nhsuk-frontend/issues/485))
504- Visually hidden mixin - Fix margin issue which causes text to be read in the wrong order on VoiceOver
505- Header search - Fix issue with the search dropdown moving down the page when you scroll ([Issue 484](https://github.com/nhsuk/nhsuk-frontend/issues/484)) and handle the enter keydown event to perform search ([Issue 522](https://github.com/nhsuk/nhsuk-frontend/issues/522))
506
507## 2.3.0 - 23 July 2019
508
509:new: **New features**
510
511- Lede text - Lede text styling for use after the `<h1>` element, often used as intro text for the page immediately following the page header. You can see an example of Lede text on the [NHS website Live Well page](https://www.nhs.uk/live-well/), you can find the HTML code for Lede text in the [Typography section in the README](https://github.com/nhsuk/nhsuk-frontend/blob/master/packages/core#lede-text). ([Issue 106](https://github.com/nhsuk/nhsuk-service-manual-backlog/issues/106))
512
513- Secondary text colour utility class - a new utility class to be able to use the secondary text colour within elements (`$nhsuk-secondary-text-color` - `#425563`) You can find the HTML code for secondary text colour utility class in the [Utilities section in the README](https://github.com/nhsuk/nhsuk-frontend/blob/master/packages/core#secondary-text-colour) ([Issue 465](https://github.com/nhsuk/nhsuk-frontend/issues/465))
514
515:wrench: **Fixes**
516
517- Care card (immediate) - Fix colour contrast issue when using the Details component within the Care card (immediate) ([Issue 475](https://github.com/nhsuk/nhsuk-frontend/issues/475))
518
519- Open Graph image and meta data - use the latest Open Graph image and meta data from the NHS website. You can find this asset in the `packages/assets/logos` directory and the recommended meta data for Open Graph cards in the [Installing using compiled files - HTML template](https://github.com/nhsuk/nhsuk-frontend/blob/master/docs/installation/installing-compiled.md#html-template)
520
521- Updated details.scss, radios.scss and checkboxes.scss components to remove &s from the middle of selectors and added new selectors that don't use the &s.
522
523- Details component - Additional top padding for a h2 / nhsuk-heading-l which is placed after the details component. [Issue 486](https://github.com/nhsuk/nhsuk-frontend/issues/486)
524
525## 2.2.0 - 24 June 2019
526
527:new: **New features**
528
529- Footer - A variant for footer links to be in lists in 3 columns, which can be used when there are more than just a few links. You can find the markup and example in the [Footer component README](https://github.com/nhsuk/nhsuk-frontend/blob/master/packages/components/footer/README.md#footer-with-list-columns) [(Issue 168)](https://github.com/nhsuk/nhsuk-frontend/issues/168)
530
531- Favicon - The favicon design has changed and the favicon asset files have been updated in the `packages/assets/favicons` directory. The file names have stayed the same - but there are also some additional recommended favicon metadata tags for different devices. You can find a list of the recommended favicons to use in the [Installing with npm - importing assets documentation](https://github.com/nhsuk/nhsuk-frontend/blob/master/docs/installation/installing-with-npm.md#importing-assets-optional) and the [Installing using compiled files - HTML template](https://github.com/nhsuk/nhsuk-frontend/blob/master/docs/installation/installing-compiled.md#html-template). ([Issue 447](https://github.com/nhsuk/nhsuk-frontend/issues/447))
532
533:wrench: **Fixes**
534
535- Remove light font version - The light version of the Frutiger font has been removed as it was only been used in one place. The SASS `$nhsuk-font-light` variable has been remapped to use the `$nhsuk-font-normal` value as a defensive measure for now until it is decided to remove the `$nhsuk-font-light` variable completely. ([PR 460](https://github.com/nhsuk/nhsuk-frontend/pull/460))
536
537- Expander group component - Fixed expander group spacing issues when used with components with no top margin ([Issue 439](https://github.com/nhsuk/nhsuk-frontend/issues/439))
538
539- Update dependencies to their latest versions - this fixes a common security issue within the node-sass package. See https://github.com/sass/node-sass/issues/2625 for more details
540- Search autocomplete - Fixed the query parameter on submit. [(Issue 459)](https://github.com/nhsuk/nhsuk-frontend/issues/459) - Also added two new parameters to the nunjucks template to make it more versatile. [(Issue 458)
541 ](https://github.com/nhsuk/nhsuk-frontend/issues/458)
542
543- Fixed `nhsuk-u-reading-width` utility class - the measurement has been adjusted to work with our base font size (16px) ([Issue 462](https://github.com/nhsuk/nhsuk-frontend/issues/462))
544
545## 2.1.0 - 8 April 2019
546
547:new: **New features**
548
549- Hero component - removed background image and arrow and tidied up area around the hero with image and content when in Windows high contrast mode. ([PR 435](https://github.com/nhsuk/nhsuk-frontend/pull/435))
550
551- Add transparent 1px border around promos which appears as a solid border when in Windows high contrast mode. ([PR 433](https://github.com/nhsuk/nhsuk-frontend/pull/433))
552
553- Fluid width container - Extend the page layout to include a fluid-width container, which spans the entire width of the viewport.
554 Use `.nhsuk-width-container-fluid` for a full width container. Documentation and an example of the fluid-width container can be found on the Layout page in the NHS digital service manual.
555 ([Issue 416](https://github.com/nhsuk/nhsuk-frontend/issues/416))
556
557- Prefix error messages with a visually hidden "Error:", to make it clearer to
558 users of assistive technologies.
559
560- Add example and code snippets for a Button as a link and remove the multiple examples for the disabled Button. The Button as a link includes the attribute `draggable="false"` to stop links that are styled as button from being dragged.
561
562- Enable `autocomplete` attributes for input components. The `autocomplete` attribute can now be enabled on input, date input and textarea components using the component macros parameters.
563
564 This was already possible to do with the `attributes` option but this change highlights the new WCAG 2.1 success criteria [Identify Input Purpose](https://www.w3.org/WAI/WCAG21/Understanding/identify-input-purpose.html) which "is to ensure that the purpose of a form input collecting information about the user can be programmatically determined, so that user agents can extract and present this purpose to users using different modalities".
565
566 See [Autofilling form controls: the autocomplete attribute](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill) for the full list of attributes that can be used.
567
568- Enable `pattern` attribute for input component.
569
570 You can now set the `pattern` attribute on input fields using the component macros:
571
572 ```
573 {{ input({
574 "label": {
575 "text": "Pattern example"
576 },
577 "id": "input-with-pattern",
578 "name": "pattern-example",
579 "pattern": "[0-9]*"
580 }) }}
581 ```
582
583- Example of social media open graph cards for Twitter and Facebook
584
585 Examples for [Twitter](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/summary.html) and [Facebook](https://developers.facebook.com/docs/sharing/webmasters/) have been added to the GitHub pages layout file and also to the [HTML page template](/docs/installation/installing-compiled.md#html-template).
586
587 The open graph default image has also been added to the `assets/logos` folder of the package.
588
589:wrench: **Fixes**
590
591- Reorder the asset `preconnect` and remove unneeded `dns-prefetch` ([Issue 434](https://github.com/nhsuk/nhsuk-frontend/issues/434))
592
593- Header search icon padding has been altered due to the icon not being central for the desktop breakpoint.
594
595## 2.0.0 - 11 March 2019
596
597:boom: **Breaking changes**
598
599- Hero component - Refactored hero component to not overlap with the header when zooming in / increasing the font size massively. There have been minor HTML changes so please update your code if you are using this component.([PR 411](https://github.com/nhsuk/nhsuk-frontend/pull/411)), ([Issue 400](https://github.com/nhsuk/nhsuk-frontend/issues/400))
600
601:new: **New features**
602
603- Summary list component - Use the summary list to summarise information, for example, a user’s responses at the end of a form.
604
605 If you are importing all styles with `@import 'node_modules/nhsuk-frontend/packages/nhsuk';` you will automatically have access to the new component when you update. Alternatively if you are importing each of the individual components separately you will need to import the component with `@import 'node_modules/nhsuk-frontend/packages/components/summary-list/summary-list';`
606
607 ([Issue 384](https://github.com/nhsuk/nhsuk-frontend/issues/384))
608
609:wrench: **Fixes**
610
611- Button component - A fix for the :focus state to display a 4px yellow border. ([Issue 406](https://github.com/nhsuk/nhsuk-frontend/issues/406))
612
613- JavaScript variable scope - Globally scoped variables were causing issues with JavaScript frameworks such as Angular, so they have been moved to be locally scoped within functions. However, this could be improved as we have to duplicate variables between the multiple functions, so its likely this is a temporary fix before refactoring our JavaScript to be class based. ([PR 402](https://github.com/nhsuk/nhsuk-frontend/pull/402)), ([Issue 398](https://github.com/nhsuk/nhsuk-frontend/issues/398)).
614
615 The JavaScript files will update automatically, when you update the nhsuk-frontend version and your application will work as normal.
616
617## 1.0.1 - 20 February 2019
618
619:wrench: **Fixes**
620
621- Panel component - A fix for the panel to go full width of the grid item, rather than just the width of the content. ([Issue 395](https://github.com/nhsuk/nhsuk-frontend/issues/395))
622
623:new: **New features**
624
625- Promo component - Updated the Nunjucks macro and css to allow any level of heading for the promo heading rather than being hardcoded to a `<h3>` ([PR 392](https://github.com/nhsuk/nhsuk-frontend/pull/392))
626
627## 1.0.0 - 5 February 2019
628
629:tada: **Official release of the NHS.UK frontend**
630
631- v1.0.0 of the NHS.UK frontend library!
632
633:wrench: **Fixes**
634
635- Review date component - Removed the `<time>` markup around the date because it doesn't have a `datetime` attribute (which can't be automatically generated) and also we can't guarantee that the content will be a valid date/time string ([PR 381](https://github.com/nhsuk/nhsuk-frontend/pull/381))
636
637- Header component - Update of the Nunjucks template and documentation ([PR 380](https://github.com/nhsuk/nhsuk-frontend/pull/380))
638
639## 0.9.1 (Prerelease) - 4 February 2019
640
641:wrench: **Fixes**
642
643- Header, hero and breadcrumbs - IE8 fixes to make the header and hero components display better, and hidden a back link (used in mobile view) in the breadcrumbs component ([PR 376](https://github.com/nhsuk/nhsuk-frontend/pull/376))
644
645## 0.9.0 (Prerelease) - 31 January 2019
646
647:new: **New features**
648
649- Emergency alert, feedback banner, footer, header, hero component - Add options for extra classes and attributes in the Nunjucks macro. ([PR 361](https://github.com/nhsuk/nhsuk-frontend/pull/361))
650
651:wrench: **Fixes**
652
653- Footer text amend - Uncapitalised copyright message in footer - 'copyright' rather than 'Copyright' ([PR 360](https://github.com/nhsuk/nhsuk-frontend/pull/360))
654
655## 0.8.0 (Prerelease) - 17 January 2019
656
657:boom: **Breaking changes**
658
659- Header - The autocomplete has been rewritten to remove the dependency on jQuery and now uses [GOV.UK's accessible autocomplete component](https://github.com/alphagov/accessible-autocomplete). You will need to do an `npm install` to update your packages and update the header HTML accordingly. ([PR 342](https://github.com/nhsuk/nhsuk-frontend/pull/342))
660
661## 0.7.0 (Prerelease) - Jan 2, 2019
662
663:new: **New features**
664
665- Button component - Add option for button to be also an `<a>` or `<input>` element. ([PR 324](https://github.com/nhsuk/nhsuk-frontend/pull/324))
666
667:wrench: **Fixes**
668
669- Project structure - move website pages out of the `/docs` folder and into `/app` along with other general project clean up ([PR 324](https://github.com/nhsuk/nhsuk-frontend/pull/321))
670
671## 0.6.0 (Prerelease) - 18 December 2018
672
673:boom: **Breaking changes**
674
675- npm JavaScript file path - The `nhsuk.min.js` file has been moved from `packages/` into `dist/` if you are referencing
676 the compiled JavaScript file from the `packages/` folder please update your projects.
677
678- Footer no longer includes a logo and the nunjucks macro arguments have been updated - if you are using the footer nunjucks
679 macro then you need to update it. ([PR 300](https://github.com/nhsuk/nhsuk-frontend/pull/300))
680
681:new: **New features**
682
683- ES6 JavaScript modules - NHS.UK frontend JavaScript is now written in ES6 format, meaning you can import individual components
684 that you require (if you are using a transpiler such as Babel). ([PR 258](https://github.com/nhsuk/nhsuk-frontend/pull/258))
685
686See more about using ES6 modules in your project in the [installing with npm - importing Javascript documentation](/docs/installation/installing-with-npm.md#option-2-import-javascript-using-modules).
687
688## 0.5.3 (Prerelease) - 13 December 2018
689
690:new: **New features**
691
692- Header - Add 'aria-label' Nunjucks argument so it can be overridden ([PR 297](https://github.com/nhsuk/nhsuk-frontend/pull/297))
693
694## 0.5.2 (Prerelease) - 12 December 2018
695
696:wrench: **Fixes**
697
698- Address styling - Add generic styling for the `<address>` element ([PR 295](https://github.com/nhsuk/nhsuk-frontend/pull/295))
699
700- Focus styles - Add focus styles on links when in High Contrast Mode in Windows to make it easier to distinguish where you are. ([PR 294](https://github.com/nhsuk/nhsuk-frontend/pull/294))
701
702## 0.5.1 (Prerelease) - 11 December 2018
703
704:wrench: **Fixes**
705
706- Feedback banner - Fix an issue with the JavaScript reporting errors within the console log
707 when scrolling down the page if the feedback banner did not exist on the page. ([PR 293](https://github.com/nhsuk/nhsuk-frontend/pull/293))
708
709- Details - Add the missing component JavaScript to the `nhsuk.min.js` bundle. ([PR 285](https://github.com/nhsuk/nhsuk-frontend/pull/285))
710
711## 0.5.0 (Prerelease) - 7 December 2018
712
713:boom: **Breaking changes**
714
715- Utility classes - Utility classes should be prefixed with `nhsuk-u-` rather than `nhsuk-!-`. ([PR 282](https://github.com/nhsuk/nhsuk-frontend/pull/282))
716
717 If you are using any utility classes in your HTML, such as spacing, width or typography overrides, you need to update your HTML classes from
718 `nhsuk-!-` to `nhsuk-u-`.
719
720 You can find out more about utility class usage in the [utility class documentation](https://github.com/nhsuk/nhsuk-frontend/tree/master/packages/core#utilities).
721
722:wrench: **Fixes**
723
724- Footer - Add the ability to change the link of the NHS logo within the nunjucks macro with `homeHref` argument. Also have the logo show by default with the ability to hide it using the `showLogo` argument. ([PR 278](https://github.com/nhsuk/nhsuk-frontend/pull/278))
725
726## 0.4.0 (Prerelease) - 3 December 2018
727
728:boom: **Breaking changes**
729
730- Breadcrumb - Updated nunjucks macro so now you do not need duplicate entries for it to work ([PR 276](https://github.com/nhsuk/nhsuk-frontend/pull/276))
731
732 Use the latest [Breadcrumb nunjucks macro arguments](https://github.com/nhsuk/nhsuk-frontend/tree/master/packages/components/breadcrumb#nunjucks-macro) and [Breadcrumb HTML markup](https://github.com/nhsuk/nhsuk-frontend/tree/master/packages/components/breadcrumb#html-markup) in your app.
733
734- Care card - Change the way triangle is generated in care cards for accessiblity purposes ([PR 269](https://github.com/nhsuk/nhsuk-frontend/pull/269))
735
736 Use the latest [Care card HTML markup](https://github.com/nhsuk/nhsuk-frontend/tree/master/packages/components/care-card#quick-start-examples) in your app.
737
738:wrench: **Fixes**
739
740- Header - Removed icon includes from nunjucks macro and added the SVG's inline ([PR 276](https://github.com/nhsuk/nhsuk-frontend/pull/276))
741
742- Footer - Removed icon includes from nunjucks macro and added the SVG's inline ([PR 272](https://github.com/nhsuk/nhsuk-frontend/pull/272))
743
744## 0.3.0 (Prerelease) - 3 December 2018
745
746:boom: **Breaking changes**
747
748- Footer - Nunjucks macro arguments no longer contains `secondaryLinks` only `primaryLinks` ([PR 208](https://github.com/nhsuk/nhsuk-frontend/pull/208))
749
750 Use the latest [Footer nunjucks macro arguments](https://github.com/nhsuk/nhsuk-frontend/tree/master/packages/components/footer#nunjucks-macro) and [Footer HTML markup](https://github.com/nhsuk/nhsuk-frontend/tree/master/packages/components/footer#html-markup) in your app.
751
752- List panel - Put each list panel in a list item ([PR 262](https://github.com/nhsuk/nhsuk-frontend/pull/262))
753
754 Use the latest [List panel nunjucks macro arguments](https://github.com/nhsuk/nhsuk-frontend/tree/master/packages/components/list-panel#nunjucks-macro) and [List panel HTML markup](https://github.com/nhsuk/nhsuk-frontend/tree/master/packages/components/list-panel#html-markup)
755
756- Pagination - Update pagination markup and styling ([PR 263](https://github.com/nhsuk/nhsuk-frontend/pull/263))
757
758 Use the latest [Pagination nunjucks macro arguments](https://github.com/nhsuk/nhsuk-frontend/tree/master/packages/components/pagination#nunjucks-macro) and [Pagination HTML markup](https://github.com/nhsuk/nhsuk-frontend/tree/master/packages/components/pagination#html-markup)
759
760:new: **New features**
761
762- Form elements - All form elements have now been added to NHS.UK frontend. Including a new transactional header and footer. ([PR 208](https://github.com/nhsuk/nhsuk-frontend/pull/208))
763
764- Footer - The footer has had a visual redesign. ([PR 208](https://github.com/nhsuk/nhsuk-frontend/pull/208))
765
766## 0.2.1 (Prerelease) - 27 November 2018
767
768:wrench: **Fixes**
769
770- Header &amp; Footer - Remove NHS logo SVG nunjucks include ([PR 256](https://github.com/nhsuk/nhsuk-frontend/pull/256))
771
772## 0.2.0 (Prerelease) - 27 November 2018
773
774:boom: **Breaking changes**
775
776- Breadcrumb - Refactor breadcrumb SVG icons to background images. ([PR 246](https://github.com/nhsuk/nhsuk-frontend/pull/246))
777
778 Use the latest [Breadcrumb HTML markup](https://github.com/nhsuk/nhsuk-frontend/tree/master/packages/components/breadcrumb#html-markup) in your app.
779
780- Care card - Rename care cards to non-urgent, urgent and immediate. ([PR 252](https://github.com/nhsuk/nhsuk-frontend/pull/252))
781
782 Use the latest [Care card HTML markup](https://github.com/nhsuk/nhsuk-frontend/tree/master/packages/components/care-card#quick-start-examples) in your app.
783
784- Do &amp; don't list - Rename check list to tick, update Nunjucks parameters. ([PR 248](https://github.com/nhsuk/nhsuk-frontend/pull/248))
785
786 Use the latest [Do & don't list HTML markup](https://github.com/nhsuk/nhsuk-frontend/tree/master/packages/components/do-dont-list#html-markup) in your app.
787
788:wrench: **Fixes**
789
790- Action link - Add argument to the nunjucks macro allow action link to open in new window ([PR 245](https://github.com/nhsuk/nhsuk-frontend/pull/245))
791- Contents list - Fix MacOS VoiceOver issue for accessibility ([PR 245](https://github.com/nhsuk/nhsuk-frontend/pull/245))
792
793## 0.1.6 (Prerelease) - 22 November 2018
794
795:wrench: **Fixes**
796
797- Release 0.1.5 was missing the `nhsuk.min.js` within the packages folder for npm. It is now included.
798
799## 0.1.5 (Prerelease) - 22 November 2018
800
801:wrench: **Fixes**
802
803- Update skip link documentation, template and js ([PR 204](https://github.com/nhsuk/nhsuk-frontend/pull/204))
804- Fixes rogue markup and helps the page validate ([PR 216](https://github.com/nhsuk/nhsuk-frontend/pull/216))
805- List panel fixes ([PR 227](https://github.com/nhsuk/nhsuk-frontend/pull/227))
806- Add underline when focus on main navigation items ([PR 233](https://github.com/nhsuk/nhsuk-frontend/pull/233))
807- Tidy up SVG icons ([PR 235](https://github.com/nhsuk/nhsuk-frontend/pull/235))
808- Expander SVG background image base64 ([PR 236](https://github.com/nhsuk/nhsuk-frontend/pull/236))
809- A-Z navigation fixes ([PR 240](https://github.com/nhsuk/nhsuk-frontend/pull/240))
810
811## 0.1.4 (Prerelease) - 13 November 2018
812
813:tada: **Initial release of the NHS.UK frontend**
814
815- This release includes all the content page components and the first
816 installable npm package.
817
818
\No newline at end of file