Skip to content
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

Revert "fix(select): Fix Typography component is not centered in the Select component" #43097

Merged
merged 1 commit into from Jun 21, 2023

Conversation

Yuiai01
Copy link
Contributor

@Yuiai01 Yuiai01 commented Jun 19, 2023

This reverts commit 2e9d14f.

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Workflow
  • Other (about what?)

🔗 Related issue link

close #43069
revert #40422
reopen #40421

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English Revert code
🇨🇳 Chinese 回滚代码

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

🚀 Summary

🤖 Generated by Copilot at f31fd93

This pull request fixes a bug where the option labels in the select component are not aligned with the input value when using the labelInValue prop. It removes the unnecessary ellipsis style and the outdated example from the documentation.

🔍 Walkthrough

🤖 Generated by Copilot at f31fd93

  • Remove the example of using labelInValue to center option labels in the select component, as it is no longer needed after fixing the alignment bug (link, link, link, link)
  • Remove the CSS rule that applies the textEllipsis mixin to the direct children of the select dropdown menu, as it causes the option labels to be misaligned with the input value (link, link)

@github-actions
Copy link
Contributor

github-actions bot commented Jun 19, 2023

@codecov
Copy link

codecov bot commented Jun 19, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (33fab22) 100.00% compared to head (c396792) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master    #43097   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          648       648           
  Lines        10957     10957           
  Branches      2975      2975           
=========================================
  Hits         10957     10957           
Impacted Files Coverage Δ
components/select/style/dropdown.tsx 100.00% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@MadCcc
Copy link
Member

MadCcc commented Jun 19, 2023

demo 还是留一下?看看其他方式解决问题

@Yuiai01
Copy link
Contributor Author

Yuiai01 commented Jun 19, 2023

demo 还是留一下?看看其他方式解决问题

好~

@afc163 afc163 merged commit 8afeb6b into ant-design:master Jun 21, 2023
52 checks passed
@PeachScript PeachScript mentioned this pull request Jun 25, 2023
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Select 选项配合 Badge 或 Tag 使用,选项内容底部有多余空隙
3 participants