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

Styles are not applied to react-zoom-pan-pinch inside a shadow-DOM component #444

Open
rupeshvitekar opened this issue Jan 9, 2024 · 0 comments

Comments

@rupeshvitekar
Copy link

rupeshvitekar commented Jan 9, 2024

I'm using react-zoom-pan-pinch in my application and it is been working great until I hit this situation.
I have wrapped my react application as a shadow-DOM component to isolate styles from other applications. After this change react-zoom-pan-pinch does not get any styles applied.
As per my analysis, react-zoom-pan-pinch build dynamic css and these styles are being added to document>head section. Since my application is a Shadow-DOM wrapped application, these external styles are not accessible to react-select.

I can see option to write my custom styles but that is very tidies to write all styles and upgrades will become unmanageable. Please suggest a solution for this case.

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