-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(input): [input] fix input small size of font #2203
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
Comment on lines
+21
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Action Required: The new variable
🔗 Analysis chainApproved: New variable for small input font size The addition of However, I have a few suggestions and questions:
To verify the usage of this new variable, please run the following script: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for usage of the new --tv-Input-small-font-size variable
# Search for the new variable in .vue, .js, .ts, and .less files
echo "Searching for usage of --tv-Input-small-font-size:"
rg --type vue --type js --type ts --type less "tv-Input-small-font-size"
# If no results, it might not be used yet
if [ $? -ne 0 ]; then
echo "The new variable --tv-Input-small-font-size is not used in any .vue, .js, .ts, or .less files."
echo "Please ensure it's applied where needed to fix the small input font size issue."
fi
Length of output: 600 |
||
// 输入框高度v | ||
--tv-Input-height: var(--tv-size-height-md); | ||
// 输入框边框圆角 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using a different font size for mini inputs.
While the addition of the font size for the mini input's inner element is consistent with the PR objective, it currently uses the same variable as the small input (
var(--tv-Input-small-font-size)
).Mini inputs are typically smaller than small inputs. Consider creating a new variable for mini input font size, e.g.,
var(--tv-Input-mini-font-size)
, and use it here:Don't forget to define this new variable in the appropriate variables file (likely
vars.less
).