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
We are using Ant Design Icons in various WordPress plugins. For this, we need to use IconProvider with a custom prefixCls. Unfortunately, the styles for the second instance of enqueued icons does not get inserted into the DOM as antd-design-icons is already available in the DOM:
Hey!
We are using Ant Design Icons in various WordPress plugins. For this, we need to use
IconProvider
with a customprefixCls
. Unfortunately, the styles for the second instance of enqueued icons does not get inserted into the DOM asantd-design-icons
is already available in the DOM:ant-design-icons/packages/icons-react/src/utils.ts
Line 169 in 11966e4
To fix this, we apply currently a custom patch through
patch-package
:Is there any reason why
prefixCls
is not used for the unique ID of the stylesheet? 😊The text was updated successfully, but these errors were encountered: