refactor(badge): redesign badge component #195
refactor(badge): redesign badge component #195jiji-hoon96 wants to merge 1 commit intorelease/v1from
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:
|
| 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.
색상이 어떤기준으로 잡힌지 모르겠어요 ~
ex) 2nd -> purple 이라던가
디자인 이슈라면 디자이너 호출 필요할듯
| size = BadgeSize.small, | ||
| variant = BadgeVariant.default, | ||
| color = BadgeColor.gray, | ||
| icon = 'none', |
There was a problem hiding this comment.
leftIcon, rightIcon 프롭스로 넘어오면 icon 방향과 유무가 명확히 전달되는거 같은데, icon이라는 프롭이 필요한가요?
|
|
||
| expect(screen.getByRole('status')).toHaveStyle({ | ||
| backgroundColor: colorToken.cyan900, | ||
| describe('Badge', () => { |
There was a problem hiding this comment.
뱃지 테스트 커버리지 70%도 안되다뇨 - 흑흑
| "clsx": "^2.1.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@radix-ui/react-slot": "^1.1.0", |
There was a problem hiding this comment.
react-slot가 devDependencies에 들어가있네욤
Refactors the Badge component to align with Figma design specifications using Vanilla-Extract recipe pattern.
Changes
Visuals
Checklist
Additional Discussion Points