From 67716c65e3dfe408d7b1a6b3bed7559b21ff91a0 Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 11 May 2020 07:27:13 +0800 Subject: [PATCH] style(Rate): update rate disabled color (#6253) --- src/rate/README.md | 2 +- src/rate/README.zh-CN.md | 2 +- src/style/var.less | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rate/README.md b/src/rate/README.md index a32103310..d38d5d33f 100644 --- a/src/rate/README.md +++ b/src/rate/README.md @@ -107,7 +107,7 @@ export default { | gutter | Icon gutter | _number \| string_ | `4px` | | color | Selected color | _string_ | `#ffd21e` | | void-color | Void color | _string_ | `#c8c9cc` | -| disabled-color | Disabled color | _string_ | `#bdbdbd` | +| disabled-color | Disabled color | _string_ | `#c8c9cc` | | icon | Selected icon | _string_ | `star` | | void-icon | Void icon | _string_ | `star-o` | | icon-prefix `v2.5.3` | Icon className prefix | _string_ | `van-icon` | diff --git a/src/rate/README.zh-CN.md b/src/rate/README.zh-CN.md index 1a9b5f69a..7d512a064 100644 --- a/src/rate/README.zh-CN.md +++ b/src/rate/README.zh-CN.md @@ -107,7 +107,7 @@ export default { | gutter | 图标间距,默认单位为`px` | _number \| string_ | `4px` | | color | 选中时的颜色 | _string_ | `#ffd21e` | | void-color | 未选中时的颜色 | _string_ | `#c8c9cc` | -| disabled-color | 禁用时的颜色 | _string_ | `#bdbdbd` | +| disabled-color | 禁用时的颜色 | _string_ | `#c8c9cc` | | icon | 选中时的[图标名称](#/zh-CN/icon)或图片链接 | _string_ | `star` | | void-icon | 未选中时的[图标名称](#/zh-CN/icon)或图片链接 | _string_ | `star-o` | | icon-prefix `v2.5.3` | 图标类名前缀,同 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props) | _string_ | `van-icon` | diff --git a/src/style/var.less b/src/style/var.less index a29dda845..12e85f506 100644 --- a/src/style/var.less +++ b/src/style/var.less @@ -580,10 +580,10 @@ // Rate @rate-icon-size: 20px; -@rate-icon-gutter: 4px; +@rate-icon-gutter: @padding-base; @rate-icon-void-color: @gray-5; @rate-icon-full-color: #ffd21e; -@rate-icon-disabled-color: #bdbdbd; +@rate-icon-disabled-color: @gray-5; // ShareSheet @share-sheet-header-padding: @padding-sm @padding-md @padding-base;