-
Notifications
You must be signed in to change notification settings - Fork 266
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
Button:自定义主题后,danger Button 颜色不正确 #1807
Comments
使用 CSS Variables 进行主题配置 --nutui-brand-8: #1677ff,Primary Button 颜色仍然为京东红,2.3.2版 |
Primary Button 的背景色是采用的渐变模式,可以修改 $color-primary-stop-1和 $color-primary-stop-2。色值之间还不具备联动逻辑。 |
你应该在你的主题中修改 $color-danger,或者修改 --nutui-color-danger。像下面这样
|
我有个疑问,为什么 // 成功
$color-success: var(--nutui-color-success, #00bc14) !default;
$color-success-pressed: var(--nutui-color-success-pressed) !default;
$color-success-disabled: var(--nutui-color-success-disabled, #b2f0ae) !default;
$color-success-light: var(--nutui-color-success-light) !default;
$color-success-background: var(--nutui-color-success-background) !default;
// 警告
$color-warning: var(--nutui-color-warning, rgba(255, 158, 13, 1)) !default;
$color-warning-pressed: var(--nutui-color-warning-pressed) !default;
$color-warning-disabled: var(--nutui-color-warning-disabled, #fdd3b9) !default;
$color-warning-light: var(--nutui-color-warning-light) !default;
$color-warning-background: var(--nutui-color-warning-background) !default;
// 危险
$color-danger: var(--nutui-color-danger, $color-primary) !default;
$color-danger-pressed: var(--nutui-color-danger-pressed) !default;
$color-danger-disabled: var(
--nutui-color-danger-disabled,
$color-primary-disabled
) !default; |
我觉得你说的有道理,我们修订一下。 |
点赞! |
代码已合并~~ |
NutUI React 包名
@nutui/nutui-react-taro
NutUI React 版本号
2.3.2
平台
weapp
重现链接
https://github.com/vczyh/taro-nutui-test/tree/loading-button-color
重现步骤
期望的结果是什么?
虽然自定义 brand 颜色为蓝色, danger type button 按钮依然应该是偏红色
实际的结果是什么?
环境信息
No response
其他补充信息
No response
The text was updated successfully, but these errors were encountered: