MatthewHerbst / react-to-print

Print React components in the browser. Supports Chrome, Safari, Firefox and EDGE
MIT License
2.15k stars 221 forks source link

border 1px solid sometimes does not work #559

Closed tyometarou closed 1 year ago

tyometarou commented 2 years ago

border="1px solid" sometimes does not work

in pdf preview it can work

but in first preview it cant work 1page it can work and 2page it cant work placeA but 3page it cant work placeB

MatthewHerbst commented 2 years ago

Hello, thanks for making the issue. Could you please make a Codesandbox showing the problem so that I can easily debug it? Also, what browser/version are you using? Thanks!

tyometarou commented 2 years ago

sorry,this situaiton happened in my business so i cant share this code correctly this situation happend in Chaka Ui and apply theme

MatthewHerbst commented 2 years ago

Hello. I don't need you to share your business code, just to create a similar example on Codesandbox. I have never used Chaka UI before

MatthewHerbst commented 1 year ago

If you're able to share some code to replicate this issue I'm happy to help with it, but closing for now

alekseykurylev commented 1 year ago

@MatthewHerbst, the problem is in the css variable, where an underscore is used in the name, for example "--_divider-color". Try to use the mantine library https://v7.mantine.dev/

MatthewHerbst commented 1 year ago

@MatthewHerbst, the problem is in the css variable, where an underscore is used in the name, for example "--_divider-color". Try to use the mantine library https://v7.mantine.dev/

Hi! Could you please create a new issue for this? It's not something I'm familiar with. A codesandbox showing it failing with -react-to-print` would be super helpful