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

Package Breaks Local Antd Theming #16

Open
hiimdjango opened this issue Jul 26, 2023 · 3 comments
Open

Package Breaks Local Antd Theming #16

hiimdjango opened this issue Jul 26, 2023 · 3 comments

Comments

@hiimdjango
Copy link

I'm trying to use this library in a project built with antd 4. For some reason, importing the component (without even importing the styles) breaks my theming and makes the app goes back to the default blue Color.

@jianxiaoBai
Copy link
Owner

Can you provide a demo?

@hiimdjango
Copy link
Author

hiimdjango commented Jul 28, 2023

Sure, here's the repo that I made to illustrate the issue: https://github.com/hiimdjango/Antd-Json-Editor-Demo

If you comment out the code to add the JsonEditor the color is displaying correctly.

@hiimdjango
Copy link
Author

I guess one way to fix it, is moving antd to peerDependencies in your package.json and remove that css import from your files.

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

2 participants