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

[Hotfix] Un-garble print previews in Chrome #40

Merged
merged 3 commits into from
Feb 2, 2020

Conversation

seshrs
Copy link
Member

@seshrs seshrs commented Feb 1, 2020

Context

This PR introduces a work-around for garbled print-previews in Google Chrome: If the user's browser is Chrome, and version < 82, then remove all italicized formatting on the page before printing. The changes that enable this functionality are in 498699d.

This PR also bumps the current Primer Spec version. When this PR merges with master, all specs that use Primer Spec v.1.1.0 will automatically be upgraded to v.1.1.1. (No further action is needed by EECS 485 / EECS 280 staff.)

Validation

  • Visit https://eecs485staff.github.io/primer-spec/ with Google Chrome, then try generating a print preview. The preview should appear garbled.

  • Then visit the preview URL for this PR on Google Chrome, and try generating a print preview — it should look all right (with italics formatting removed).

  • Visit the preview URL from a non-Chromium browser (like Safari or Firefox). Print previews should be generated correctly, and should include italicized formatting.

/CC @rileyschnee

Closes #38, and closes #39.

If browser is Chrome, and version < 82, then remove all italics on page before printing.
See #38 for further context.
@seshrs seshrs requested review from awdeorio and ryjo1026 February 1, 2020 20:15
Jekyll Remote Theme does not yet seem to support Jekyll 4.0. This commit is needed to fix a Travis build failure.
@seshrs seshrs merged commit d3d2e14 into master Feb 2, 2020
@seshrs seshrs deleted the hotfix/print-preview-chrome branch February 2, 2020 22:28
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.

1 participant