Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance: antd style at top #43847

Merged
merged 1 commit into from Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions components/theme/util/genComponentStyleHook.ts
Expand Up @@ -76,6 +76,9 @@ export default function genComponentStyleHook<ComponentName extends OverrideComp
hashId,
nonce: () => csp?.nonce!,
clientOnly: options?.clientOnly,

// antd is always at top of styles
order: -999,
yoyo837 marked this conversation as resolved.
Show resolved Hide resolved
};

// Generate style for all a tags in antd component.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -109,7 +109,7 @@
],
"dependencies": {
"@ant-design/colors": "^7.0.0",
"@ant-design/cssinjs": "^1.14.0",
"@ant-design/cssinjs": "^1.16.0",
"@ant-design/icons": "^5.1.0",
"@ant-design/react-slick": "~1.0.0",
"@babel/runtime": "^7.18.3",
Expand Down