-
Notifications
You must be signed in to change notification settings - Fork 29
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
使用umi用global.less时@primary-color不能随着主题切换颜色 #6
Comments
同样的疑问 有新版本了吗 |
同样问题: 切换主题后,@primayr-color不变 |
我忽略了一下 global.less ,不知道为什么 |
@chenshuai2144 能不能抽时间看一下~~~ |
@Nokecy 先不要在 global.less 里面用规避一下 |
我的理解是,@primary-color是定制antd组件主题用的,自己写的代码(覆盖antd组件与页面样式)要用css3 var处理,不知道理解是否正确? |
作者抽取样式的时候需要给每个css_module的类名重命名,如果不规避 global.less 的话,global.less里的类名会被多加一些前缀,导致样式不生效。 |
同样的疑问 有新版本了吗 |
global.less 这个文件被忽略了,要搞就需要不忽略 global.less,有点麻烦 |
ant-design/ant-design-pro#3020 @primary-color 默认一直是蓝色
The text was updated successfully, but these errors were encountered: