ant-design / ant-design/pro-components

🧐[问题]切换主题后,多选卡片主题色未生效

Open
#8,633 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

![image](https://github.com/user-attachments/assets/4ed36ce9-e3a6-4f35-9e73-0782360bb013)

图中,其他位置颜色已经切换了。多选卡片好像存在样式,但是是被覆盖的。下面是app的样式切换
```
import { RouterProvider } from 'react-router-dom'
import { ConfigProvider, App, theme } from 'antd'
import router from './router'
import AntdGlobal from './utils/AntdGlobal';
import { useUserStore } from '@/store/useUserStore';

export default () => {
const isDark = useUserStore(state => state.isDark)
return (






)
}

```

页面需要刷新,主题色样式才能生效
![image](https://github.com/user-attachments/assets/dc929aa4-1105-4d54-8685-174cfd66a930)

Contributor guide

Open the contributing guide

Research direction

Start with the provided ConfigProvider theme setup and reproduce the multi-select card color issue by switching themes without refreshing. Inspect which card styles are overridden and verify that the multi-select card colors update immediately after the theme changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.