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

Temporary changes for Global Bar [DO NOT MERGE] #3226

Merged
merged 2 commits into from
Apr 17, 2023

Conversation

patrickpatrickpatrick
Copy link
Contributor

@patrickpatrickpatrick patrickpatrickpatrick commented Apr 13, 2023

Do not merge until the global banner has been deployed.

Relevant Trello Card

What

Remove the blue bar from the Browse page breadcrump partial. Change the COVID-19 yellow bar to be the same colour as the header (essentially removing it). Add negative top margin to COVID-19 header on mobile viewports to ensure correct
spacing between breadcrumb and navbar.

Why

We are going to deploy the global bar for a period of time to alert users about the upcoming Emergency Alerts. These pages were designed with hardcoded top borders which don't come from the public_layout template. When the global bar is
deployed, the public_layout template will render the blue bar above it. This resulted in there being two blue bars on pages that have a hardcoded top border. The presence of the global bar is determined by the static application and other
frontend applications can't detect when it is or is not present. In the future, we need to rethink how handle blue/yellow bars on full-width pages. For now though, we want to deploy the global bar as soon as possible so we can raise
awareness of the Emergency Alerts. These changes will be easily removed when the global bar is removed.

Visual Changes

Before

Without Global Bar

Screenshot 2023-04-13 at 15 51 57

Screenshot 2023-04-13 at 15 56 25

With Global Bar

Screenshot 2023-04-13 at 15 52 50

Screenshot 2023-04-13 at 15 55 06

After

Without Global Bar

Screenshot 2023-04-13 at 15 53 11

Screenshot 2023-04-13 at 15 57 05

With Global Bar

Screenshot 2023-04-13 at 15 53 01

Screenshot 2023-04-13 at 15 55 11

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

Follow these steps if you are doing a Rails upgrade.

@govuk-ci govuk-ci temporarily deployed to collections-pr-3226 April 13, 2023 14:46 Inactive
The blue bar in the Browse page breadcrumb partial is removed so that
when the global bar is deployed there is not two blue bars on Browse
pages.

This is a temporary change and will be reverted when the global bar has
been removed.
Yellow bar on COVID-19 landing page has been removed so that two bars
don't appear on the page when the global banner is deployed. There is
also a rule added for making sure there is not too much spacing between
the breadcrumb links and the navbar on mobile.

These changes are temporary and will be removed when the global bar has
been removed.
@govuk-ci govuk-ci temporarily deployed to collections-pr-3226 April 13, 2023 14:51 Inactive
@patrickpatrickpatrick patrickpatrickpatrick marked this pull request as ready for review April 13, 2023 14:58
@patrickpatrickpatrick patrickpatrickpatrick changed the title Temporary changes for Global Bar Temporary changes for Global Bar [DO NOT MERGE] Apr 13, 2023
Copy link
Contributor

@matthillco matthillco 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, no changes required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants