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 phase banner being affected by global styles #877

Merged
merged 2 commits into from
Jul 5, 2018

Conversation

36degrees
Copy link
Contributor

When global styles are enabled, the phase banner uses the wrong font size.

This is because the font-size of 16px is currently set on the parent .govuk-phase-banner, but p.govuk-phase-banner__content doesn't have a font-size set, so inherits the font size from the global paragraph styling.

Moving the font-size declaration onto .phase-banner__content fixes this.

Fixes #876

When global styles are enabled, the phase banner uses the wrong font size.

This is because the font-size of 16px is currently set on the parent `.govuk-phase-banner`, but `p.govuk-phase-banner__content` doesn't have a `font-size` set, so inherits the font size from the global paragraph styling.

Moving the font-size declaration onto `.phase-banner__content` fixes this.
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-877 July 5, 2018 12:45 Inactive
Copy link

@kr8n3r kr8n3r left a comment

Choose a reason for hiding this comment

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

nice one. ta

@36degrees 36degrees merged commit 4271424 into master Jul 5, 2018
@36degrees 36degrees deleted the bug-phase-banner-font-size branch July 5, 2018 13:18
@kr8n3r kr8n3r added this to the v1.1.0 milestone Jul 5, 2018
@NickColley NickColley mentioned this pull request Jul 13, 2018
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.

font-size in phase banner is being overridden by global styles
3 participants