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 Isolation for the remote app #3170

Open
rk12345677 opened this issue Oct 5, 2023 · 2 comments
Open

CSS Isolation for the remote app #3170

rk12345677 opened this issue Oct 5, 2023 · 2 comments

Comments

@rk12345677
Copy link

rk12345677 commented Oct 5, 2023

Hi @ScriptedAlchemy i have integrated a remote app with my host app using module federation both remote and host app is on react.
i am using mini-css-extract-plugin for the css.
The problem is i am using different version of library in both app due to that i am getting some css issue after loading the remote app in the host app apart from that everything works fine.
Can someone help me isolating the css of the remote app from the host app so that it won't affect.

@RussellCanfield
Copy link
Collaborator

I would adjust the specificity of your css or turn on css modules if possible. It’s a nice safe guard for the future

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

3 participants