Releases: x-govuk/govuk-form-builder
Releases · x-govuk/govuk-form-builder
Version 0.9.8
- Allow date inputs to be rendered without the day part. This allows for less-exact dates, such as graduation dates, to be captured. Internally Rails will assign
01
to the missing part. #56 #57 - Some minor bits of tidying up including silencing NPM output when building the guide and removing unused assets
Version 0.9.7
Version 0.9.6
Version 0.9.5
- Remove Rails as a dependency, only require the parts that are absolutely required (Action View, Active Model and Active Support) #40
- Separate out text input fields into separate classes #41
- Add error classes to the select input #42
- Fix a bug where on the
govuk_collection_check_boxes
andgovuk_collection_radio_buttons
methods, when errors were present the error field label was being applied to all labels instead of just the first one #43
Version 0.9.4
- Remove the Rails 6.0.0 requirement, make the Rails requirement allow version 5.2.3 or later
- Make Travis test against multiple versions of Rails, currently 5.2.3 and 6.0.0
Version 0.9.3
- A full guide has been created to accompany the project. It is written in Nanoc and loads the form builder to produce all of the example code contained within it #25
- More accessible injectable content. When blocks of arbitrary HTML are passed into form helpers the contents are wrapped in a
<div>
tag which is automatically referenced by the element'saria-describedby
attribute. This doesn't affect how they look but will make the contents more-discoverable to people using assistive technologies like screen readers #32 - Bold labels for radio buttons. #31
- Support for
- File upload fields
- Improved display of character limit hints on text areas #22
- Plenty of refactoring, optimisation and small display/formatting fixes
Version 0.9.2
- Improve the display of the textarea character count by removing the limit text, now only the "You have X characters remaining" text shows.
- Fix a bug where when errors were present the corresponding label wasn't properly associated with the input
Version 0.9.1
Fixes a bug where a missing govuk-
prefix prevented the textarea character counter from working
v0.9.0
This is the first beta for 1.0.0
New features included in this release:
Version 0.7.10
This release:
- improves the linking between the
#govuk_error_summary
list items and form elements, in particular it- links errors on regular inputs directly to the corresponding
input
element - links errors on text areas directly to the corresponding
textarea
element - links errors on select boxes directly to the corresponding
select
element - links errors on file inputs directly to the corresponding
input
element - links errors on date fields to the date's day
input
element - links errors on collection radio buttons to the first radio
input
- links errors on collection check boxes to the first checkbox
input
- provides a mechanism to mark the first checkbox or radio in the checkbox/radio fieldset helpers as being the target for error links
- links errors on regular inputs directly to the corresponding
- Adds
#govuk_file_field
- Adds support for labels as headings
- Adds Travis and CodeClimate integrations
- Plenty of smaller fixes, refactorings and tidying