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

Feat: Badge 컴포넌트 구현 #6

Merged
merged 3 commits into from
Feb 16, 2023
Merged

Feat: Badge 컴포넌트 구현 #6

merged 3 commits into from
Feb 16, 2023

Conversation

dohun31
Copy link
Contributor

@dohun31 dohun31 commented Feb 13, 2023

🤠 개요

💫 설명

  • Badge 컴포넌트에서 TypoCenter를 쓰게 돼서 Badge를 감싸는 컨테이너도 추상화 레벨을 맞춰주려고 styled 로 했어요.

    • @emotion/styled 설치했슴다
  • Typography에 margin이 있어서 Badge가 뚱뚱해졌어요.

    • Typography에서 margin 제거했어요.
    • 나중에 이거 Global style따로 빼서 storybook에 설정해주고 패키지에도 같이 넣어서 배포하면 될것같아요.
    • 참고
  • color 상수를 따로 빼야하는데 이건 다른 이슈 파서 할게요.

    • 그래서 일단 color는 string으로 받게 했어요

📷 스크린샷 (Optional)

스크린샷 2023-02-13 오후 2 57 13

스크린샷 2023-02-13 오후 2 57 21

추상화 레벨을 맞추기 위해서 css가 아닌 styled를 사용함

Resolve: #5
@dohun31 dohun31 added the ✨ feat 기능 구현 label Feb 13, 2023
@dohun31 dohun31 self-assigned this Feb 13, 2023
@dohun31 dohun31 linked an issue Feb 13, 2023 that may be closed by this pull request
1 task
Copy link
Contributor

@se030 se030 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아쥬 야무집니다

@@ -30,6 +30,7 @@ function Typography({ variant, children }: TypographyProps) {
typography,
{
css: css`
margin: 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻


const BadgeContainer = styled.div<Omit<BadgeProps, 'children' | 'size'>>(
({ outline, color, fill }) => ({
width: 'fit-content',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋아요~ 최대 길이에 제한은 안둬도 괜찮을까요? (사용자가 착한걸로 ..?)

Base automatically changed from feat/center to main February 16, 2023 03:24
@iyu88 iyu88 self-requested a review February 16, 2023 03:26
Copy link
Member

@iyu88 iyu88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍
글로벌 스타일 정의가 급하겠네요 🤔

@iyu88 iyu88 merged commit ace1dd8 into main Feb 16, 2023
@iyu88 iyu88 deleted the feat/badge branch February 16, 2023 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feat 기능 구현
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: Badge 컴포넌트 구현
3 participants