-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/dialog 컴포넌트 추가 #31
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
Conversation
🦋 Changeset detectedLatest commit: 1e7ed47 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
💄 Storybook: https://67c9a019e2c059ab48fd9565-dueiasyqbb.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.
Portal은 나중에 다른 컴포넌트에서 쓸수도 있고,
개인적으로 너가 다른 프로젝트에서도 충분히 활용할 수 있기 때문에 별도 컴포넌트로 분리해보자
+ Portal에 대해서 제대로 한번 공부해보는 것도 필요할 것 같음!
그리고 Portal의 container는 default로 body로 잡는게 일반적임 참고
| interface DialogComposition { | ||
| Header?: ReactNode; | ||
| Content?: ReactNode; | ||
| Footer?: ReactNode; | ||
| } | ||
|
|
||
| interface DialogProps { | ||
| children: ReactNode; | ||
| show: boolean; | ||
| isMobile?: boolean; | ||
| onClose?: () => void; | ||
| closeButton?: boolean; | ||
| } |
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.
기존에는 interface가 아닌 type을 썼음
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.
small size도 고려해야함!
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.
width 말고는 padding, gap 동일해보이는데 다른거 더 있으??
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.
size는 width만 다른게 맞음
포탈 추가할때 #modal-root 라는 div 에 포탈을 추가하지말고 body로 잡으라는거지? |
응응 정리하면
|
|
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.
size는 width만 다른게 맞음
packages/ui/src/components/dialog/dialogComponent/DialogHeader.tsx
Outdated
Show resolved
Hide resolved
packages/ui/src/components/dialog/dialogComponent/CloseButton.tsx
Outdated
Show resolved
Hide resolved
packages/ui/src/components/dialog/dialogComponent/DialogHeader.tsx
Outdated
Show resolved
Hide resolved
| <Dialog.Header description={headerDescription}> | ||
| {headerTitle} | ||
| </Dialog.Header> | ||
| {headerTitle} |
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.
{headerTitle} 두개 들어가있음 하나 지우면 될듯
package/ui dialog 컴포넌트 추가