GOV.UK Frontend v4.5.0
New features
Use summary cards to visually separate multiple summary lists on a single page
You can now use the summary card. This new variant of the Summary list component can help you:
- design and build pages with multiple summary lists
- show visual dividers between summary lists
- allow users to apply actions to entire lists
This was added in pull request #2931: Add summary card enhancement to summary list.
Search within accordion content on supporting browsers
We've updated the Accordion component to use the new hidden="until-found"
attribute value.
This allows the browser's native 'find in page' functionality to search within and automatically open sections of the accordion. Currently, this functionality is only supported by recent versions of Google Chrome, Microsoft Edge and Samsung Internet.
This was added in pull requests:
- #3053: Enhance the Accordion component with
hidden='until-found'
- #3095: Hide Accordion content (again) during
.js-enabled
page load
Source maps for precompiled files
You can now use source maps to help identify errors and console messages from GOV.UK Frontend precompiled files.
This was added in pull request #3023: Add source maps to compiled JavaScript and CSS.
Fixes
We've fixed errors in IE8 caused by updates to our precompiled JavaScript. The issue prevented some polyfills from running, but was limited to the release-v4.4.1.zip
and release-v4.4.0.zip
assets on GitHub releases:
- #3137: Enable UglifyJS compatibility workarounds
- #3013: Swap JavaScript minifier from UglifyJS to terser
We've made fixes to GOV.UK Frontend in the following pull requests:
- #2998: Refactor back link and breadcrumb chevrons to use ems
- #3021: Change colour for current page link in the header to improve contrast when printing - thanks to @MalcolmVonMoJ for the contribution
- #3094: Fix Accordion margin/padding inconsistencies
- #3112: Remove unused
classList
polyfill from header component JavaScript - #3150: Add missing
Event
polyfill to accordion component JavaScript - #3156: Correct the closing double quotes in pagination Nunjucks - thanks to @JoPintoPaul for the contribution
- #3199: Fix Sass rounding issues with width of grid columns