Skip to content

Commit c4209ed

Browse files
committed
Add changelog
1 parent cef6e37 commit c4209ed

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,27 @@ We've rewritten the internals of the `nhsuk-media-query` mixin to make use of th
187187

188188
This was added in [pull request #1961: Port Sass media query functions from GOV.UK Frontend and remove `sass-mq` dependency](https://github.com/nhsuk/nhsuk-frontend/pull/1961).
189189

190+
#### Add compact mode for tables
191+
192+
You can now reduce the vertical padding of table cells by setting `compact: true` on the tables component.
193+
194+
```njk
195+
{{ table({
196+
caption: "Childhood vaccination coverage",
197+
compact: true,
198+
head: [
199+
{ text: "Nation" },
200+
{ text: "MMR" }
201+
],
202+
rows: [
203+
[{ text: "England" }, { text: "92.8%" }],
204+
[{ text: "Northern Ireland" }, { text: "94.6%" }]
205+
]
206+
}) }}
207+
```
208+
209+
If you are not using Nunjucks macros, add the `nhsuk-table--compact` class to your table, or `nhsuk-table-responsive--compact` to a responsive table.
210+
190211
### :wastebasket: **Deprecated features**
191212

192213
#### Rename checkboxes "none" options

0 commit comments

Comments
 (0)