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

Use all for media queries instead of screen only #2910

Merged
merged 2 commits into from Feb 15, 2019
Merged

Conversation

thisisdano
Copy link
Member

@thisisdano thisisdano commented Feb 15, 2019

Preview

This PR changes the scope of media queries to all media types instead of screen only. This allows media query styling to apply to print jobs, fixing a number of current issues with print performance. In testing, printing to standard 8.5 x 11" paper results in mobile-style output, which is perfect.

We haven't uncovered any potential problems with this new scope, but it's worth a bit more research time to make sure there aren't any unintended consequences, especially accessibility issues.

Q: are there some places where reverse text will be an issue?

Fixes #2907
Fixes #2883


screen shot 2019-02-15 at 9 32 45 am


With Print background graphics checked:

screen shot 2019-02-15 at 9 35 03 am

@thisisdano thisisdano self-assigned this Feb 15, 2019
Copy link
Contributor

@saracope saracope left a comment

Choose a reason for hiding this comment

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

My research didn't uncover any issues, accessibility or otherwise, with this approach.

@thisisdano
Copy link
Member Author

Cool. It looks like the reverse text might print a little light, but it's probably an improvement from what it was doing before.

@thisisdano
Copy link
Member Author

Good to remember that we shouldn't put any critical images in backgrounds since they won't print!

@thisisdano
Copy link
Member Author

@saracope please hold on merging until we sort out some Federalist issues

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.

None yet

2 participants