-
Notifications
You must be signed in to change notification settings - Fork 2
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
[FE] feature: 제출할 리뷰를 한 번에 볼 수 있는 preview 모달 제작 #302
Conversation
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.
고생했어!!!
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.
미리보기 모달 만드느라 고생했어요! 컨벤션 관련해서 코멘트 하나 남겼어요. 👍
$style?: React.CSSProperties; | ||
} | ||
|
||
export interface CheckboxProps extends CheckboxStyleProps { | ||
id: string; | ||
isChecked: boolean; | ||
onChange: (event: ChangeEvent<HTMLInputElement>, label?: string) => void; | ||
onChange?: (event: ChangeEvent<HTMLInputElement>, label?: string) => void; |
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.
컨벤션에 맞게 handleChange
로 수정해야 할 것 같아요
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.
드디어 프리뷰 모달이!!!! 수고했어요!!
🚀 어떤 기능을 구현했나요 ?
새로운 모달 형식인
ContentModal
제작maxHeight
증가 및 스크롤바 적용)프리뷰 모달 임시 스타일링
어차피 카드가 식별되므로 별도의 gap을 부여하는 것은 불필요하게 스크롤 길이만 늘인다고 생각해서 적용하지 않았습니다.현재 화이트톤의 깔끔한 디자인이 적용되어 있기 때문에 투박한 스크롤바가 생기는 것은 옳지 않다고 생각해서 일단 스크롤은 가능하나 스크롤바를 없앤 상황입니다.또 Content의 길이가 어느 정도 보장되어 있고 사용자도 Content의 길이를 대충 가늠해볼 수 있기 때문에 스크롤바가 없어도 큰 혼란은 없을 거라고 생각했습니다.CheckItem
리팩토링handleClick
이 필수였고readOnly
속성이 없었습니다.input
에서 type이checkbox
인 요소에는readonly
속성이 적용되지 않는다고 해서 우회적으로 읽기 전용 컴포넌트 처리를 했습니다. (아래에서 자세히 설명)🔥 어떻게 해결했나요 ?
Checkbox
에 읽기 전용 타입 추가disabled
로 다룰 수 있는 만큼 단지 스타일(마우스 포인터 스타일링)만을 위한 속성이라고 생각해서 styleType에 $를 달고 있는 속성을 추가했습니다.pointer-events
를none
으로 설정합니다.📝 어떤 부분에 집중해서 리뷰해야 할까요?
TempPage
를 App에서 불러오면 모달을 바로 테스트해볼 수 있습니다.📚 참고 자료, 할 말
QuestionCard
와ReviewWritingCard
를 가져왔습니다.