File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 44
55Note: 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
You can’t perform that action at this time.
0 commit comments