Releases: UKHomeOffice/design-system
Releases · UKHomeOffice/design-system
New components and better component tests
Provides better support for component testing with react-testing-library.
Note: You should also update NotGovUK packages to ^0.7.2
(with pnpm -r up '@not-govuk/*@^0.7.2'
)
Also:
- We now run on Node.js v18 by default.
BREAKING:
- Enzyme has been removed. You will need to migrate your tests to react-testing-library.
Potentially BREAKING changes:
- govuk-frontend updated from v3 to v4
- restify updated from v8 to v11
- webpack-cli has been updated from v4 to v5.
- webpack-dev-middleware has been updated from v5 to v6.
- Applications now listen on IPv6 by default. See: daniel-ac-martin/NotGovUK#705
Functional testing, Readiness checks, and new logging options
BREAKING CHANGES:
- Node.js v12 is no-longer officially supported. Please update to Node.js v14.
New features:
- Functional testing support via Cypress.io
- Readiness checks
- Better CI/CD pipelines
- New logging options:
- Set the logging destination by passing a filename in
logger.destination
to the engine - Set the logging level by passing a string of the log level in
logger.level
to the engine
- Set the logging destination by passing a filename in
Note: You should also update NotGovUK packages to ^0.4.2
(with pnpm -r up '@not-govuk/*@^0.4.2'
)
Password protection
It's now possible to make prototypes private by password protecting them. To do so, you will need to set the following environment variables:
AUTH_METHOD
=basic
AUTH_USERNAME
(set to the username you want users to supply)AUTH_PASSWORD
(set to the password you want users to supply)PRIVACY
=true
(to apply the authentication to the entire website)
Official React-based release
v0.1.18 0.1.18
Version 2.0
System update
- the design of the system has been updated to use the new Home Office design language
- the structure of the system now matches the gov.uk design system
- the system is now built on the new govuk-frontend
New
- Enquiry form as a pattern
- Guidance images as a pattern
Style guide
Guidance on how to use the new design language added to system, with sections on typography, colour, header, footer and image use.
Updates
- added the missing components to the Sketch file resource to bring it up to date
- added CSS snippets to confirmation pages so they are easier to use
- add code for conditional reveal for radios and check boxes and made guidance for using clearer
Version 1.5.0
New
- Error pages as a pattern
- Identifying users (authentication) published as a pattern
Patterns updated
Version 1.4.0
New
- identifying users added as a draft
- status added as a component
- postcode lookup added as a pattern
- back link added as a component
- side tab added as a component
- leaving a service (sign out) added as a pattern
Patterns updated
- moved timeline from patterns to components
- updated icon component with guidance on using in your own prototype
Guidelines updated
- contribution guidelines updated to add emphasis to discussion, which is an important part of contributing to the system
Version 1.3.0
New
- upload(add) new files added as a pattern
- multiple-loops added as a pattern
Patterns updated
- tabs code improved and simplified
- timeline styling updated
- header phase banner guidance added to headers
Guidelines updated
- Improved the consistency of snippets used across components. Change language, improved code and added missing snippets.
- code fixes
- Adjusted some patterns to follow new format for guidance
Version 1.2.0
New
- check and confirm added as a pattern
Patterns updated
- sub-navigation moved to components
- tabs moved to components
- highlighted search matches moved to components
- confirmation pages moved to components
Guidelines updated
- updated pattern guidance is being test
Version 1.1.0
Patterns updated
- interruption card, service header and typography promoted to
recommended
- fix header to work on mobile
- update icons to
v1.2
- multi-select patterns added, this is still
experimental
- in-page tabs alternative in-page tab pattern added
Guidelines updated
- contributing guidance updated
- patterns divided into patterns and components
- general usability improvements to the system