From 8e98e9744939003f1679b465ccd5124539a99f36 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Thu, 27 Jan 2022 11:07:02 +0800 Subject: [PATCH] style(Field): adjust label color --- packages/vant-cli/site/mobile/components/DemoNav.vue | 2 +- packages/vant/docs/markdown/changelog-v4.zh-CN.md | 1 + packages/vant/src/field/README.md | 2 +- packages/vant/src/field/README.zh-CN.md | 2 +- packages/vant/src/field/index.less | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/vant-cli/site/mobile/components/DemoNav.vue b/packages/vant-cli/site/mobile/components/DemoNav.vue index 54a88d7d8..bb6a3f3ad 100644 --- a/packages/vant-cli/site/mobile/components/DemoNav.vue +++ b/packages/vant-cli/site/mobile/components/DemoNav.vue @@ -42,7 +42,7 @@ export default { align-items: center; justify-content: center; height: 56px; - background-color: var(--van-doc-background-2); + background-color: var(--van-doc-background-3); &__title { font-weight: 600; diff --git a/packages/vant/docs/markdown/changelog-v4.zh-CN.md b/packages/vant/docs/markdown/changelog-v4.zh-CN.md index 7fae564d3..2e3cc75a3 100644 --- a/packages/vant/docs/markdown/changelog-v4.zh-CN.md +++ b/packages/vant/docs/markdown/changelog-v4.zh-CN.md @@ -29,3 +29,4 @@ - Button: 默认圆角大小从 `2px` 调整为 `4px` - Button: 默认按钮的边框颜色调整为 `--van-gray-4` - Button: 调整 `font-smoothing`,默认使用粗体文字 +- Field: 调整 `--van-field-label-color` 变量的默认值为 `--van-text-color` diff --git a/packages/vant/src/field/README.md b/packages/vant/src/field/README.md index 3aa306c53..076572a2b 100644 --- a/packages/vant/src/field/README.md +++ b/packages/vant/src/field/README.md @@ -361,7 +361,7 @@ The component provides the following CSS variables, which can be used to customi | Name | Default Value | Description | | --- | --- | --- | | --van-field-label-width | _6.2em_ | - | -| --van-field-label-color | _var(--van-gray-7)_ | - | +| --van-field-label-color | _var(--van-text-color)_ | - | | --van-field-label-margin-right | _var(--van-padding-sm)_ | - | | --van-field-input-text-color | _var(--van-text-color)_ | - | | --van-field-input-error-text-color | _var(--van-danger-color)_ | - | diff --git a/packages/vant/src/field/README.zh-CN.md b/packages/vant/src/field/README.zh-CN.md index c8cc26688..c7db4b0d3 100644 --- a/packages/vant/src/field/README.zh-CN.md +++ b/packages/vant/src/field/README.zh-CN.md @@ -380,7 +380,7 @@ fieldRef.value?.focus(); | 名称 | 默认值 | 描述 | | ------------------------------------- | ------------------------- | ---- | | --van-field-label-width | _6.2em_ | - | -| --van-field-label-color | _var(--van-gray-7)_ | - | +| --van-field-label-color | _var(--van-text-color)_ | - | | --van-field-label-margin-right | _var(--van-padding-sm)_ | - | | --van-field-input-text-color | _var(--van-text-color)_ | - | | --van-field-input-error-text-color | _var(--van-danger-color)_ | - | diff --git a/packages/vant/src/field/index.less b/packages/vant/src/field/index.less index d13b78897..5b4bcfc98 100644 --- a/packages/vant/src/field/index.less +++ b/packages/vant/src/field/index.less @@ -1,6 +1,6 @@ body { --van-field-label-width: 6.2em; - --van-field-label-color: var(--van-gray-7); + --van-field-label-color: var(--van-text-color); --van-field-label-margin-right: var(--van-padding-sm); --van-field-input-text-color: var(--van-text-color); --van-field-input-error-text-color: var(--van-danger-color);