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
+45Lines changed: 45 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -559,6 +559,51 @@ We've changed the hover and active icon colour for the action link component so
559
559
560
560
This change was introduced in [pull request #1802: Change action link icon colour on hover and active](https://github.com/nhsuk/nhsuk-frontend/pull/1802).
561
561
562
+
## 10.5.2 - 8 June 2026
563
+
564
+
Note: This release was created from the `support/10.x` branch.
565
+
566
+
### :wastebasket:**Deprecated features**
567
+
568
+
#### Rename Sass mixins for font weights
569
+
570
+
We've renamed Sass mixins for font weights. You can still use the previous names but we'll remove them in a future breaking release.
571
+
572
+
If you use Sass and you've used the following Sass mixins:
573
+
574
+
- replace `nhsuk-typography-weight-normal` with `nhsuk-font-weight-normal`
575
+
- replace `nhsuk-typography-weight-bold` with `nhsuk-font-weight-bold`
576
+
577
+
```patch
578
+
.app-component {
579
+
display: block;
580
+
- @include nhsuk-typography-weight-bold;
581
+
+ @include nhsuk-font-weight-bold;
582
+
@include nhsuk-responsive-margin(4, "bottom");
583
+
}
584
+
```
585
+
586
+
The previous names are deprecated and will be removed in a future release.
587
+
588
+
This change was introduced in [pull request #1962: Add code and monospace font utilities](https://github.com/nhsuk/nhsuk-frontend/pull/1962).
589
+
590
+
### :wrench:**Fixes**
591
+
592
+
In [pull request #1962: Add code and monospace font utilities](https://github.com/nhsuk/nhsuk-frontend/pull/1962) we've added missing Sass mixins and HTML classes. You can now style codes and sequences (such as NHS numbers) by adding the `nhsuk-u-font-code` HTML class, or by including the Sass mixin for custom components:
593
+
594
+
```scss
595
+
.app-component__element {
596
+
@includenhsuk-font-code;
597
+
}
598
+
```
599
+
600
+
To render text with a monospace font you can add the `nhsuk-u-font-monospace` HTML class, or by including the corresponding `nhsuk-font-monospace` Sass mixin.
601
+
602
+
We've made fixes to NHS.UK frontend in the following pull requests:
603
+
604
+
-[#1964: Move details component link appearance to summary text](https://github.com/nhsuk/nhsuk-frontend/pull/1964)
605
+
-[#1965: Make sure icons always use current text colour etc](https://github.com/nhsuk/nhsuk-frontend/pull/1965)
606
+
562
607
## 10.5.1 - 3 June 2026
563
608
564
609
Note: This release was created from the `support/10.x` branch.
Copy file name to clipboardExpand all lines: packages/nhsuk-frontend-review/src/examples/typography.njk
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,9 @@
115
115
116
116
<h2>Typography with components</h2>
117
117
118
-
<pclass="nhsuk-u-font-weight-bold">This is a paragraph using nhsuk-u-font-weight-bold. Nam quis posuere nisl, eget vulputate eros. Duis non mollis mi. Aliquam pulvinar posuere elementum. Fusce tincidunt interdum mauris non pretium.</p>
118
+
<p>An NHS number is a 10 digit number, like <spanclass="nhsuk-u-font-code nhsuk-u-nowrap">999 123 4567</span>, using <code>nhsuk-u-font-code</code> and <code>nhsuk-u-nowrap</code>.</p>
119
+
120
+
<pclass="nhsuk-u-font-weight-bold">This is a paragraph using <code>nhsuk-u-font-weight-bold</code>. Nam quis posuere nisl, eget vulputate eros. Duis non mollis mi. Aliquam pulvinar posuere elementum. Fusce tincidunt interdum mauris non pretium.</p>
0 commit comments