Releases: ministryofjustice/moj-frontend
v4.0.1
v4.0.0
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:
- Ruby Sass (deprecated in April 2018)
- LibSass and Node Sass (deprecated in October 2020)
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
v3.6.3
v3.6.2
v3.6.1
v3.6.0
v3.5.0
v3.4.0
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