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

Add gem_layout_full_width_browse_header template #3053

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

patrickpatrickpatrick
Copy link
Contributor

@patrickpatrickpatrick patrickpatrickpatrick commented May 5, 2023

What

Add a new template for Browse page headers on the collection application. Update the gem_base with new attributes that have been added to the public_layout.

Why

There are instances of pages on collections that have a coloured background in the heading section. This meant that the the blue bar (which is rendered in the public_layout) had to be rendered by collections otherwise it would result in a gap between the blue bar and coloured section. This solution seemed fine until we had a recent deployment of the global bar. As the global bar includes a blue bar, it meant that the Browse pages had two blue bars. They therefore needed to be removed while the global bar was present and then added back again when the global bar was removed.

To avoid this needing to happen the next time the bar is deployed, this new template has been implemented. It means that if a page has a coloured background heading it can be specified in the template and then it will be applied to the blue bar. This means the blue bar can be rendered in public_layout and so applications don't need to render the blue bar if they have a heading section with a background colour.

Follow these steps if you are doing a Rails upgrade.

Relevant Trello Card

@patrickpatrickpatrick patrickpatrickpatrick force-pushed the blue_bar_full_width_layout branch 4 times, most recently from 95ca3d1 to 3f9a9da Compare May 5, 2023 11:05
@patrickpatrickpatrick
Copy link
Contributor Author

alphagov/govuk_publishing_components#3380 depends on this being merged in first

@patrickpatrickpatrick patrickpatrickpatrick changed the title Blue bar full width layout Add gem_layout_full_width_browse_header template May 11, 2023
@jon-kirwan jon-kirwan self-requested a review June 12, 2023 13:40
Copy link
Contributor

@jon-kirwan jon-kirwan left a comment

Choose a reason for hiding this comment

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

All looks good to me 👍

@patrickpatrickpatrick patrickpatrickpatrick marked this pull request as ready for review August 25, 2023 09:37
@patrickpatrickpatrick patrickpatrickpatrick marked this pull request as draft August 25, 2023 09:39
@patrickpatrickpatrick patrickpatrickpatrick marked this pull request as ready for review August 25, 2023 09:39
@patrickpatrickpatrick patrickpatrickpatrick merged commit f9818d6 into main Aug 25, 2023
6 checks passed
@patrickpatrickpatrick patrickpatrickpatrick deleted the blue_bar_full_width_layout branch August 25, 2023 09:40
@patrickpatrickpatrick patrickpatrickpatrick restored the blue_bar_full_width_layout branch August 25, 2023 10:09
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.

2 participants