Skip to content

GOV.UK Frontend release v2.2.0

Compare
Choose a tag to compare
@kr8n3r kr8n3r released this 11 Oct 09:28
2d62068

2.2.0 (Feature release)

Contributions from the community include:

  • New character count component - thanks to @alex-ju (and @edwardhorsford for the original work)
  • Fix to radios component divider ('or') not being set to the correct colour - thanks to @kevindew
  • Accessibility improvement for link buttons so that they behave the same as buttons when accidentally dragged - thanks to @quis

Changelog

🆕 New features

Allow classes on table header and row cells

Optional classes attribute can now be used on table header and row cell item
in the Nunjucks macro

(PR #1015)

Add character count component

(PR #959)

🔧 Fixes

Apply max-width to the <select> element

The <select> element's width is governed by the widths of its <option>'s.

When the text in the options grows large, the element can grow to > 100% of the width of its container and break the layout.

(PR #1013)

Prevent product name in header from wrapping

Currently the product name in the header wraps when the space shrinks which doesn't look great.

Adding display: inline-table prevents that so that the product name as a whole drops to a new line when space is shrunk.

(PR #1007)

Set text colour for radios divider

(PR 1023)

Stop links styled as button from being dragged

Moving the mouse over a link while its button is depressed causes the
browser’s dragging behaviour to trigger (and prevents the click
event from firing). This is contrary to how actual <button> elements
work. This pull request makes the behaviour of links styled as buttons
consistent with that of buttons.

(PR #1020)