mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
style(Field): adjust label color
This commit is contained in:
parent
f5c32c29f1
commit
8e98e97449
@ -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;
|
||||
|
@ -29,3 +29,4 @@
|
||||
- Button: 默认圆角大小从 `2px` 调整为 `4px`
|
||||
- Button: 默认按钮的边框颜色调整为 `--van-gray-4`
|
||||
- Button: 调整 `font-smoothing`,默认使用粗体文字
|
||||
- Field: 调整 `--van-field-label-color` 变量的默认值为 `--van-text-color`
|
||||
|
@ -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)_ | - |
|
||||
|
@ -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)_ | - |
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user