Skip to content

Commit

Permalink
fix(input): [input] fix input small size of font
Browse files Browse the repository at this point in the history
  • Loading branch information
zzcr committed Sep 28, 2024
1 parent 9a6114e commit 91eb4a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/theme/src/input/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,19 @@

&-small {
.input-size(var(--tv-Input-small-height));
.@{input-prefix-cls}__inner {
font-size: var(--tv-Input-small-font-size);
}
.@{input-prefix-cls}__suffix {
top: var(--tv-Input-suffix-top-small);
}
}

&-mini {
.input-size(var(--tv-Input-mini-height));
.@{input-prefix-cls}__inner {
font-size: var(--tv-Input-small-font-size);
}
.@{input-prefix-cls}__suffix {
top: var(--tv-Input-suffix-top-mini);
}
Expand Down
2 changes: 2 additions & 0 deletions packages/theme/src/input/vars.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
--tv-Input-font-size: var(--tv-font-size-md);
// 输入框计数器字体大小
--tv-Input-count-font-size: var(--tv-font-size-sm);
// small和mini尺寸字体大小
--tv-Input-small-font-size: var(--tv-font-size-sm);
// 输入框高度v
--tv-Input-height: var(--tv-size-height-md);
// 输入框边框圆角
Expand Down

0 comments on commit 91eb4a4

Please sign in to comment.