-
Notifications
You must be signed in to change notification settings - Fork 1
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/#37] Input 컴포넌트 구현 #38
Conversation
🍰 Storybook 배포가 완료되었습니다! 🔗 https://677cb5c3ab50c3f524eaae19-jjvcakbpnb.chromatic.com/ |
🍰 Storybook 배포가 완료되었습니다! 🔗 https://677cb5c3ab50c3f524eaae19-ypzvinascs.chromatic.com/ |
🍰 Storybook 배포가 완료되었습니다! 🔗 https://677cb5c3ab50c3f524eaae19-dolkujherr.chromatic.com/ |
🍰 Storybook 배포가 완료되었습니다! 🔗 https://677cb5c3ab50c3f524eaae19-zbisvopqfg.chromatic.com/ |
🍰 Storybook 배포가 완료되었습니다! 🔗 https://677cb5c3ab50c3f524eaae19-nokimtbaow.chromatic.com/ |
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.
너무 수고하셨습니다! label까지 꼼꼼하게 고려해주셔서 감사해요 짱 👍
export const inputContainer = style([ | ||
flexGenerator('column', 'center', 'flex-start'), | ||
{ | ||
gap: '0.38rem', |
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.
피그마에는 0.4rem로 되어 있는 것 같습니다!
}, | ||
]); | ||
|
||
export const icFromDot = style({ width: '2rem' }); |
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.
Dot으로부터.......
근데 이렇게 스타일을 하나 만드는 것 보다 아이콘 자체에 width={20} height={20}을 주는 게 더 좋을 것 같습니다!
const Input = ({ inputLabel, value, onChange, placeholder }: InputProps) => { | ||
return ( | ||
<div className={inputContainer}> | ||
<label htmlFor="value" className={inputTitle}> |
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.
혹시 "value"가 아니라 {value}로 가능할까요?
"value"로 하면 정말 value라는 문자열로 지정이 되어서 모든 input과 다 연결이 될 것 같습니다.
label과 input을 각각 쌍을 지어 연결하려면 쌍 마다 값을 다르게 지정해줘야 하므로 {value}로 변경 부탁드립니다!
<input | ||
className={inputStyle({ state: value ? 'active' : 'default' })} | ||
type="text" | ||
id="value" |
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.
여기도 {value}로!
🍰 Storybook 배포가 완료되었습니다! 🔗 https://677cb5c3ab50c3f524eaae19-fxxdzmxwgy.chromatic.com/ |
export const inputStyle = recipe({ | ||
base: { | ||
width: '100%', | ||
backgroundColor: vars.colors.gray100, |
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.
이거 백그라운드 컬러 피그마 상에서는 white인것 같은데 확인 부탁드립니다!
default: { color: vars.colors.gray400 }, | ||
active: { | ||
color: vars.colors.gray900, | ||
border: `1px solid ${vars.colors.red1}`, |
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.
border 컬러도 gray500으로 변경된 것 같은데 반영 부탁드립니다!
]); | ||
|
||
export const inputStyle = recipe({ | ||
base: { |
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.
폰트 body07 넣어주시기 바랍니다!
🍰 Storybook 배포가 완료되었습니다! 🔗 https://677cb5c3ab50c3f524eaae19-hjzmwjslvh.chromatic.com/ |
🍰 Storybook 배포가 완료되었습니다! 🔗 https://677cb5c3ab50c3f524eaae19-zcypajpole.chromatic.com/ |
🍰 Storybook 배포가 완료되었습니다! 🔗 https://677cb5c3ab50c3f524eaae19-elsgkiuuag.chromatic.com/ |
📌 관련 이슈번호
체크리스트
✅ Key Changes
📢 To Reviewers
📸 스크린샷 or 실행영상