Skip to content

GOV.UK Frontend release 2.6.0

Compare
Choose a tag to compare
@aliuk2012 aliuk2012 released this 31 Jan 11:02
62d3de3

🎉 A new autocomplete attribute support added to text input, date input and textarea components (See the changelog for more details) 🎉

Thanks @andysellick, @bilbof, @dankmitchell and @edwardhorsford for contributing to this release.

Changelog

🆕 New features:

  • Enable autocomplete attributes for input components.

    You can now set the autocomplete attribute on input, date input and textarea components using the component macros.

    This was already possible to do with the attributes option but this change highlights the new WCAG 2.1 success criteria Identify Input Purpose which "is to ensure that the purpose of a form input collecting information about the user can be programmatically determined, so that user agents can extract and present this purpose to users using different modalities".

    See autofill for the full list of attributes that can be used.

    (PR #1146)

🔧 Fixes:

  • Include Accordion component in global namespace

    Accordion component was not exported and was therefore unavailable in global namespace

    (PR #1157)

  • Fix Checkboxes and Radios targeting selectors outside it's scope

    Thanks to @andysellick and @bilbof for helping us with this issue.

    (PR #1156)

  • Fixes styling of the accordion component when there is no JavaScript or it has been turned off

    Thanks @dankmitchell for reporting this issue (#1130)

    (PR #1149)

  • Remove hover state for accordion sections on mobile

    (PR #1148)

  • Fix container not being centered in IE8

    Since the header and the footer component use this container it also fixes centering for these components.

    (PR #1147)

  • Make gutters in the header consistent with the grid

    This means that the header will now line up with the grid.

    Thanks to @edwardhorsford for raising this issue.

    (PR #1144)