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

CSS for the component in Preview is lost if the root document uses the same component #217

Closed
varya opened this issue Aug 6, 2020 · 0 comments · May be fixed by zalkowitsch/react-live#2

Comments

@varya
Copy link

varya commented Aug 6, 2020

I am using react-live in a Gatsby website with MDX. If I use the same component in the MDX code and in the ReactLive, the component in ReactLive iframe does not get CSS. The CSS classes rendered for the component in the iframe are the same as the classes in MDX but CSS is only generated in the root document, not in the iframe document.

I cannot provide link to the repo because it is private. But could anyone suggest how to debug? Thanks.

Here there are the screenshots illustrating the problem:

2020-08-06_20-52-04

2020-08-06_20-53-59

2020-08-06_20-54-39

@carbonrobot carbonrobot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 22, 2024
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

Successfully merging a pull request may close this issue.

2 participants