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
antd.css is overriding existing css in entire application #4546
Comments
Yep, it's recommended to use |
Is it on your road map? I've partially worked around this issue by including antd css first then my own css so that antd gets overwritten by mine, obviously this isn't ideal. |
I've found a work around by removing all the CSS rules based on Tags like html, body, a, h1 etc... Only kept CSS rules based on classes. It's helping for now. |
I also thought of copying the css out and remove those global rules. but this is a hacky approach and will make my code out of sync with the latest code base -- it could be broken anytime after a |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Environment(required)
What did you do? Please provide steps to re-produce your problem.
I Included the antd.css file at application level along with other css files. After reloading the browser, I see that all rules I have written before are overridden by the rules in antd.css
What do you expected?
I want the antd.css to be applied only for specific component which is used. Don't want existing style to be altered.
The text was updated successfully, but these errors were encountered: