Skip to content

Commit

Permalink
improve(design): style order should behind of antd to cover it
Browse files Browse the repository at this point in the history
  • Loading branch information
dengfuping committed Feb 5, 2024
1 parent 9b6e459 commit ada947a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/design/src/_util/genComponentStyleHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ada947a

Please sign in to comment.