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

Support styled print page #169

Open
paavanb opened this issue Feb 12, 2020 · 0 comments
Open

Support styled print page #169

paavanb opened this issue Feb 12, 2020 · 0 comments

Comments

@paavanb
Copy link
Collaborator

paavanb commented Feb 12, 2020

Currently, the print component sets innerHTML directly before triggering a print, which can be dangerous in React since we're taking control away from it. This might also be why the print page doesn't have the styles of the rest of the app. We might be able to improve this by using CSS to hint to the browser not to print certain parts of the page (like the sidebar and header), which would allow us to print the body of the page which styles!

https://github.com/codeforboston/windfall-elimination/blob/develop/src/pages/print.tsx#L221

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

No branches or pull requests

1 participant