Skip to content

Version 3.2.0

Compare
Choose a tag to compare
@peteryates peteryates released this 10 Nov 20:39
· 266 commits to main since this release
7b20630
  • 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>