diff --git a/packages/vant/src/field/README.md b/packages/vant/src/field/README.md index f86ebe837..fb9b9c2e9 100644 --- a/packages/vant/src/field/README.md +++ b/packages/vant/src/field/README.md @@ -367,7 +367,7 @@ The component provides the following CSS variables, which can be used to customi | --van-field-clear-icon-color | _var(--van-gray-5)_ | - | | --van-field-right-icon-color | _var(--van-gray-6)_ | - | | --van-field-error-message-color | _var(--van-danger-color)_ | - | -| --van-field-error-message-text-color | _12px_ | - | +| --van-field-error-message-font-size | _12px_ | - | | --van-field-text-area-min-height | _60px_ | - | | --van-field-word-limit-color | _var(--van-gray-7)_ | - | | --van-field-word-limit-font-size | _var(--van-font-size-sm)_ | - | diff --git a/packages/vant/src/field/README.zh-CN.md b/packages/vant/src/field/README.zh-CN.md index 476768d6b..d75af53e2 100644 --- a/packages/vant/src/field/README.zh-CN.md +++ b/packages/vant/src/field/README.zh-CN.md @@ -386,7 +386,7 @@ fieldRef.value?.focus(); | --van-field-clear-icon-color | _var(--van-gray-5)_ | - | | --van-field-right-icon-color | _var(--van-gray-6)_ | - | | --van-field-error-message-color | _var(--van-danger-color)_ | - | -| --van-field-error-message-text-color | _12px_ | - | +| --van-field-error-message-font-size | _12px_ | - | | --van-field-text-area-min-height | _60px_ | - | | --van-field-word-limit-color | _var(--van-gray-7)_ | - | | --van-field-word-limit-font-size | _var(--van-font-size-sm)_ | - | diff --git a/packages/vant/src/field/index.less b/packages/vant/src/field/index.less index 3ee6201cf..b7ecc2d9a 100644 --- a/packages/vant/src/field/index.less +++ b/packages/vant/src/field/index.less @@ -14,7 +14,7 @@ --van-field-clear-icon-color: @field-clear-icon-color; --van-field-right-icon-color: @field-right-icon-color; --van-field-error-message-color: @field-error-message-color; - --van-field-error-message-text-color: @field-error-message-text-color; + --van-field-error-message-font-size: @field-error-message-font-size; --van-field-text-area-min-height: @field-text-area-min-height; --van-field-word-limit-color: @field-word-limit-color; --van-field-word-limit-font-size: @field-word-limit-font-size; @@ -175,7 +175,7 @@ &__error-message { color: var(--van-field-error-message-color); - font-size: var(--van-field-error-message-text-color); + font-size: var(--van-field-error-message-font-size); text-align: left; &--center { diff --git a/packages/vant/src/field/var.less b/packages/vant/src/field/var.less index 36b0e6525..a3764c5b6 100644 --- a/packages/vant/src/field/var.less +++ b/packages/vant/src/field/var.less @@ -12,7 +12,7 @@ @field-clear-icon-color: var(--van-gray-5); @field-right-icon-color: var(--van-gray-6); @field-error-message-color: var(--van-danger-color); -@field-error-message-text-color: 12px; +@field-error-message-font-size: 12px; @field-text-area-min-height: 60px; @field-word-limit-color: var(--van-gray-7); @field-word-limit-font-size: var(--van-font-size-sm);