allenai / pdf-component-library

44 stars 4 forks source link

Adding Print Button For PDF Component #197

Closed huytr1995 closed 1 year ago

huytr1995 commented 1 year ago

Description

Ref: https://github.com/allenai/scholar/issues/31637

First step of adding print functionality by creating the button in PDF Component Library

Reviewer Instructions

Create Print button and add print style sheet for it.

Testing Plan

Verify Print will have all pages and looks nice. Other than that yarn format, lint, test.

Output / Screenshots

https://user-images.githubusercontent.com/84343285/193340116-87e26f4a-2d30-4a33-8eb1-e9f59a6e06e9.mov

A11y

https://user-images.githubusercontent.com/84343285/193340453-bd2ad567-a210-4ebb-ade7-c26f599e06d4.mov