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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+107Lines changed: 107 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,57 @@ This was added in [pull request #1685: Add card enhancement to summary list](htt
65
65
66
66
### :wastebasket:**Deprecated features**
67
67
68
+
#### Rename Nunjucks macro options for images
69
+
70
+
For consistency with other components, Nunjucks macro options for images have changed. The previous names are deprecated and will be removed in a future release.
71
+
72
+
If you're using the `card` Nunjucks macro with the `imgURL` or `imgALT` options in your service, you should:
73
+
74
+
- replace the `imgURL` option with the nested `image.src` option
75
+
- replace the `imgALT` option with the nested `image.alt` option
- imgALT: "Illustration showing icons, design system components and a terminal app. Each one follows a dotted line into a laptop to become a prototype.",
alt: "Close-up of a person's tummy showing a number of creases in the skin under their belly button. Shown on light brown skin.",
110
+
- caption: "Stretch marks can be pink, red, brown, black, silver or purple. They usually start off darker and fade over time."
111
+
+ caption: {
112
+
+ text: "Stretch marks can be pink, red, brown, black, silver or purple. They usually start off darker and fade over time."
113
+
+ }
114
+
}) }}
115
+
```
116
+
117
+
This change was introduced in [pull request #1763: Review Nunjucks params for header search and images](https://github.com/nhsuk/nhsuk-frontend/pull/1763).
118
+
68
119
#### Rename input prefix and suffix HTML class
69
120
70
121
HTML markup for the input component has been updated to align `nhsuk-input-wrapper` with other wrapping classes such as `nhsuk-main-wrapper` and `nhsuk-label-wrapper`.
@@ -116,6 +167,62 @@ This change was introduced in [pull request #1749: Remove font files for unsuppo
116
167
117
168
### :recycle:**Changes**
118
169
170
+
#### Update the HTML for header search
171
+
172
+
For consistency with header navigation and account, we’ve added new Nunjucks macro options:
173
+
174
+
- Header `search.attributes` option
175
+
- Header `search.classes` option
176
+
- Header `search.method` option
177
+
178
+
We've also updated the HTML for the header search to use [an inline smaller button](https://service-manual.nhs.uk/design-system/components/buttons#smaller-buttons) from [NHS.UK frontend v10.2.0](https://github.com/nhsuk/nhsuk-frontend/releases/tag/v10.2.0).
179
+
180
+
If you are not using Nunjucks macros, update your HTML markup using the [header examples in the NHS digital service manual](https://service-manual.nhs.uk/design-system/components/header) as follows:
181
+
182
+
- add the `novalidate` boolean attribute to search form element
183
+
- add the `novalidate` boolean attribute to account item forms
Support for header search HTML without `nhsuk-form-group` and `nhsuk-input-wrapper` wrappers is deprecated and will be removed in a future release.
223
+
224
+
This change was introduced in [pull request #1763: Review Nunjucks params for header search and images](https://github.com/nhsuk/nhsuk-frontend/pull/1763).
225
+
119
226
#### Update the HTML for responsive table cell content
120
227
121
228
We've updated the HTML for the responsive table component to wrap HTML content within `<span>` elements.
0 commit comments