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

Collapse title doesn't align vertically with button-based extra #29168

Closed
1 task done
tracyhenry opened this issue Feb 1, 2021 · 5 comments
Closed
1 task done

Collapse title doesn't align vertically with button-based extra #29168

tracyhenry opened this issue Feb 1, 2021 · 5 comments
Labels
🎱 Collaborate PR only Need confirm with Designer or Core member Inactive

Comments

@tracyhenry
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Open the sandbox link. Make the browser panel narrower so you can compare the altitude of the titles and the buttons.

What is expected?

The button extra should be vertically aligned with the collapse title.

What is actually happening?

The button extra is not vertically aligned with the collapse title. The collapse title is higher. This issue should exist with all button types.

Environment Info
antd 4.11.2
React 16.14.0
System Mac OS
Browser Chrome/Safari
@zombieJ
Copy link
Member

zombieJ commented Feb 4, 2021

It's by design. Arrow & Title is always take at the first paragraph line. But I think we may improve this.

ref #28507

@zombieJ zombieJ added the 🎱 Collaborate PR only Need confirm with Designer or Core member label Feb 4, 2021
@tracyhenry
Copy link
Author

It's by design. Arrow & Title is always take at the first paragraph line. But I think we may improve this.

ref #28507

but if an extra is an icon, it's vertically aligned with the title...

@Jeffmagma
Copy link

I have the same issue, even if this is by design, is there a way to manually adjust it so that it's aligned at the middle?

@monolithed
Copy link

Ran into the same problem

@afc163
Copy link
Member

afc163 commented Jun 24, 2023

@afc163 afc163 closed this as completed Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎱 Collaborate PR only Need confirm with Designer or Core member Inactive
Projects
None yet
Development

No branches or pull requests

5 participants