Skip to content

Commit 7d68acb

Browse files
Add changelog entry
1 parent 37667f7 commit 7d68acb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,34 @@
44

55
Note: This release was created from the `support/10.x` branch.
66

7+
#### Add a 'small' Nunjucks option to buttons, checkboxes and radios
8+
9+
We've added a new `small` Nunjucks option to buttons, checkboxes and radios as a simpler alternative to the small modifier class. For example:
10+
11+
```patch
12+
{{ button({
13+
text: "Save and continue",
14+
- classes: "nhsuk-button--small"
15+
+ small: true
16+
}) }}
17+
```
18+
19+
```patch
20+
{{ radios({
21+
fieldset: {
22+
legend: {
23+
text: "How do you want to be contacted about this?",
24+
size: "l"
25+
}
26+
},
27+
- classes: "nhsuk-radios--small",
28+
+ small: true,
29+
items: []
30+
}}
31+
```
32+
33+
This was added in [pull request #1801: Add button, checkboxes and radios small option](https://github.com/nhsuk/nhsuk-frontend/pull/1801).
34+
735
### :recycle: **Changes**
836

937
#### Hide the character count messages when unnecessary

0 commit comments

Comments
 (0)