GOV.UK Frontend v3.14.0
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
- #2366: Prevent panel text overflowing when zoomed in on mobile - thanks to Phil Sherry for reporting this issue.