-
-
Notifications
You must be signed in to change notification settings - Fork 50.1k
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: uniformly set height and border on inputs #43548
Conversation
Run & review this pull request in StackBlitz Codeflow. |
components/input/style/index.ts
Outdated
@@ -139,6 +139,7 @@ export const genBasicInputStyle = (token: InputToken): CSSObject => ({ | |||
position: 'relative', | |||
display: 'inline-block', | |||
width: '100%', | |||
height: token.controlHeight - 2 * token.lineWidth, |
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.
建议改 InputNumber 成 Input 这种实现方式,因为 Input 用的比较多,之前 InputNumber 也是这样的。
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.
e0722c8
to
b85f024
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #43548 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 648 657 +9
Lines 10957 11064 +107
Branches 2975 2999 +24
==========================================
+ Hits 10957 11064 +107
☔ View full report in Codecov by Sentry. |
b85f024
to
846fb6c
Compare
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
846fb6c
to
3e9f61e
Compare
9e0b348
to
8fdbd94
Compare
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
close #43528
💡 Background and solution
uniformly set height and border on inputs
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at e0722c8
This pull request enhances the style and consistency of the
InputNumber
andInput
components. It removes the redundant border from theInputNumber
wrapper and adjusts the height calculation of theInput
component.🔍 Walkthrough
🤖 Generated by Copilot at e0722c8