Open meded90 opened 1 year ago
have you found any solution? @meded90
You can call OverloadStyle
at the bottom of react tree after app
<>
<App/>
<OverloadStyle/>
</>
but at the same time, it is important that the components you override must be initialized, if you have asynchronous loading of modules this may not work. so i just use !important
srsly? you just recommend to put !important? better rename class to css-dev-only-do-not-override-just-use-important-for-hashPriority
I want to customize the styles of some antd components written in cssinjs.
I created a HOC component to access the theme and override some styles and call it after defining the providers
but there was a problem with style priority
calling !important is not the best way
![Uploading image.png…]()
how to make those styles which I define were below? Or are there other more convenient ways to extend the standard styles?
https://stackoverflow.com/questions/75286685/overriding-styles-antd-component-on-v5