-
Notifications
You must be signed in to change notification settings - Fork 20
[PNP-9666] simplify layouts in frontend #5092
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
Conversation
andysellick
left a comment
There was a problem hiding this 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 👍
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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.
39d5dff to
98662f4
Compare
andysellick
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
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