v2.0.0
GOV.UK elements, release v2.0.0.
This release has the following breaking changes:
1. You will need to define a $path for your image assets
The images path override has been removed from the helpers partial.
This will result in broken background images where the file-url
function from the url-helpers partial in the frontend toolkit is used.
If you are not using Rails or Compass, then you will need to define $path
in your main application stylesheet. There is an example of setting $path
here.
2. External link icons have been deprecated
This version deprecates external link styles. If your service has user research that indicates that external links are useful (or not) then we’d like to hear from you either on Slack, digital-service-designers or opening an issue.
Also included in this release:
- The GOV.UK elements application has been updated to use v4.16.1 of the govuk frontend toolkit.
By including the ShimLinksWithButtonRole.js from the govuk_frontend_toolkit, space key activation is added to links with a role of button, you can see this in action on the buttons page.
- Using an
.error
class on a parent element will only apply a red border to the first child.form-control
. - The text for full-width buttons (seen at smaller screen widths) is centred
- All JS has been linted using StandardJS.