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: Select alignment issue when label is Typography #44756
Conversation
Run & review this pull request in StackBlitz Codeflow. |
size-limit report 📦
|
50a9a20
to
788a3ca
Compare
@@ -239,7 +239,14 @@ const genBaseStyle: GenerateStyle<SelectToken> = (token) => { | |||
[`${componentCls}-selection-item`]: { | |||
flex: 1, | |||
fontWeight: 'normal', | |||
position: 'relative', | |||
userSelect: 'none', |
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.
两段重复的代码也合并过来。
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #44756 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 680 680
Lines 11417 11417
Branches 3073 3073
=========================================
Hits 11417 11417
☔ View full report in Codecov by Sentry. |
// https://github.com/ant-design/ant-design/issues/40421 | ||
[`> ${antCls}-typography`]: { | ||
display: 'inline', | ||
}, |
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.
这段代码导致 #46636 错误
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
close #40421
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 50a9a20
Fixed some style issues and bugs in the
select
component and its variants. Added a newantCls
property to thegenSizeStyle
function to support customizing the ant design class prefix.🔍 Walkthrough
🤖 Generated by Copilot at 50a9a20
antCls
property totoken
parameter ofgenSizeStyle
function in bothmultiple.tsx
andsingle.tsx
files to access ant-design prefix class name for typography components (link, link)genSizeStyle
function in bothmultiple.tsx
andsingle.tsx
files to fix overflow bug for select components (link, link)