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

Tailwind css styling is not applied in PDF generate #784

Open
joyal007 opened this issue Feb 3, 2025 · 0 comments
Open

Tailwind css styling is not applied in PDF generate #784

joyal007 opened this issue Feb 3, 2025 · 0 comments

Comments

@joyal007
Copy link

joyal007 commented Feb 3, 2025

When using Tailwind CSS with the configuration important: "#body", components styled with Tailwind utilities fail to render correctly in PDFs generated using the react-to-print library. This issue arises because the dynamically created iframe used for printing does not include an element with the id="body".

module.exports = {
  important: '#body',
  // other configurations
};
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