-
Notifications
You must be signed in to change notification settings - Fork 0
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
バッジコンポーネントの修正 #335
バッジコンポーネントの修正 #335
Conversation
Storybook URL: https://uyupun.github.io/official/fix_305_badge/storybook/ |
現状はバッジは技術スタックを表示するためににしか使わないので問題にはならないものの、本来バッジコンポーネントが |
それはそうっすね... |
Expo: '#000000', | ||
FastApi: '#009485', |
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.
大文字で始まるのは違和感があるが、良い方法が思い浮かばない🤔
ここだけ大文字でもええか〜という気もあるが、何か良い案とかあります?
↓みたいな配列を定義して、これをkeyに使うとかでも良いんかなと思ったり...🤔
const technologies = ['Expo', 'FastApi'] as const;
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.
Enumっぽく定義するとか🤔
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.
あとは今はこのファイルに置いてても良さそうやけど、このバッジコンポーネント使うページに technologyColors
は定義するべきかも?
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.
technologyColors.Expo
みたいな感じでアクセスできるなら個人的にはそんなに違和感ないな。コーディング規約的に大文字にするのはOKなんだっけ?
レビューしていただいて申し訳ないが、こちらはBCCDに沿って修正するということでCloseします |
ref: #305
概要
Figmaのデザインが変更されたので、それに合わせてバッジコンポーネントのデザインを修正しました!
その他
PR #334 マージ後にOpenします