Skip to content

Releases: x-govuk/govuk-form-builder

Version 5.1.0b1

16 Feb 16:10
e4722c5
Compare
Choose a tag to compare
Version 5.1.0b1 Pre-release
Pre-release

See closed pull requests for changes, release notes will be added to v5.1.0.

Version 5.0.0

08 Dec 16:57
349383e
Compare
Choose a tag to compare
  • Add support for Version GOV.UK frontend version 5.0.0

Version 4.1.1

25 Jul 14:31
68c1f54
Compare
Choose a tag to compare
  • Allow merging data-aria-controls in addition to aria-controls. Thank you @sobakasu #440

Version 4.1.0

13 Jul 11:29
ca9a45c
Compare
Choose a tag to compare

Version 4.0.0

26 Apr 22:30
15e152b
Compare
Choose a tag to compare
  • Upgrade to govuk-frontend 4.6.0
  • Remove classes argument from the few places it remained, custom classes can be set directly using class: thanks to html-attributes-utils' clever merging #409
  • Add support for extra_letter_spacing to text inputs which is useful when asking for long complex codes or IDs #424

Upgrade guide

  • Replace any classes: ... parameters with class: ...

Version 4.0.0rc1

13 Apr 10:01
bff2c01
Compare
Choose a tag to compare
v4.0.0rc1

Version 4.0.0rc1

Version 4.0.0a1

26 Jan 16:41
e7a038b
Compare
Choose a tag to compare
Version 4.0.0a1 Pre-release
Pre-release

Preparing for the upcoming version 4.5.0 of GOV.UK frontend

Version 3.3.0

16 Nov 16:48
36df372
Compare
Choose a tag to compare

Version 3.2.0

10 Nov 20:39
7b20630
Compare
Choose a tag to compare
  • Fix a bug where classes passed in via label/hint/legend/caption hashes replaced the defaults rather than appending to them #397 - thanks @cpjmcquillan
  • Update supported Rails versions to 6.1.7 and 7.0.4 #387
  • Update supported GOV.UK frontend version to 4.3.1 #387
  • Stop using official assets in the guide #388
  • Fix the exclusive checkboxes example in the guide #391 - thanks @c0nspiracy
  • Improve the contrast in code snippets in the guide and fix a minor display bug #392, #393
  • Add a CodeQL scanning workflow task f9379fb

Upgrade notes

When passing additional custom classes in via label, caption, hint or legend hashes they are added to the default class rather than overwriting it. This brings the behaviour in line with the rest of the library and considered a bug fix rather than a breaking change.

Given the input:

f.govuk_text_area :details, label: { text: "Some details", class: "special-class" }

Output before this release

<label for="model-details-field" class="special-class">Some details</label>

Output after this release

<label for="model-details-field" class="govuk-label special-class">Some details</label>

Version 3.1.2

15 Aug 16:01
84a22d5
Compare
Choose a tag to compare
  • Upgrade to GOV.UK Frontend 4.3.0 #380
  • Various small version updates including rouge, sass and rubocop-govuk #377 #378 #379