ant-design / ant-design/pro-components
🧐[问题]切换主题后,多选卡片主题色未生效
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description

图中,其他位置颜色已经切换了。多选卡片好像存在样式,但是是被覆盖的。下面是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 (
)
}
```
页面需要刷新,主题色样式才能生效

Contributor 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