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

Set stylesheet media to "all" to allow print styles #605

Merged
merged 2 commits into from
Oct 2, 2018
Merged

Conversation

kr8n3r
Copy link

@kr8n3r kr8n3r commented Oct 2, 2018

In GOV.UK Frontend components no longer have separate print stylesheet;
print styles are built into the component partials.

By setting media to all we allow those styles to apply in print situations.

Fixes: #604

Before:
before.pdf

After:
after.pdf

igloosi added 2 commits October 2, 2018 09:56
In GOV.UK Frontend components no longer have separate print stylesheet;
print styles are built into the component partials

By setting media to all we allow those styles to apply in print situations.
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.

Makes sense to me

@kr8n3r kr8n3r merged commit 54d97ec into master Oct 2, 2018
@kr8n3r kr8n3r deleted the fix-print-styles branch October 2, 2018 09:41
@kr8n3r kr8n3r mentioned this pull request Oct 11, 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.

2 participants