Skip to content

Cannot use custom prefixCls with custom theme color #6052

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

Closed
1 task done
lchrennew opened this issue Oct 25, 2022 · 4 comments
Closed
1 task done

Cannot use custom prefixCls with custom theme color #6052

lchrennew opened this issue Oct 25, 2022 · 4 comments

Comments

@lchrennew
Copy link
Contributor

lchrennew commented Oct 25, 2022

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.3.0-beta.2

Environment

macOS Monterey 12.2.1; Chrome 99.0.4844.51; Vue 3.2.31

Reproduction link

https://github.dev/vueComponent/ant-design-vue/blob/main/components/config-provider/index.tsx

Steps to reproduce

  1. 设置好config-provider的prefix-cls="demo"
  2. 设置好ConfigProvider.config({theme:{primaryColor: red,}, prefixCls="demo"})
  3. 查看页面颜色

What is expected?

主题变红色

What is actually happening?

还是蓝色

@github-actions github-actions bot changed the title const dynamicStyleMark = -ant-${Date.now()}-${Math.random()}; 无法使用自定义前缀 const dynamicStyleMark = -ant-${Date.now()}-${Math.random()}; cannot use custom prefix Oct 25, 2022
@lchrennew lchrennew changed the title const dynamicStyleMark = -ant-${Date.now()}-${Math.random()}; cannot use custom prefix Cannot use custom prefixCls with custom theme color Oct 26, 2022
@lchrennew
Copy link
Contributor Author

临时解决方案是把node_modules/ant-design-vue/lib/config-provider/index.js里的默认前缀也改掉

@github-actions
Copy link

Hello @lchrennew. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please send your Pull Request to proper branch, fill the Pull Request Template here, provide changelog/TypeScript/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!

你好 @lchrennew,我们完全同意你的提议/反馈,欢迎直接在此仓库创建一个 Pull Request 来解决这个问题。请将 Pull Request 发到正确的分支,务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、TypeScript 定义、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。

@lchrennew
Copy link
Contributor Author

lchrennew commented Oct 30, 2022

@tangjinzhou 已经提交PR,麻烦帮忙审核
#6063

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants