Skip to content

Conversation

@KludgeKML
Copy link
Contributor

@KludgeKML KludgeKML commented Oct 23, 2025

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What

The current layouts in frontend are inverted (body/head/call to layout) to support the individual component loading. Since we're not doing that at the moment, put the elements back in order.

This change is expected to make no visual difference to any page.

Why

https://gov-uk.atlassian.net/browse/PNP-9666

Copy link
Contributor

@andysellick andysellick left a comment

Choose a reason for hiding this comment

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

Much cleaner and easier to read 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to have full width extend from the application layout? It seems like we end up duplicating a fair bit of stuff here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm. There isn't really an extension mechanism in that sense, I think (you sort of can by having content_for blocks and then pointing one layout to the other, but I can't think of a good way to do that that doesn't do more damage than the current solution).

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, that's fair enough then.

- reorganize so that content for head: is at the top, then we have the
  layout component, then the body is inside that component's block.
- reorganize so that content for head: is at the top, then we have the
  layout component, then the body is inside that component's block.
@KludgeKML KludgeKML force-pushed the pnp-9666-simplify-layouts-in-frontend branch from 39d5dff to 98662f4 Compare November 4, 2025 13:09
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-5092 November 4, 2025 13:09 Inactive
@KludgeKML KludgeKML marked this pull request as ready for review November 5, 2025 11:19
@KludgeKML KludgeKML requested a review from andysellick November 5, 2025 11:20
Copy link
Contributor

@andysellick andysellick left a comment

Choose a reason for hiding this comment

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

🚀

@KludgeKML KludgeKML merged commit a1593db into main Nov 5, 2025
13 checks passed
@KludgeKML KludgeKML deleted the pnp-9666-simplify-layouts-in-frontend branch November 5, 2025 13:27
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.

4 participants