-
-
Notifications
You must be signed in to change notification settings - Fork 49.8k
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
style: addon size should inherit from props #44000
Conversation
Run & review this pull request in StackBlitz Codeflow. |
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
components/input/style/index.ts
Outdated
}, | ||
}, | ||
'&-sm': { | ||
[`${componentCls}-group-addon`]: { | ||
borderRadius: borderRadiusSM, | ||
fontSize: token.fontSizeSM, |
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.
小号的不一定要改,字体大小应该要和 input 一致
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.
好的,addon 会默认给 14
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #44000 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 658 658
Lines 11170 11170
Branches 3025 3025
=========================================
Hits 11170 11170
☔ View full report in Codecov by Sentry. |
addon 字体变化导致演示整体宽度变小的联动变化,符合预期。 |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
close #43993
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 7eea7c1
This pull request enhances the input and input number components to support different font sizes based on the
size
prop. It updates the style filescomponents/input/style/index.ts
andcomponents/input-number/style/index.ts
to use the theme size tokens.🔍 Walkthrough
🤖 Generated by Copilot at 7eea7c1