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

Add ellipsis to Badge #2591

Open
yangwooseong opened this issue Jan 16, 2025 · 4 comments
Open

Add ellipsis to Badge #2591

yangwooseong opened this issue Jan 16, 2025 · 4 comments
Assignees
Labels
enhancement Issues or PR related to making existing features better good first issue Issue that good for newcomers

Comments

@yangwooseong
Copy link
Collaborator

Description

Badge 컴포넌트 안에 텍스트가 길어질 경우를 대비에 ellipsis 할 수 있는 옵션을 추가합니다.

Reasons for suggestion

Image

이런 식으로 텍스트 길이가 길어질 때 원하지 않는 줄 바꿈이 일어납니다.

Proposed solution

Text 컴포넌트와 마찬가지로 truncated props 를 주면 좋을 것 같습니다.

References

No response

@yangwooseong yangwooseong added the status:need triage Issue or PR that need triage attention label Jan 16, 2025
Copy link

channeltalk bot commented Jan 16, 2025

@yangwooseong yangwooseong added good first issue Issue that good for newcomers enhancement Issues or PR related to making existing features better and removed status:need triage Issue or PR that need triage attention labels Jan 16, 2025
@nayounsang
Copy link
Contributor

안녕하세요~ 혹시 제가 이걸 기여해봐도 될까요?

@yangwooseong
Copy link
Collaborator Author

넵 감사합니다!

@nayounsang
Copy link
Contributor

nayounsang commented Jan 31, 2025

@yangwooseong 질문이 있습니다!
text는 multiLineTruncated 기능이 있고 이걸 위한 스토리가 있는데, badge도 이를 반영해야할지와
스토리북엔 badge의 width가 명시되지 않아 긴 글자를 넣어도 truncated가 되는 것을 확인하기 힘듭니다.
혹시 이에 대해서 의견이 있으실까요?

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues or PR related to making existing features better good first issue Issue that good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants