Skip to content

Commit 0d08138

Browse files
Add changelog entry
1 parent ced288e commit 0d08138

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
## Unreleased
44

5+
:new: **New features**
6+
7+
#### Use new override classes to apply static spacing
8+
9+
You can now use static spacing override classes to apply spacing from [the static spacing scale](https://service-manual.nhs.uk/design-system/styles/spacing#static-spacing) to elements of your design.
10+
11+
The new classes start with: `nhsuk-u-static` followed by either `margin-` or `padding-`, and then a spacing unit number.
12+
13+
To apply spacing in a single direction, include `left-`, `right-`, `top-`, or `bottom-` just before the spacing unit.
14+
15+
For example:
16+
17+
- `nhsuk-u-static-margin-9` will apply a 64px margin to all sides of the element at all screen sizes
18+
- `nhsuk-u-static-padding-right-5` will apply 32px of padding to the right side of the element at all screen sizes
19+
- `nhsuk-u-static-margin-0` will remove all margins at all screen sizes
20+
21+
This was added in [pull request #1163: Add static spacing override classes](https://github.com/nhsuk/nhsuk-frontend/pull/1163).
22+
523
:wastebasket: **Deprecated features**
624

725
#### Add nhsuk namespace to Sass mixins and functions

0 commit comments

Comments
 (0)