Bump govuk-frontend from 4.0.1 to 4.3.1
Bumps govuk-frontend from 4.0.1 to 4.3.1.
Release notes
Sourced from govuk-frontend's releases.
GOV.UK Frontend v4.3.1
Recommended changes
Replace deprecated
govuk-!-margin-staticandgovuk-!-padding-staticclassesWe've fixed an error in the naming convention of the static spacing override classes we'd introduced in v4.3.0. These classes should start with
govuk-!-static, and we've now deprecated the incorrect classes.If you're using the static spacing margin override classes, replace any classes starting with
govuk-!-margin-staticwithgovuk-!-static-margin. For example:govuk-!-margin-static-2would becomegovuk-!-static-margin-2.If you're using the static spacing padding override classes, replace any classes starting with
govuk-!-padding-staticwithgovuk-!-static-padding. For example:govuk-!-padding-static-2would becomegovuk-!-static-padding-2.We've deprecated the
govuk-!-margin-staticandgovuk-!-padding-staticclasses, and will remove them in a future major release.This change was introduced in [pull request #2770: Fix ordering of properties in static spacing override classes](alphagov/govuk-frontend#2770). Thanks to
@garrystewartfor reporting this issue.Fixes
We’ve made fixes to GOV.UK Frontend in the following pull requests:
GOV.UK Frontend v4.3.0
New features
Customise the Open Graph image URL without duplicate meta tags
You can now customise the Open Graph image URL included in the
headby setting theopengraphImageUrlNunjucks option.Also, the default Open Graph image URL meta tag will now only be included if you set the either
opengraphImageUrlorassetUrl.This was added in [pull request #2673: Allow Open Graph image URL to be customised](alphagov/govuk-frontend#2673).
Localise the content licence and copyright statements
When using the footer Nunjucks macro, you can now translate the text of the Open Government Licence (OGL) and Crown copyright statements using the
contentLicenceandcopyrightparameters.Visit The National Archives' documentation on OGL and Crown copyright for information on what you need to include in these statements.
This was added in [pull request #2702: Allow localisation of content licence and copyright notices in Footer](alphagov/govuk-frontend#2702).
Pass HTML directly into compatible components
If using the Nunjucks macros, you can now pass HTML content directly into compatible components using the Nunjucks call syntax. If HTML is provided through the call syntax, the nunjucks macro will ignore the HTML and text options.
Components updated to support this syntax are:
- Details
- Error summary (mapped to
descriptionHtmlparameter)- Inset text
... (truncated)
Changelog
Sourced from govuk-frontend's changelog.
4.3.1 (Patch release)
Recommended changes
Replace deprecated
govuk-!-margin-staticandgovuk-!-padding-staticclassesWe've fixed an error in the naming convention of the static spacing override classes we'd introduced in v4.3.0. These classes should start with
govuk-!-static, and we've now deprecated the incorrect classes.If you're using the static spacing margin override classes, replace any classes starting with
govuk-!-margin-staticwithgovuk-!-static-margin. For example:govuk-!-margin-static-2would becomegovuk-!-static-margin-2.If you're using the static spacing padding override classes, replace any classes starting with
govuk-!-padding-staticwithgovuk-!-static-padding. For example:govuk-!-padding-static-2would becomegovuk-!-static-padding-2.We've deprecated the
govuk-!-margin-staticandgovuk-!-padding-staticclasses, and will remove them in a future major release.This change was introduced in [pull request #2770: Fix ordering of properties in static spacing override classes](alphagov/govuk-frontend#2770). Thanks to
@garrystewartfor reporting this issue.Fixes
We’ve made fixes to GOV.UK Frontend in the following pull requests:
4.3.0 (Feature release)
New features
Customise the Open Graph image URL without duplicate meta tags
You can now customise the Open Graph image URL included in the
headby setting theopengraphImageUrlNunjucks option.Also, the default Open Graph image URL meta tag will now only be included if you set the either
opengraphImageUrlorassetUrl.This was added in [pull request #2673: Allow Open Graph image URL to be customised](alphagov/govuk-frontend#2673).
Localise the content licence and copyright statements
When using the footer Nunjucks macro, you can now translate the text of the Open Government Licence (OGL) and Crown copyright statements using the
contentLicenceandcopyrightparameters.Visit The National Archives' documentation on OGL and Crown copyright for information on what you need to include in these statements.
This was added in [pull request #2702: Allow localisation of content licence and copyright notices in Footer](alphagov/govuk-frontend#2702).
Pass HTML directly into compatible components
If using the Nunjucks macros, you can now pass HTML content directly into compatible components using the Nunjucks call syntax. If HTML is provided through the call syntax, the nunjucks macro will ignore the HTML and text options.
Components updated to support this syntax are:
- Details
- Error summary (mapped to
descriptionHtmlparameter)
... (truncated)
Commits
1cc0a07Merge pull request #2783 from alphagov/release-v4.3.13da57a3Release v4.3.18ac8213Merge pull request #2766 from alphagov/accordion-console-logs615adc1Document in CHANGELOG2eb58cfRemove unused console logs3ac74eaMerge pull request #2770 from alphagov/correct-static-spacing-class87e0c5dFix ordering of properties in spacing override classes9fdbeb6Merge pull request #2773 from alphagov/bk-remove-gulp-clean8a20d1bUpdate tasks documentatione68856dMove clean.js to tasks folder- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)