You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why?
I make some browser extensions with antd as ui lib. But when import style inside content scripts all style are conflict with styles where script injected.
What I made before write this question?
I tried to use css modules. This solution partly resolve my problem.
Problem of this solution.
Class attribute stay have class names without prefix. This is ok, but if this component was injected to some site where used antd it may broke my styles.
Example: ant-card ant-card-bordered index__ant-card___1z_hk index__ant-card-bordered___1oQG5
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I wan to isolate antd styles.
Why?
I make some browser extensions with antd as ui lib. But when import style inside content scripts all style are conflict with styles where script injected.
What I made before write this question?
I tried to use css modules. This solution partly resolve my problem.
Problem of this solution.
Class attribute stay have class names without prefix. This is ok, but if this component was injected to some site where used antd it may broke my styles.
Example:
ant-card ant-card-bordered index__ant-card___1z_hk index__ant-card-bordered___1oQG5
Beta Was this translation helpful? Give feedback.
All reactions