-
-
Notifications
You must be signed in to change notification settings - Fork 51.4k
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: inputNumber has 1px difference with input on the baseline #43534
Conversation
|
|
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #43534 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 648 657 +9
Lines 10957 11047 +90
Branches 2975 2990 +15
=========================================
+ Hits 10957 11047 +90
☔ View full report in Codecov by Sentry. |
@@ -62,6 +62,7 @@ const genInputNumberStyles: GenerateStyle<InputNumberToken> = (token: InputNumbe | |||
padding: 0, | |||
border: `${lineWidth}px ${lineType} ${colorBorder}`, | |||
borderRadius, | |||
verticalAlign: 'bottom', |
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.
不应该动这个,这个会导致和其他组件对不齐。
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.
解法在 #43528 (comment)
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.
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.
新解法已提 #43548
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
#43528
💡 Background and solution
add 'verticalAlign: 'bottom' css style for class ’ant-input-number‘
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 978286a
Fix input number alignment with suffix icon. Add
verticalAlign
style tocomponents/input-number/style/index.ts
to adjust the position of the input number component.🔍 Walkthrough
🤖 Generated by Copilot at 978286a