-
Notifications
You must be signed in to change notification settings - Fork 4
refactor(badge): redesign badge component #195
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
base: release/v1
Are you sure you want to change the base?
Conversation
|
✅ Deploy Preview for side-design-system ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
🚀 New features to boost your workflow:
|
froggy1014
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
답 달아주시면 바로 어푸룹.... !
| variants: { color: BadgeColor['1st'], variant: BadgeVariant.default }, | ||
| style: { | ||
| backgroundColor: colorToken.green100, | ||
| color: colorToken.green700, | ||
| }, | ||
| }, | ||
| // 2nd variants | ||
| { | ||
| variants: { color: BadgeColor['2nd'], variant: BadgeVariant.solid }, | ||
| style: { | ||
| backgroundColor: colorToken.purple500, | ||
| color: colorToken.white, | ||
| }, | ||
| }, | ||
| { | ||
| variants: { color: BadgeColor['2nd'], variant: BadgeVariant.default }, | ||
| style: { | ||
| backgroundColor: colorToken.purple100, | ||
| color: colorToken.purple700, | ||
| }, | ||
| }, | ||
| // 3rd variants | ||
| { | ||
| variants: { color: BadgeColor['3rd'], variant: BadgeVariant.solid }, | ||
| style: { | ||
| backgroundColor: colorToken.orange500, | ||
| color: colorToken.white, | ||
| }, | ||
| }, | ||
| { | ||
| variants: { color: BadgeColor['3rd'], variant: BadgeVariant.default }, | ||
| style: { | ||
| backgroundColor: colorToken.orange100, | ||
| color: colorToken.orange700, | ||
| }, | ||
| }, | ||
| // 4th variants | ||
| { | ||
| variants: { color: BadgeColor['4th'], variant: BadgeVariant.solid }, | ||
| style: { | ||
| backgroundColor: colorToken.cyan500, | ||
| color: colorToken.white, | ||
| }, | ||
| }, | ||
| { | ||
| variants: { color: BadgeColor['4th'], variant: BadgeVariant.default }, | ||
| style: { | ||
| backgroundColor: colorToken.cyan100, | ||
| color: colorToken.cyan700, | ||
| }, | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
색상이 어떤기준으로 잡힌지 모르겠어요 ~
ex) 2nd -> purple 이라던가
디자인 이슈라면 디자이너 호출 필요할듯
| size = BadgeSize.small, | ||
| variant = BadgeVariant.default, | ||
| color = BadgeColor.gray, | ||
| icon = 'none', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftIcon, rightIcon 프롭스로 넘어오면 icon 방향과 유무가 명확히 전달되는거 같은데, icon이라는 프롭이 필요한가요?
|
|
||
| expect(screen.getByRole('status')).toHaveStyle({ | ||
| backgroundColor: colorToken.cyan900, | ||
| describe('Badge', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
뱃지 테스트 커버리지 70%도 안되다뇨 - 흑흑
| "clsx": "^2.1.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@radix-ui/react-slot": "^1.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
react-slot가 devDependencies에 들어가있네욤
Refactors the Badge component to align with Figma design specifications using Vanilla-Extract recipe pattern.
Changes
Visuals
Checklist
Additional Discussion Points