Skip to content

GOV.UK Frontend v3.14.0

Compare
Choose a tag to compare
@vanitabarrett vanitabarrett released this 04 Oct 14:39
· 5725 commits to main since this release
8feaca8

New features

Set text alignment with override classes

You can now use the govuk-!-text-align-left, govuk-!-text-align-centre and govuk-!-text-align-right CSS classes to set text alignment on elements.

This was added in pull request #2368: Add text-align override classes. Thanks to Ed Horsford for reporting this issue.

Define negative spacing using the govuk-spacing function

You can now pass the negative equivalent of a point from the spacing scale to the govuk-spacing function to get negative spacing.

For example, govuk-spacing(1) returns 5px, and govuk-spacing(-1) returns -5px.

This was added in pull request #2367: Allow govuk-spacing to output negative spacing. Thanks to Chris Hill-Scott for reporting this issue.

Fixes