-
-
Notifications
You must be signed in to change notification settings - Fork 50.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
style: fix Select baseline align bug #44927
Conversation
Run & review this pull request in StackBlitz Codeflow. |
/* For undefined value baseline align */ | ||
`${componentCls}-selection-placeholder:after`, | ||
`${componentCls}-selection-placeholder:empty:after`, |
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.
在 components/input/demo/align.tsx 里补充了这两个样式的使用场景,发现只有 :empty 的时候是需要的。在其他情况下去掉可解决 #44907 的问题。
36e7a4a
to
a717443
Compare
size-limit report 📦
|
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 #44927 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 682 682
Lines 11540 11540
Branches 3105 3105
=========================================
Hits 11540 11540
☔ View full report in Codecov by Sentry. |
</Select> | ||
<Select style={{ width: 100 }} defaultValue="jack" options={selectOptions} /> | ||
<Select style={{ width: 100 }} defaultValue="" options={selectOptions} /> | ||
<Select style={{ width: 100 }} options={selectOptions} /> |
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.
增加一个覆盖这个对应问题的 demo,比如 {label: <div>Tes </div>, value: 'xxx'}
会不会好些。
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.
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
close #44907
ref antvis/L7VP#28
💡 Background and solution
📝 Changelog
label
containsdiv
element.label
内使用了div
块级元素时的样式问题。☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 2f4e965
This pull request enhances the demos and fixes a bug related to the alignment of the
Input
andSelect
components. It adds titles and more cases to thealign
demo of theInput
component, and improves theoption-label-center
demo of theSelect
component. It also fixes the baseline alignment of the single style of theSelect
component when the value is empty or undefined.🔍 Walkthrough
🤖 Generated by Copilot at 2f4e965