From 8db19b76c2604f6e77682a3de643840bbf864819 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 29 Oct 2021 17:03:32 +0800 Subject: [PATCH] style(Card): adjust background color to gray-1 (#9753) --- packages/vant/src/card/README.md | 2 +- packages/vant/src/card/README.zh-CN.md | 2 +- packages/vant/src/card/var.less | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/vant/src/card/README.md b/packages/vant/src/card/README.md index f7eed7dcf..4c0ec8339 100644 --- a/packages/vant/src/card/README.md +++ b/packages/vant/src/card/README.md @@ -127,7 +127,7 @@ The component provides the following CSS variables, which can be used to customi | --van-card-padding | _var(--van-padding-xs) var(--van-padding-md)_ | - | | --van-card-font-size | _var(--van-font-size-sm)_ | - | | --van-card-text-color | _var(--van-text-color)_ | - | -| --van-card-background-color | _var(--van-background-color-light)_ | - | +| --van-card-background-color | _var(--van-gray-1)_ | - | | --van-card-thumb-size | _88px_ | - | | --van-card-thumb-border-radius | _var(--van-border-radius-lg)_ | - | | --van-card-title-line-height | _16px_ | - | diff --git a/packages/vant/src/card/README.zh-CN.md b/packages/vant/src/card/README.zh-CN.md index 9ba8c9ab9..600f7ff64 100644 --- a/packages/vant/src/card/README.zh-CN.md +++ b/packages/vant/src/card/README.zh-CN.md @@ -129,7 +129,7 @@ import type { CardProps } from 'vant'; | --van-card-padding | _var(--van-padding-xs) var(--van-padding-md)_ | - | | --van-card-font-size | _var(--van-font-size-sm)_ | - | | --van-card-text-color | _var(--van-text-color)_ | - | -| --van-card-background-color | _var(--van-background-color-light)_ | - | +| --van-card-background-color | _var(--van-gray-1)_ | - | | --van-card-thumb-size | _88px_ | - | | --van-card-thumb-border-radius | _var(--van-border-radius-lg)_ | - | | --van-card-title-line-height | _16px_ | - | diff --git a/packages/vant/src/card/var.less b/packages/vant/src/card/var.less index f06250d93..922455aa8 100644 --- a/packages/vant/src/card/var.less +++ b/packages/vant/src/card/var.less @@ -3,7 +3,7 @@ @card-padding: var(--van-padding-xs) var(--van-padding-md); @card-font-size: var(--van-font-size-sm); @card-text-color: var(--van-text-color); -@card-background-color: var(--van-background-color-light); +@card-background-color: var(--van-gray-1); @card-thumb-size: 88px; @card-thumb-border-radius: var(--van-border-radius-lg); @card-title-line-height: 16px;