Skip to content

Releases: alphagov/govuk_elements

v2.1.1

17 Nov 09:53
Compare
Choose a tag to compare
  • Remove rounded corners on form inputs elements and textareas in iOS (PR #342)
  • Fix focus outline on form fields in Chrome / Safari (PR #346)
  • Updates the contribution guidelines (PR #339)
  • Recommend .visually-hidden over .visuallyhidden (PR #341)

v2.1.0

25 Oct 13:27
Compare
Choose a tag to compare
  • 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

25 Aug 11:51
Compare
Choose a tag to compare

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

05 Aug 11:58
Compare
Choose a tag to compare
  • Bump govuk frontend toolkit to 4.14.4 (PR #278)
  • Add a .column-full class (PR #270)
  • Add a file upload example (PR #268)
  • Remove the blue outline from the main content area (PR #265)
  • Fix legend text wrapping in IE (PR #248)

Adjust form element spacing to be more consistent

06 Jun 10:10
Compare
Choose a tag to compare
  • Consistent spacing underneath block labels and toggled content (PR #229)
  • Remove underlines from abbreviations in Firefox (PR #241)

v1.2.0

26 May 13:10
Compare
Choose a tag to compare

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

18 Apr 09:19
Compare
Choose a tag to compare

1.1.4

  • Fix issue #197, toggled content not displaying, PR (#198)
    • Instead of using show() and hide(), add and remove the .js-hidden class
    • The govuk_template sets .js-hidden, remove duplicate in helpers.scss

Use GOV.UK lint gem for SCSS linting, remove invalid ARIA role

18 Apr 09:21
Compare
Choose a tag to compare

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

26 Apr 11:15
Compare
Choose a tag to compare
  • 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)

Release v1.1.1

26 Apr 11:16
Compare
Choose a tag to compare

1.1.1

  • Update package json to publish govuk-elements-sass (#156)
  • Bump govuk template to 0.16.1 (#160)