$uni-color-primary: #FC6A17;
button[type=primary],固定蓝色

- 发布:2020-12-30 11:51
- 更新:2023-07-18 09:54
- 阅读:1113
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 10.13.6 (17G7024)
HBuilderX类型: Alpha
HBuilderX版本号: 3.0.3
手机系统: Android
手机系统版本号: Android 10
手机厂商: 小米
手机机型: 红米note8 pro
页面类型: vue
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
$uni-color-primary: #FC6A17;
button[type=primary] ,随着 uni.scss 配色,$uni-color-primary 变化
$uni-color-primary: #FC6A17;
button[type=primary] ,随着 uni.scss 配色,$uni-color-primary 变化
实际结果:
button[type=primary] , 现在固定蓝色,不会变化
button[type=primary] , 现在固定蓝色,不会变化
bug描述:
uni.scss中配置全局统一色
$uni-color-primary: #FC6A17;
但是发现
button[type=primary],没有随着uni.scss配色而变化,源码里固定是蓝色
我要统一UI,可以改下吗?
3 个回复
1***@qq.com (作者)
我看uni-ui源码里所有组件默认颜色都是 #007aff,没有选择uni.scss配色,尴尬了
j***@163.com
现在有解决方案了吗?
火柴天常 - 70后的新手
自己再定议一下
uni-button[type='primary'] {
background-color: $uni-color-primary !important;
}