From ada947ae5d7cd96e27c76880bb12b726c3bc5ccc Mon Sep 17 00:00:00 2001 From: dengfuping Date: Mon, 5 Feb 2024 21:00:36 +0800 Subject: [PATCH] improve(design): style order should behind of antd to cover it --- packages/design/src/_util/genComponentStyleHook.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/design/src/_util/genComponentStyleHook.ts b/packages/design/src/_util/genComponentStyleHook.ts index 8d359f8af..f32a1c847 100644 --- a/packages/design/src/_util/genComponentStyleHook.ts +++ b/packages/design/src/_util/genComponentStyleHook.ts @@ -25,6 +25,10 @@ export function genComponentStyleHook( getDefaultToken, { resetStyle: false, + // antd style order is -999 and -998 + // ref: https://github.com/ant-design/ant-design/blob/master/components/theme/util/genComponentStyleHook.tsx#L175 + // obui style order should behind to cover it + order: -900, } ); const [wrapSSR] = useStyle(prefixCls);