Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v4.8.0 #4732

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Release v4.8.0 #4732

merged 1 commit into from
Feb 5, 2024

Conversation

querkmachine
Copy link
Member

@querkmachine querkmachine commented Feb 5, 2024

GOV.UK Frontend v4.8.0 (Feature release)

This release includes the ability to update the crown logo. You must do this between 19 February and 1 March 2024.

We’ll send reminders to our mailing list and cross-government Slack as soon as you can make this change.

New features

Update to the new GOV.UK logo (between 19 February and 1 March 2024)

We’ve updated the GOV.UK logo to reflect the changing of the monarch. King Charles III uses the Tudor Crown, rather than the St Edward’s Crown chosen by Queen Elizabeth II.

If your service uses GOV.UK branding, you must update your service to use the new crown.

These changes were made in the following pull requests:

Include the new logo assets

Multiple new image assets are included in this release. You’ll need to copy these to your service's image assets folder if they are not being used directly from the Frontend package. By default this folder is located at /assets/images.

If you’re using Nunjucks, the asset path may have been changed by the assetPath global variable or assetsPath parameter on the header component.

Copy the following files from /dist/assets/images into your assets folder. Any images with the same name as an existing image can be safely overwritten.

  • favicon.ico
  • govuk-apple-touch-icon-152x152.png
  • govuk-apple-touch-icon-167x167.png
  • govuk-apple-touch-icon-180x180.png
  • govuk-apple-touch-icon.png
  • govuk-logotype-tudor-crown.png
  • govuk-mask-icon.svg
  • govuk-opengraph-image.png

Update the logo in the header of your page

If you are using the govukHeader Nunjucks macro in your service, add the useTudorCrown parameter to the macro instantiation.

{{ govukHeader({
  ...
  useTudorCrown: true
}) }}

If you are not using the Nunjucks macro, locate the HTML for the existing crown and replace it with this updated HTML. Make sure the URL for the new PNG fallback image is correct.

<!--[if gt IE 8]><!-->
<svg
  aria-hidden="true"
  focusable="false"
  class="govuk-header__logotype-crown"
  xmlns="http://www.w3.org/2000/svg"
  viewBox="0 0 32 30"
  height="30"
  width="32"
>
  <path
    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.9-2.1-2.9-3.6.7-.1 1.9.5 2.9 1.9l.4-4.3c-1.1 1.1-2.1 1.4-3.2 1.4.4-1.2 2.1-3 2.1-3h-5.4s1.7 1.9 2.1 3c-1.1 0-2.1-.2-3.2-1.4l.4 4.3c1-1.4 2.2-2 2.9-1.9-.1 1.5-.2 3.4-2.9 3.6-1.9.2-3.4-.8-3.5-1.9-.2-1.3 1-2.2 1.9-.8.7-2.3-1.2-3-2.5-1.6.9-2.2.9-3.9-1.2-5.5-1.5 2-1.3 3.7.6 5.6-1.2-.7-3.1 0-2 2.3.6-1.4 1.8-1.1 2.1.1.2.9-.3 1.9-1.5 2.1-.9.2-2.4-.5-3.5-3 .6 0 1.2.3 2 .9l-1.2-4c-.3 1.1-.7 1.9-1.1 2.3-.3-.8-.2-1.4 0-2.7l-2.9.9C1.3 23 2.6 25.5 3.7 30c3.7-.5 7.9-.8 12.3-.8"></path>
</svg>
<!--<![endif]-->
<!--[if IE 8]>
<img src="/assets/images/govuk-logotype-tudor-crown.png" class="govuk-header__logotype-crown-fallback-image" width="32" height="30" alt="">
<![endif]-->

@querkmachine querkmachine added this to the v4.8.0 milestone Feb 5, 2024
@querkmachine querkmachine requested a review from a team February 5, 2024 14:19
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-4732 February 5, 2024 14:20 Inactive
@querkmachine querkmachine marked this pull request as ready for review February 5, 2024 14:28
@owenatgov
Copy link
Contributor

Diff attached as file
dist.diff.zip

@querkmachine querkmachine merged commit f706252 into support/4.x Feb 5, 2024
39 of 40 checks passed
@querkmachine querkmachine deleted the release-4.8.0 branch February 5, 2024 15:09
@colinrotherham
Copy link
Contributor

colinrotherham commented Feb 5, 2024

I looked into the Autoprefixer output differences just in case

As part of our support/4.x releases we bump caniuse-lite to avoid:

  console.warn
    Browserslist: caniuse-lite is outdated. Please run:
      npx update-browserslist-db@latest
      Why you should do it regularly: https://github.com/browserslist/update-db#readme

This will update the package-lock.json version and was logged as:

Latest version:     1.0.30001584
Installed version:  1.0.30001431

Browserslist changes

Updating caniuse-lite will see android 4.4.3-4.4.4 dropped from the npx browserslist results

We reviewed the CSS output in ./dist and accepted various changes that matched the updated browser data

Releases to v4.x

Vendor prefix -webkit-transform is no longer necessary:

.js-enabled .govuk-accordion-nav__chevron--down {
- -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

Releases to v5.x

Vendor prefixes -ms-transform and -webkit-transform are no longer necessary:

.js-enabled .govuk-accordion-nav__chevron--down {
- -webkit-transform: rotate(180deg);
- -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants