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
Messing up the styles in an existing project #50
Comments
I'm having the same issue. It's due to antd being semversioned at v2.12.2 and currently antd is at v3.9. |
I tried |
Can you provide more info, what kind of styles are messed up, maybe screenshot, page example? |
Tons of minor things from menu sizing, duplication of breadcrumb icons, etc. I also used |
The antd have global styles that can 'leak' into the application; See:
I don't think that the update will fix the problem because its not 'fixed' by the antd team, the sad part it is that this issue is not a priority for them, so the fix may take some time. |
What if move antd from dependencies to peerDependencies in this project? |
Also, as you can see at demo, I import css/denormalize.scss and css/reset.scss to fix some global styles after antd. |
Yep, but my project is on a stage that we would had just to much to fix. PS, you answered my comment pretty fast, thank you for taking the time :) |
it would be nice to have an opportunity not to add any styling at all and let developers to define their own =) cause currently, as others in this conversation, after adding react-awesome-query-builder to the project a lot of styles became broken because of antDesign |
@vitali-svishchou If I exclude antd from this lib, I'll have to rewtite widgets without using antd. And let developers choose between antd widgets and "vanilla" ones. |
@ukrbublik I have same issue it messes up all my styles can i isolate query builder's styles , is there any workaround ? |
@bilal-rao , not really clear one, but it works - import any component of |
@vitali-svishchou Thanks |
Yes, this makes it impossible to integrate into existing project, but thanks to @vitali-svishchou comments I found the workaround: While this is super awkward, it worked. |
@OrDuan We ran into the same issue and your solution works! But instead of importing and re-exporting |
I have suggested a solution here, but you have to fork the repo. |
See latest version: |
I have a project and I wanted to integrate this query builder into it, but it messes up all my styles. Can anyone help me to find a way to "isolate" query builder own styles from the rest of the styles from the application?
The text was updated successfully, but these errors were encountered: