Skip to content

Commit 12e5fcd

Browse files
Add changelog entry
1 parent 157d393 commit 12e5fcd

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,28 @@ An underline still appears when the user hovers their cursor over the link.
4545

4646
This was added in [pull request #1367: Updates to link styles and link hover states](https://github.com/nhsuk/nhsuk-frontend/pull/1367).
4747

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).
69+
4870
### :wastebasket: **Deprecated features**
4971

5072
#### Rename Sass mixin for white link style

0 commit comments

Comments
 (0)