File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,50 @@ We've added a new `divider` Nunjucks option on select items to support this feat
9898
9999This was added in [ pull request #1701 : Support showing dividers between select options] ( https://github.com/nhsuk/nhsuk-frontend/pull/1701 ) .
100100
101+ #### Add a 'size' Nunjucks option to labels and legends
102+
103+ We've added a new ` size ` Nunjucks option to labels and legends as a simpler alternative to the size modifier classes. For example:
104+
105+ ``` patch
106+ {{ input({
107+ label: {
108+ text: 'What is your full name?',
109+ - classes: "nhsuk-label--l"
110+ + size: "l"
111+ }
112+ }) }}
113+ ```
114+
115+ ``` patch
116+ {{ radios({
117+ fieldset: {
118+ legend: {
119+ text: "How do you want to be contacted about this?",
120+ - classes: "nhsuk-fieldset__legend--l"
121+ + size: "l"
122+ }
123+ },
124+ items: []
125+ }}
126+ ```
127+
128+ This was added in [ pull request #1708 : Add label, legend and table caption size option] ( https://github.com/nhsuk/nhsuk-frontend/pull/1708 ) .
129+
130+ #### Add a 'captionSize' Nunjucks option to tables
131+
132+ We've added a new ` captionSize ` Nunjucks option to tables as a simpler alternative to the caption modifier classes. For example:
133+
134+ ``` patch
135+ {{ table({
136+ caption: "Skin symptoms and possible causes",
137+ - captionClasses: "nhsuk-table__caption--l",
138+ + captionSize: "l",
139+ rows: []
140+ }) }}
141+ ```
142+
143+ This was added in [ pull request #1708 : Add label, legend and table caption size option] ( https://github.com/nhsuk/nhsuk-frontend/pull/1708 ) .
144+
101145### :wastebasket : ** Deprecated features**
102146
103147#### Rename input wrapper HTML class
You can’t perform that action at this time.
0 commit comments