-
Notifications
You must be signed in to change notification settings - Fork 33
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 leaking #138
Comments
Thanks for reaching out! We have a known issue when customers use Mantine in their main app along with Jotai, the theme would not work as expected (light/dark mode). Our recommendation is to sync the theme via props. Please see this warning. If this issue is different, could you please create a small repro? Happy to look into it. |
I don't use Mantine, in my case I use Panda CSS. Moreover, importing the CSS file, based on the documentation, leaks Mantine to all my application affecting all my styles. It also happens if I'm running in dev or prod mode. The devtools is supposed to be available on dev more, correct? |
Could you please create a small repro perhaps on CSB? |
I think I know what's going on here. We're including global styles that affect the |
Hey @marviobezerra Could you test this canary tag and see if that fixes the issue for you? - https://ci.codesandbox.io/status/jotaijs/jotai-devtools/pr/139/builds/496213 (Follow Local Install Instructions) |
I'll try tomorrow morning and post back. Thanks for the quick response. |
@arjunvegda It's still broken because of these styles: Particularly For now I'm making the styling lazily load and putting it behind an environment variable that switches |
@sebinsua - you could also downgrade it to 0.8.0 temporarily until we figure this out. Sorry for the hassle! Re: css-reset styles, what's a good way to remove them? I think the inherit problem is that Mantine is not designed to be used for libraries 🤔 But it drastically helps us in adding new features without having to maintain our own library. Should we write our own post css plugin that removes the css reset styles? |
I tried and it still leaking. I downgraded to 0.8.0 and it's working. |
Could you folks test the latest change https://ci.codesandbox.io/status/jotaijs/jotai-devtools/pr/139/builds/496725 ? |
This seems to be working for me. |
@arjunvegda this is still not fixed on
|
Thanks for reporting @kvnxiao! Could you try this tag |
@arjunvegda I've been having the same issue. installed from https://pkg.csb.dev/jotaijs/jotai-devtools/commit/57787cb3/jotai-devtools/_pkg.tgz and can confirm this fixes it for me |
Released the fix in v0.9.1. Please feel free to re-open this issue if the problem persists. |
thank you for this! |
The same issue in v0.10.0 it leaks the CSS and alters mantine menu style. |
There is CSS leaking after updating from
0.8.0
to0.9.0
. It's setting background color, font, and others on components that are not Jotai Dev tools.I noticed that it's adding the whole
@mantine
css to my project.The text was updated successfully, but these errors were encountered: