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 hairline gap between notification banner header and outer border on high resolution screens in Chrome/Edge (Blink) #2035

Conversation

andymantell
Copy link
Contributor

To fix #2034 (White line around notification banner heading on high DPI screens in chrome) I have flipped the colouring of the notification banner around. This means the background colour of the entire notification banner is now blue/green, but the content container inside it is white - meaning there is no gap between the two any more.

I had to remove bottom margin from the last child inside the content div - reason being I had to switch the content container to padding instead of margins but that causes it to contain the bottom margin of the last child.

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-2035 November 25, 2020 10:53 Inactive
Copy link
Member

@36degrees 36degrees 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 – thanks @andymantell

My only concern was around High Contrast Mode but visually it seems to behave exactly the same:

Before

Screenshot 2020-11-25 at 11 50 34

After

Screenshot 2020-11-25 at 11 50 13

This just needs another review from another member of the team and then we can get this merged.

@vanitabarrett
Copy link
Contributor

Thanks @andymantell , good spot and this fix looks good to me!

Would you be able to add a quick entry in the Changelog too? Something similar to this example.

@andymantell
Copy link
Contributor Author

Thanks both.

Will changelog it now...

@andymantell andymantell changed the title Invert notification banner header / content colouring to fix gap on large screens Fix hairline gap between notification banner header and outer border on high resolution screens in Chrome/Edge (Blink) Nov 25, 2020
@vanitabarrett vanitabarrett merged commit 612b2b4 into alphagov:master Nov 25, 2020
@36degrees
Copy link
Member

Thanks for the really clear update to the PR title 👍🏻

@andymantell andymantell deleted the notification-banner-gap-on-high-res-screens branch November 25, 2020 12:16
@vanitabarrett vanitabarrett mentioned this pull request Dec 1, 2020
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.

White line around notification banner title
4 participants