Releases: alphagov/govuk_elements
v2.1.1
v2.1.0
- Update govuk_frontend_toolkit to 5.0.0 and govuk_template to 0.19.0 (PR #333)
- Add a select box example (PR #303)
- Add bullet points describing use of disabled buttons (PR #304)
- Add reasoning for native over custom file inputs
- Clear floats on details elements (PR #328)
- Add a
.bold
utility class (PR #321) - Remove external link styles (PR #274)
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.
v1.2.2
Adjust form element spacing to be more consistent
v1.2.0
1.2.0
Things you need to know:
If you are using the GOV.UK elements _icons.scss
file, the path to the icons from the front end toolkit has changed.
These are no longer copied to a subfolder called /icons/
.
It is expected that the folder structure for assets is the same as that defined by the govuk_frontend_toolkit.
The url_helpers file has been uncommented in the list of files imported from the govuk_frontend_toolkit.
GOV.UK elements also defines $path, in url_helpers.scss. You may want to override this for your application.
If you're using <details>
, you'll need to include the _shame.scss
file to get the fix for the summary arrow in Firefox Nightly and Firefox Developer Edition.
Changes included in this release:
- Fix path for rails and node environments (PR #234)
- Import the govuk_frontend_toolkit url-helpers partial
- If image-url is not defined (if we are not in a Rails environment),
then set a path to /public/images
- Don't copy the govuk_frontend_toolkit's images into an icons folder
(PR #223) - Fix the summary arrow in recent Firefox (PR #227)
- Remove button padding overriding the govuk_frontend_toolkit (PR #230)
- Add MIT License (PR #236)
- Create latest release branch as an alias of the latest release (PR
#232) - Create new app to preview govuk elements sass releases (PR #219)
- Fix the skip link in Safari (PR #225)
Fix JS for togged content
Use GOV.UK lint gem for SCSS linting, remove invalid ARIA role
1.1.3
- Bump govuk frontend toolkit to 4.9.1 (PR #195)
- Use the GOV.UK lint gem for scss linting (PR #191)
- Use aria-describedby to associate a form hint with a form fields (PR #187)
- Bump govuk template to 0.17.0 (PR #186)
- Use 19px as the default font size for tabular data (PR #185)
- Remove invalid ARIA "breadcrumbs" role from the breadcrumb (PR #182)
- Copy base styles set by govuk template (PR #176)
Release v1.1.2
- Add missing 2/3 width grid wrappers to example pages (#173)
- Update max for date pattern to 2016 (#175)
- Fix warning for the npm engine field (#171)
- Bump the govuk frontend toolkit to 4.6.1, update the $link-hover-colour swatch. (#170)
- Remove 'files' from package.json and amend .npmignore (#169)
- Fix the breadcrumbs for the 'Icons and images' section (#168)
- Make error messages plural rather than using (s) (#167)