Skip to content

Commit 824c17f

Browse files
author
Vanita Barrett
committed
Add to changelog
1 parent add5491 commit 824c17f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ You can now use the `govuk-!-text-align-left`, `govuk-!-text-align-centre` and `
1010

1111
This was added in [pull request #2368: Add text align override classes](https://github.com/alphagov/govuk-frontend/pull/2368).
1212

13+
#### Define negative spacing using the `govuk-spacing` function
14+
15+
You can now pass the negative equivalent of a point from the spacing scale to the `govuk-spacing` function to get negative spacing.
16+
17+
For example, `govuk-spacing(1)` returns `5px`, and `govuk-spacing(-1)` returns `-5px`.
18+
19+
This was added in [pull request #2367: Allow govuk-spacing to output negative spacing](https://github.com/alphagov/govuk-frontend/pull/2367).
20+
1321
### Fixes
1422

1523
- [#2366: Fix panel text overflowing when zoomed in on mobile #2366](https://github.com/alphagov/govuk-frontend/pull/2366)

0 commit comments

Comments
 (0)