aanckar / react-pdf-tailwind

Use Tailwind CSS to style PDFs created with react-pdf
315 stars 11 forks source link

Fix `textDecoration` rules not applying correctly #5

Closed chrissantamaria closed 1 year ago

chrissantamaria commented 1 year ago

It looks like rules such as no-underline (generating textDecorationLine: 'none') are not being applied properly, as react-pdf instead only accepts textDecoration. This PR updates them to generate textDecoration styles instead.

This technically goes against Tailwind's original classes which generates text-decoration-line, though given they're functionally identical in this context I think this should be okay.

aanckar commented 1 year ago

Thanks for this!