Skip to content

Commit

Permalink
Merge pull request #464 from oceanbase/dengfuping-design-style-priority
Browse files Browse the repository at this point in the history
[Feature Branch] improve(design): style order should behind of antd to cover it
  • Loading branch information
dengfuping authored Feb 6, 2024
2 parents 9b6e459 + ada947a commit f5c04c3
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 f5c04c3

Please sign in to comment.