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
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,24 @@
2
2
3
3
## Unreleased
4
4
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
+
5
23
:wastebasket:**Deprecated features**
6
24
7
25
#### Add nhsuk namespace to Sass mixins and functions
0 commit comments