react-component / react-component/collapse

Panel header vertical align center

Open
#345 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
332
Forks
140
Avg merge
22h 19m
Merged PRs (30d)
1

Description

Is there a better way to vertical align Panel header to center. Instead of align-items: flex-start to have center?
I know we can do it to override css but I would like to do it more appropriate.
image
https://github.com/ant-design/ant-design/blob/master/components/collapse/style/index.ts#L101

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing this repository's panel header styles with the linked Ant Design collapse style at components/collapse/style/index.ts#L101. Determine how the header alignment is currently controlled and whether the issue calls for a supported styling option or a default change. Done means the intended centered alignment can be achieved appropriately without an ad hoc CSS override.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.