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

Update to GOV.UK Frontend v5.2.0 on management pages #2396

Merged
merged 3 commits into from
Feb 22, 2024

Conversation

colinrotherham
Copy link
Contributor

@colinrotherham colinrotherham commented Feb 21, 2024

Updates to GOV.UK Frontend v5.2.0 (including the new crown) to close #2395

Also closes #2392 where assetPath wasn't fully set for template previews

Copy link
Contributor

@domoscargin domoscargin left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Comment on lines +297 to +298
govukFrontend,
govukFrontendInternal,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For template previews we use a minimal Nunjucks context only

But to correctly build assetPath we need GOV.UK Frontend paths to close #2392

{%- set assetPath = assetPath | default('/plugin-assets/govuk-frontend' + govukFrontend.assetPath) -%}

{%- set assetPath = '/manage-prototype/dependencies/govuk-frontend' + govukFrontendInternal.assetPath -%}

@colinrotherham colinrotherham merged commit e2640d9 into main Feb 22, 2024
30 checks passed
@colinrotherham colinrotherham deleted the frontend-5.2.0 branch February 22, 2024 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants