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
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,28 @@ An underline still appears when the user hovers their cursor over the link.
45
45
46
46
This was added in [pull request #1367: Updates to link styles and link hover states](https://github.com/nhsuk/nhsuk-frontend/pull/1367).
47
47
48
+
#### Add a 'headingLevel' Nunjucks option to labels and legends
49
+
50
+
The Nunjucks option `isPageHeading` sets whether the label or legend also acts as the heading for the page.
51
+
52
+
We've added a new `headingLevel` Nunjucks option as a replacement for `isPageHeading` when a custom heading level is necessary, for example when a label or legend acts as the heading for a landmark:
53
+
54
+
```patch
55
+
<aside>
56
+
{{ input({
57
+
label: {
58
+
text: 'Search',
59
+
- isPageHeading: true
60
+
+ headingLevel: 2
61
+
}
62
+
}) }}
63
+
64
+
<!-- // … -->
65
+
</aside>
66
+
```
67
+
68
+
This was added in [pull request #1670: Add label and legend `headingLevel` option](https://github.com/nhsuk/nhsuk-frontend/pull/1670).
0 commit comments