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

Upgrade govuk-frontend and the crown logo #344

Merged
merged 6 commits into from
Feb 22, 2024
Merged

Conversation

kr8n3r
Copy link
Contributor

@kr8n3r kr8n3r commented Feb 21, 2024

Closes #337 #343

What’s changed

  • Update govuk-frontend from v4.4.1 to v4.7
  • Update crown SVG and favicon to Tudor crown
  • Manually adjust SVG crown with styles from govuk-frontend v4.8
  • Suppress IE8 mixin deprecation warning introduced in govuk-frontend v4.6

Ideally we would upgrade to govuk-frontend v4.8 and not have to bring in the minor manual SVG alignment, but as govuk-frontend v4.8 introduced SCSS source maps, the tech-docs gem compiler includes them but not any styles.

Identifying a user need

We need to update the crown before March 1

How to test with your tech docs

To see how your changes to the gem affect your website, point your website's Gemfile to your local checkout of this branch:

gem 'govuk_tech_docs', path: '../tech-docs-gem'

Replace with the new Tudor crown
Replace with the Tudor crown from govuk-frontend assets
manual Tudor Crown spacing adjustment from govuk-frontend 4.8
Copy link
Contributor

@richardTowers richardTowers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me, although I haven't done any testing. One trivial comment, but otherwise 👍🏻

package.json Outdated Show resolved Hide resolved
Copy link
Member

@huwd huwd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on two internal GDS docs sites, both worked. Thanks Jani!

V4.8 contains SCSS source maps which the compiler here bundles in and then fails to import any other styles, resulting in a visually broken site

Solution for now is to bring in v4.7 and the minor crown svg alignment
@kr8n3r kr8n3r force-pushed the upgrade-govuk-frontend branch from 0767f27 to 5bbf88d Compare February 21, 2024 16:27
Copy link

@abutters abutters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally on customs-declarations-end-to-end-service-guide. Works well. Thank you very much!

@kr8n3r kr8n3r merged commit 3773818 into main Feb 22, 2024
4 checks passed
@kr8n3r kr8n3r deleted the upgrade-govuk-frontend branch February 22, 2024 10:18
kr8n3r added a commit that referenced this pull request Feb 22, 2024
### New features

- Update the Crown logo and govuk-frontend

  See [pull request #344: Upgrade govuk-frontend and the crown logo](#344) for more details.

#344
@kr8n3r kr8n3r mentioned this pull request Feb 22, 2024
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.

Update the crown
4 participants