Skip to content

Releases: ministryofjustice/moj-frontend

v4.0.1

11 Mar 14:53
Compare
Choose a tag to compare

4.0.1 (2025-03-11)

Bug Fixes

  • button menu: bring back optional --inline modifier (45a10fd)

v4.0.0

11 Mar 10:17
Compare
Choose a tag to compare

4.0.0 (2025-03-11)

Support for Sass modules

In this release we’ve updated our Sass files to use the Sass module system.

If you've already updated to Dart Sass this is not a breaking change and you do not need to do anything.

If you have an older complier, you need to update to Dart Sass to prevent breaking changes. This applies to the following compilers:

BREAKING CHANGES

  • Ruby Sass, LibSass and Node Sass are no longer supported

Bug Fixes

  • add ‘Alert’ to GOV.UK Prototype Kit (75e324d)
  • add ‘Date picker’ to GOV.UK Prototype Kit (cb4d306)
  • add ‘Multi file upload’ to GOV.UK Prototype Kit (6f1cc71)
  • alert: avoid Sass deprecated mixed-decls (d9db60d)
  • alert: fix line-height on smaller screens (#1202) (a13fac4)
  • button menu: item classes now only applied to the correct item (#1265) (423c61c), closes #969
  • ensure default [@font-face](https://github.com/font-face) can be excluded (afe5f72)
  • maintain require() compatibility for filters (b25ec12)
  • multi file upload: Remove spurious ; characters from html (#1200) (e5a1968)
  • support assetPath for header PNG fallbacks (686a878)

v3.7.0

26 Feb 09:13
Compare
Choose a tag to compare

3.7.0 (2025-02-26)

Bug Fixes

  • ensure Dart Sass file:// sources use relative paths (11db6df)

Features

v3.6.3

26 Feb 08:17
Compare
Choose a tag to compare

3.6.3 (2025-02-26)

Bug Fixes

  • ensure node_modules is added to Sass load paths (4c035f1)
  • ensure peerDependencies are installed (69c8572)

v3.6.2

25 Feb 14:52
Compare
Choose a tag to compare

3.6.2 (2025-02-25)

Bug Fixes

  • revert to $ for jQuery external global (c722f15)

v3.6.1

25 Feb 11:34
Compare
Choose a tag to compare

3.6.1 (2025-02-25)

Bug Fixes

  • typo in status label comment (7078172)

v3.6.0

25 Feb 08:08
Compare
Choose a tag to compare

3.6.0 (2025-02-25)

Bug Fixes

  • ignore build output from jest (7f85d64)
  • ignore test files from gulp watch (12494a3)

Features

  • default to ES module sources (adab275)
  • export to ES modules (8e8787a)
  • swap JavaScript minifier from UglifyJS to terser (a0e165a)

v3.5.0

25 Feb 07:52
Compare
Choose a tag to compare

3.5.0 (2025-02-25)

Features

v3.4.0

24 Feb 11:12
Compare
Choose a tag to compare

3.4.0 (2025-02-24)

New feature

Use the alert to present 1 of 4 messages to a user.

The documentation explains:

  • the new error alert (and how it differs from error validation)
  • the new dismiss functionality
  • comprehensive guidance on how to use it (and what not to do)
  • more examples

View the alert on the MoJ Design System documentation website.

If your service contains the banner

The alert replaces the MoJ Design System banner component, which has been archived.

You do not need to do anything immediately because this is not a breaking change.

The banner is no longer being supported so it’ll never get an accessibility update or bug fix. You need to switch all instances of it to the alert component to benefit from these types of improvements.

Sign up to get emails about the MoJ Design System

Bug Fixes

  • sortable table: improve sorting of strings with a number prefix (#1108) (b424743)

v3.3.1

09 Jan 14:22
Compare
Choose a tag to compare

3.3.1 (2025-01-09)

Bug Fixes