-
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 override mantine styles #151
Comments
Thanks for reporting! Could you paste the output of |
Here you go, please let me know if you need anything else to debug
|
I am wondering is it related CSS layering in https://mantine.dev/styles/mantine-styles/? As currently I am using next.js it does not guarantee styles import order. |
Thanks! The versions look good to me. I wonder if the culprit is this file 🤔. Mantine does not let us isolate styles so using it for library has become harder since Mantine v6 😓. Could you create a small repro on CSB or Stackblitz please? |
Hey @arjunvegda I had successfully repro it in stackblitz, please take a look. It is using vite and react. |
Thanks for the repro! This seems like a bug. Ideally, the styles should not create a conflict. I wonder if this is a sign to move off of Mantine. 😓 Would you like to help with this? For now, does swapping the order of the imports fix the issue? -import "@mantine/core/styles.css";
import "jotai-devtools/styles.css";
+import "@mantine/core/styles.css"; |
Swapping import doesn't fix the problem, I could try investigate and fix it 👍 |
Weird, it works fine on Stackblitz when I swap it. There are probably conflicts in other components too. And thanks a lot @Elvincth! We can connect over Discord if you'd like to help migrate the UI away from Mantine. |
Hey @arjunvegda, that sounds good where can I connect you through Discord? |
What's your discord username? I'll send you an invite. |
@Elvincth thanks! |
Just checking in, is this still an issue? |
Fixed in #157 |
CSS from
"jotai-devtools/styles.css"
leaks and overrides my current project mantine styles (downgraded to v0.8.0 works fine)Package version: v0.10.0
Before importing
"jotai-devtools/styles.css"
:After importing
"jotai-devtools/styles.css"
:The text was updated successfully, but these errors were encountered: