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

Fix height and alignment issue within header in Chrome 76+ #1587

Merged
merged 1 commit into from
Sep 24, 2019

Conversation

36degrees
Copy link
Contributor

@36degrees 36degrees commented Sep 23, 2019

A change in Chrome 76 means that the header is currently being rendered 64px high (rather than the expected 60px), with mis-alignment between the crown and the GOV.UK logotype.

Adding display: inline-block to the __logotype element fixes it (h/t @trevorsaint).

(We are not sure what exactly changed in Chrome 76, nor why this fixes it.)

Fixes #1575

👉 Browser Screenshots
👉 Preview

Before

Header Before

After

Header After

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1587 September 23, 2019 13:24 Inactive
@36degrees 36degrees changed the title Fix height and alignment issue within header Fix height and alignment issue within header in Chrome 76+ Sep 23, 2019
A change in Chrome 76 means that the header is currently being rendered 64px high (rather than the expected 60px), with mis-alignment between the crown and the GOV.UK logotype.

Adding `display: inline-block` to the __logotype element fixes it.

(We are not sure what exactly changed in Chrome 76, nor why this fixes it.)

Co-authored-by: Trevor Saint <trevor.saint@digital.cabinet-office.gov.uk>
Copy link
Contributor

@NickColley NickColley left a comment

Choose a reason for hiding this comment

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

I don't know if I'm seeing things but it looks a bit low now?

If not, good to go. 👍

@NickColley NickColley added this to the Next milestone Sep 23, 2019
@36degrees
Copy link
Contributor Author

I've double checked and it renders exactly the same as the current header does in Chrome 75.

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

Successfully merging this pull request may close these issues.

Crown logo is not always aligned with logotype
3 participants