Skip to content

Support styled print page #169

@paavanb

Description

@paavanb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions