Skip to content

Commit 63e1bbd

Browse files
Merge pull request #1293 from nhsuk/nhsuk-spacing
2 parents da49a8c + 6cac18e commit 63e1bbd

File tree

4 files changed

+509
-6
lines changed

4 files changed

+509
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
:new: **New features**
66

7+
#### Define negative spacing using the `nhsuk-spacing()` function
8+
9+
You can now pass the negative equivalent of a point from the typography scale to the `nhsuk-spacing()` function to get negative spacing.
10+
11+
For example, `nhsuk-spacing(1)` returns `4px`, and `nhsuk-spacing(-1)` returns `-4px`.
12+
13+
This was added in [pull request #1293: Allow `nhsuk-spacing()` to output negative spacing](https://github.com/nhsuk/nhsuk-frontend/pull/1293).
14+
715
#### Support for Sass modules
816

917
We’ve updated our Sass files to use the [Sass module system](https://sass-lang.com/blog/the-module-system-is-launched/).

0 commit comments

Comments
 (0)