You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrade to NHS.UK frontend v10.3, prepare beta release (#323)
* Update to NHS.UK frontend v10.3.1
* Update snapshots with duplicate class now removed
* Rename input prefix and suffix HTML class
* Update the HTML for header search
* Update the HTML for responsive table cell content
* Rename checkbox and radio button 'aria-controls' attributes
* Update the HTML for tables as a panel
* Add support for `size` on headings
* Add support for `size` on body text
* Add support for `visuallyHiddenText` to render React elements
* Add support for `visuallyHiddenText` prop on headings
* Add support for `visuallyHiddenText` prop on back link
* Only use boolean props for card types (excluding care cards)
* Update the HTML for warning callouts
* Add interruption panel variant
* Add file upload component
* Enable NHS.UK frontend i18n support
* Formatting
* Remove `Table.Panel` component
* Simplify summary list component to avoid actions wrapper
* Simplify card component to avoid unnecessary content wrapper
* Add more card examples
* Set up story backgrounds and column widths
* Add support for card actions
* Add more card examples
* Add support for `reverse` prop in link components
* Move heading level component into typography
* Rename heading level to `<Heading>` with h1 default
* Update migration guide
* Allow checkbox item `exclusiveGroup` to be set manually
* Update checkbox examples
* Update migration guide
* Formatting
* Fix footer meta to omit heading and list without items
* Update footer component to support headings and content
* Update footer examples
* Add support for `visuallyHiddenText` to render React elements (more)
* Update FormGroup component to support multiple children
* Prevent text input `beforeInput` and `afterInput` from overriding prefix/suffix
* Fix "Error: Functions cannot be passed directly to Client Components…"
* Remove unnecessary context from card component
* Add changelog entry
* Fix typo
* Update package version to v6.0.0-beta.5
@@ -18,7 +18,15 @@ The updated [header](https://service-manual.nhs.uk/design-system/components/head
18
18
- update NHS logo in the header to have higher contrast when focused
19
19
- refactor CSS classes and BEM naming, use hidden attributes instead of modifier classes, use generic search element
20
20
21
-
#### Use the password input component to help users accessibly enter passwords
21
+
#### New file upload component
22
+
23
+
We've added a new [file upload](https://service-manual.nhs.uk/design-system/components/file-upload) component from NHS.UK frontend v10.3 which:
24
+
25
+
- makes the file inputs easier to use for drag and drop
26
+
- allows the text of the component to be translated
27
+
- fixes accessibility issues for users of Dragon, a speech recognition software
28
+
29
+
#### New password input component to help users accessibly enter passwords
22
30
23
31
The [password input](https://service-manual.nhs.uk/design-system/components/password-input) component from NHS.UK frontend v10.2 allows users to choose:
24
32
@@ -48,7 +56,7 @@ You can now add inline buttons to text inputs and select menus using the `formGr
48
56
```jsx
49
57
<TextInput
50
58
formGroupProps={{
51
-
afterInput: () => (
59
+
afterInput: (
52
60
<Button secondary small>
53
61
Search
54
62
</Button>
@@ -88,6 +96,18 @@ We've added a new `<Select.Divider />` child component for select menus to suppo
88
96
</Select>
89
97
```
90
98
99
+
#### Use cards to visually separate multiple summary lists on a single page
100
+
101
+
You can now wrap a [card](https://service-manual.nhs.uk/design-system/components/cards) around [summary lists](https://service-manual.nhs.uk/design-system/components/summary-list) to help you:
102
+
103
+
- design and build pages with multiple summary lists
104
+
- show visual dividers between summary lists
105
+
- allow users to apply actions to entire lists
106
+
107
+
### Reverse links
108
+
109
+
To align with NHS.UK frontend, we've updated the [action link](https://service-manual.nhs.uk/design-system/components/action-link), [back link](https://service-manual.nhs.uk/design-system/components/back-link) and [breadcrumbs](https://service-manual.nhs.uk/design-system/components/breadcrumbs) components to support the `reverse` prop for dark backgrounds.
110
+
91
111
### Numbered pagination component
92
112
93
113
The [pagination](https://service-manual.nhs.uk/design-system/components/pagination) component from NHS.UK frontend v10.1 has been updated to support numbered pagination:
@@ -115,7 +135,7 @@ The [notification banner](https://service-manual.nhs.uk/design-system/components
115
135
116
136
### Panel component
117
137
118
-
The [panel](https://service-manual.nhs.uk/design-system/components/panel) component from NHS.UK frontend v9.3.0 has been added:
138
+
The [panel](https://service-manual.nhs.uk/design-system/components/panel) component from NHS.UK frontend v9.3.0, and the [interruption panel variant](https://service-manual.nhs.uk/design-system/components/panel#interruption-panel) from NHS.UK frontend v10.3.0, have been added:
119
139
120
140
```jsx
121
141
<Panel>
@@ -130,32 +150,32 @@ This replaces the [list panel component](#list-panel) which was removed in NHS.U
130
150
131
151
The [summary list](https://service-manual.nhs.uk/design-system/components/summary-list) component now includes improvements from NHS.UK frontend v9.6.2:
132
152
133
-
- new props`noBorder` and `noActions` supported at `<SummaryList.Row>` level
153
+
- new prop`noBorder` supported at `<SummaryList.Row>` level
134
154
- new child component `<SummaryList.Action>` for row actions
The [character count](https://service-manual.nhs.uk/design-system/components/character-count), [file upload](https://service-manual.nhs.uk/design-system/components/file-upload) and [password input](https://service-manual.nhs.uk/design-system/components/password-input) components now support the `i18n` prop for [NHS.UK frontend localisation](https://github.com/nhsuk/nhsuk-frontend/blob/main/docs/configuration/localisation.md).
178
+
159
179
### Support for React Server Components (RSC)
160
180
161
181
All components have been tested as React Server Components (RSC) but due to [multipart namespace component limitations](https://ivicabatinic.from.hr/posts/multipart-namespace-components-addressing-rsc-and-dot-notation-issues) an alternative syntax (without dot notation) can be used as a workaround:
@@ -243,6 +263,18 @@ If you are using the `headingLevel` prop you will need to update any uppercase v
If you are using the `HeadingLevel` component you must rename it to `Heading` where the `size` and `visuallyHiddenText` props now supported:
269
+
270
+
```patch
271
+
- <HeadingLevel className="nhsuk-heading-m">
272
+
+ <Heading size="m">
273
+
Example heading
274
+
- </HeadingLevel>
275
+
+ </Heading>
276
+
```
277
+
246
278
### Restore visually hidden text for accessibility
247
279
248
280
For accessibility reasons, it's no longer possible to pass `visuallyHiddenText: false` or override other hidden text for the following:
@@ -255,14 +287,44 @@ For accessibility reasons, it's no longer possible to pass `visuallyHiddenText:
255
287
256
288
Read about other [changes to meet WCAG 2.2](https://service-manual.nhs.uk/design-system/changes-to-design-system-wcag-2-2) on the design system in the NHS digital service manual.
257
289
258
-
### Check components that conditionally reveal content still work
290
+
### Check radios and checkboxes that conditionally reveal content still work
259
291
260
292
Previously, conditionally revealing content ([radios](https://service-manual.nhs.uk/design-system/components/radios#conditionally-revealing-content), [checkboxes](https://service-manual.nhs.uk/design-system/components/checkboxes#conditionally-revealing-content)) would not be rendered until their related input was checked.
261
293
262
294
To align with NHS.UK frontend, conditionally revealing content is now always rendered but remains hidden until revealed. Accessibility issues with missing `aria-controls`, `aria-describedby` or `aria-expanded` are now fixed.
263
295
264
296
You must check all form components, form validation and error handling that may not expect hidden conditionally revealing content in the HTML.
265
297
298
+
### Check checkboxes with exclusive behaviour still work
299
+
300
+
Previously, the [checkboxes component](https://service-manual.nhs.uk/design-system/components/checkboxes) incorrectly set the the `data-checkbox-exclusive-group` attribute on all items, even when no [option for "none"](https://service-manual.nhs.uk/design-system/components/checkboxes#none-option) was included.
301
+
302
+
To align with NHS.UK frontend, one or more exclusive groups are now supported using the `Checkboxes.Item` prop `exclusiveGroup`.
303
+
304
+
You must manually add the `exclusiveGroup` prop to all checkboxes in the same exclusive group. You do not need to do anything if your checkboxes share the same `name` attribute in the rendered HTML, as the exclusive group is determined automatically.
305
+
306
+
```patch
307
+
<Checkboxes legend="How do you want to be contacted about this?" name="colour">
To align with NHS.UK frontend, icons unused by components have been removed:
@@ -291,6 +353,30 @@ You must also make the following changes:
291
353
- replace `<LinkButton>` with `<Button href="/example">` to render HTML `<a>` elements
292
354
- remove the `debounceTimeout` prop when preventing double clicks
293
355
356
+
### Cards
357
+
358
+
To align with NHS.UK frontend, we've updated the [card component](https://service-manual.nhs.uk/design-system/components/card) to use boolean props for all supported card types. The existing `cardType` prop can now only be used to set care card variants.
359
+
360
+
```patch
361
+
- <Card cardType="clickable">
362
+
+ <Card clickable>
363
+
```
364
+
365
+
```patch
366
+
- <Card cardType="feature">
367
+
+ <Card feature>
368
+
```
369
+
370
+
```patch
371
+
- <Card cardType="primary">
372
+
+ <Card primary>
373
+
```
374
+
375
+
```patch
376
+
- <Card cardType="secondary">
377
+
+ <Card secondary>
378
+
```
379
+
294
380
### Character count
295
381
296
382
To align with NHS.UK frontend, the character count component automatically renders its own children (label, hint, error message etc) and associated ARIA attributes. We have removed `enum CharacterCountType` and you must make the following changes:
0 commit comments