diff --git a/components/theme/util/useResetIconStyle.ts b/components/theme/util/useResetIconStyle.ts index 56eae028cf..237f62a41a 100644 --- a/components/theme/util/useResetIconStyle.ts +++ b/components/theme/util/useResetIconStyle.ts @@ -1,11 +1,12 @@ import { useStyleRegister } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs'; +import { defaultIconPrefixCls } from '../../config-provider'; import type { CSPConfig } from '../../config-provider'; import { resetIcon } from '../../style'; import useToken from '../useToken'; -export const genIconStyle = (iconPrefixCls = 'anticon'): CSSObject => ({ +export const genIconStyle = (iconPrefixCls = defaultIconPrefixCls): CSSObject => ({ [`.${iconPrefixCls}`]: { ...resetIcon(), [`.${iconPrefixCls} .${iconPrefixCls}-icon`]: {