A form builder for Ruby on Rails that’s compatible with the GOV.UK Design System.
MIT License
Bot releases are visible (Hide)
Published by peteryates 6 months ago
Published by peteryates 6 months ago
hidden
attribute. Thanks to @PaulDoyle-DEFRA for reporting this and to @colinrotherham for diagnosing the problem #496Published by peteryates 6 months ago
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
) #493Published by peteryates 7 months ago
#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#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. #488Published by peteryates 8 months ago
Published by peteryates 8 months ago
belongs_to
presence validation #468Published by peteryates 8 months ago
See closed pull requests for changes, release notes will be added to v5.1.0.
Published by peteryates 11 months ago
Published by peteryates about 1 year ago
data-aria-controls
in addition to aria-controls
. Thank you @sobakasu #440Published by peteryates over 1 year ago
Published by peteryates over 1 year ago
class:
thanks to html-attributes-utils' clever merging #409extra_letter_spacing
to text inputs which is useful when asking for long complex codes or IDs #424classes: ...
parameters with class: ...
Published by peteryates over 1 year ago
Published by peteryates over 1 year ago
Preparing for the upcoming version 4.5.0 of GOV.UK frontend
Published by peteryates almost 2 years ago
Published by peteryates almost 2 years ago
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" }
<label for="model-details-field" class="special-class">Some details</label>
<label for="model-details-field" class="govuk-label special-class">Some details</label>
Published by peteryates about 2 years ago
rouge
, sass
and rubocop-govuk
#377 #378 #379Published by peteryates about 2 years ago
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 #376LICENCE
45bf9257Published by peteryates over 2 years ago
libsass
to dart-sass
#367Published by peteryates over 2 years ago
aria-live
attribute from the text area #364