Skip to content

Commit c0bbc8f

Browse files
Merge pull request #1302 from nhsuk/font-size-changelog
Improve changelog entry for `nhsuk-font-size()` Sass mixin
2 parents 0647e2c + 6f3fcba commit c0bbc8f

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

CHANGELOG.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,23 @@ If you're using the `grid-width()` Sass mixin, you must replace it with the `nhs
162162

163163
If you're using the `govuk-main-wrapper()`, `govuk-main-wrapper--l()` or `govuk-main-wrapper--s()` Sass mixins, you must replace them with the `.nhsuk-main-wrapper`, `.nhsuk-main-wrapper--l` and `.nhsuk-main-wrapper--s` classes in your HTML.
164164

165-
#### Replace Sass mixin `nhsuk-typography-responsive` with `nhsuk-font-size`
165+
#### Replace Sass mixin `nhsuk-typography-responsive()` with `nhsuk-font-size()`
166166

167-
We've renamed the Sass mixin `nhsuk-typography-responsive` to `nhsuk-font-size` and have deprecated `nhsuk-typography-responsive` to better communicate its intended use.
167+
We've renamed the Sass mixin `nhsuk-typography-responsive()` to `nhsuk-font-size()` and have deprecated `nhsuk-typography-responsive()`. This better communicates its intended purpose and aligns with `nhsuk-font()` parameters.
168168

169-
You can still use `nhsuk-typography-responsive`, but we'll remove it in a future breaking release.
169+
Before:
170+
171+
```scss
172+
@include nhsuk-typography-responsive(26, $override-line-height: 1.2);
173+
```
174+
175+
After:
176+
177+
```scss
178+
@include nhsuk-font-size(26, $line-height: 1.2);
179+
```
180+
181+
You can still use `nhsuk-typography-responsive()`, but we'll remove it in a future breaking release.
170182

171183
#### Updated Sass mixin, function and variable namespace
172184

0 commit comments

Comments
 (0)