GOV.UK Frontend release v3.1.0
This release contains a few improvements and fixes that include accessibility improvements to the details component.
Thanks to @htmlandbacon and @andrew-mcgregor for their help with this release.
Changelog
New features
Add attributes to the fieldset on the date input component
You can now pass attributes to add to the fieldset on the date input component.
Pull request #1541: Allow date input fieldset attributes to be set. Thanks to andrew-mcgregor for raising this.
Add ARIA role to the fieldset component
You can now pass an ARIA role to the fieldset component.
Pull request #1541: Allow date input fieldset attributes to be set.
Add inputmode to the input component
You can now pass inputmode to the input component.
govukInput({
inputmode: 'email'
})
Fixes
- Pull request #1523: Improve accessibility of details component by polyfilling only where the native element is not available.
- Pull request #1512: Update components to only output items when they are defined.
- Pull request #1538: Simplify button types to avoid unnecessary type attribute.
- Pull request #1542: Only default two thirds/one-third layout when footer has two sections.