govuk-form-builder

A form builder for Ruby on Rails that’s compatible with the GOV.UK Design System.

MIT License

Downloads
694K
Stars
75

Bot releases are hidden (Show)

govuk-form-builder - Version 5.4.0 Latest Release

Published by peteryates 5 months ago

  • Support govuk-frontend 5.4.0 #501
govuk-form-builder - Version 5.3.3

Published by peteryates 6 months ago

  • Support govuk-frontend 5.3.1
govuk-form-builder - Version 5.3.2

Published by peteryates 6 months ago

  • Fix bug where password 'show' button is visible to users without JavaScript by adding the hidden attribute. Thanks to @PaulDoyle-DEFRA for reporting this and to @colinrotherham for diagnosing the problem #496
govuk-form-builder - Version 5.3.1

Published by peteryates 6 months ago

  • Allow the date segments to be configured. Changing these settings will allow people to optionally intercept Rails trying to cast the values into a Date and will allow non-date values to be redisplayed with appropriate errors and non-numeric values to optionally be converted (e.g., June to 6) #493
  • Various small version bumps #490, #491, #492
govuk-form-builder - Version 5.3.0

Published by peteryates 7 months ago

  • Upgrade to govuk-frontend version 5.3.0
    • Breaking change - the old #govuk_password_field implementation has been replaced and it now renders the new password input. If you use the old version proceed with caution and make sure everything still works. Thanks @edujackedu for help translating the guide page #481
    • the #govuk_text_area now doesn't wrap an extra <div> around the form group when used in conjunction with word/character limits. Instead the additional attributes are added to the form group itself. See the upstream PR for details. #488
  • Add branding to the radios divider div, thanks @benilovj for spotting and fixing this #484
govuk-form-builder - Version 5.2.0

Published by peteryates 8 months ago

  • Add support for govuk-frontend v5.2.0
govuk-form-builder - Version 5.1.0

Published by peteryates 8 months ago

  • Improve the navigation in the guide, huge thanks @paulrobertlloyd #458
  • Bump supported versions to include Rails 7.1 #475
  • Add warnings to the guide about belongs_to presence validation #468
  • Improve the documentation on adding hints to checkboxes, thanks @frankieroberto #467
govuk-form-builder - Version 5.1.0b1

Published by peteryates 8 months ago

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

govuk-form-builder - Version 5.0.0

Published by peteryates 11 months ago

  • Add support for Version GOV.UK frontend version 5.0.0
govuk-form-builder - Version 4.1.1

Published by peteryates about 1 year ago

  • Allow merging data-aria-controls in addition to aria-controls. Thank you @sobakasu #440
govuk-form-builder - Version 4.1.0

Published by peteryates over 1 year ago

  • Upgrade to GOV.UK frontend 4.7.0 #438
  • Switch branding to @x-govuk #434 - thank you @paulrobertlloyd
  • Add support for inverse buttons #427
  • Upgrade to latest versions of Ruby and Rails #439
govuk-form-builder - Version 4.0.0

Published by peteryates over 1 year ago

  • 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: ...
govuk-form-builder - Version 4.0.0rc1

Published by peteryates over 1 year ago

govuk-form-builder - Version 4.0.0a1

Published by peteryates over 1 year ago

Preparing for the upcoming version 4.5.0 of GOV.UK frontend

govuk-form-builder - Version 3.3.0

Published by peteryates almost 2 years ago

govuk-form-builder - Version 3.2.0

Published by peteryates almost 2 years ago

  • 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 f9379fb2f

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>
govuk-form-builder - Version 3.1.2

Published by peteryates about 2 years ago

  • Upgrade to GOV.UK Frontend 4.3.0 #380
  • Various small version updates including rouge, sass and rubocop-govuk #377 #378 #379
govuk-form-builder - Version 3.1.1

Published by peteryates about 2 years ago

  • Ensure govuk_date_field works correctly when omit_day: true. Rails ignores the field when the day segment parameter is missing, this change follows the Rails convention and adds a hidden day field. Thank you @thomasleese for diagnosing and fixing this #376
  • Add a configuration flag that disables the auto-bolding of radio button labels when hints are present. The form builder's default behaviour will remain the same (it matches an older version of the design system's guidance that suggested doing this which was removed in 2020) to avoid breakages but may be toggled at the next major release. Thanks @paulrobertlloyd for suggesting this #373
  • Fix the copyright information in the LICENCE 45bf9257
govuk-form-builder - Version 3.1.0

Published by peteryates over 2 years ago

  • Support GOV.UK Design System 4.1.0 #371
  • Switch the guide from libsass to dart-sass #367
  • Upgrade to html-attributes-utils version 0.9.2 #370
govuk-form-builder - Version 3.0.3

Published by peteryates over 2 years ago

  • Support GOV.UK Design System 4.1.0
  • Increase supported Ruby version to 3.1.2
  • Increase supported Rails version to 7.0.3
  • Remove patterns and wildcards from the date inputs #363
  • Switch to from deep_merge gem to html-attributes-utils to combining HTML attributes #357
  • Remove aria-live attribute from the text area #364
  • Various minor dependency updates
Package Rankings
Top 3.89% on Rubygems.org
Badges
Extracted from project README
Tests Maintainability Gem version Gem Test Coverage GitHub license GOV.UK Design System version Rails Ruby Netlify Status
Related Projects