-
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
[픽스] 식단 펼치기 기능 화살표 방향 문제 해결 #17
Conversation
@@ -150,7 +150,7 @@ export default function DiningBlocks({ diningType, date }: DiningBlocksProps) { | |||
<svg | |||
className={cn({ | |||
[styles['arrow-icon']]: true, | |||
[styles['arrow-icon__transform']]: !hiddenDiningIdList.includes(dining.id), | |||
[styles['arrow-icon--close']]: !hiddenDiningIdList.includes(dining.id), |
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.
첫 pr 축하드립니다! 고생하셨어요~~
&--close { | ||
transform: rotate(0); |
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.
열을 때처럼 닫힐 때도 transition
이 있으면 좋을 것 같아요!
제가 착각했네요... ㅠ 그대로 진행해도 잘 작동하겠군요! 👍
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.
PR 스크린샷을 잘못 올려서 수정하였습니다 !
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.
굿굿 첫 PR 축하드립니당
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.
제가 올렸던 기능중에 잘못된 걸 잘 찾아서 고쳐 주셨네요!
css bem 까지 맞춰서 잘 수정해 주셨습니다! 👍
이 경우에 고치는 방법이 두 가지가 있을 텐데요.
첫 번째는 정원님이 하신대로 transform을 바꿔주는 방법이고, 두 번째는 icon 자체를 반대방향으로 돌아간 걸로 바꿔주는 방법이 있어요.
어떤 방법이 더 좋을 것 같나요?
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.
수고하셨습니다~!!
- css trasform 함수 중복 제거 - close -> open 으로 바꿔서 상태 단축
기존에는 최대한 svg 코드를 건들지 않고 수정하는 방향을 생각해서 css 파일을 수정하였습니다. 리뷰 해주신 내용을 바탕으로 생각해 봤는데, 화살표 방향의 상태를 변경하면 가독성이 좋아지고 css에서 함수도 덜 쓰기 때문에 해당 방법으로 수정하였습니다 !! |
What is this PR? 🔍
Changes 📝
식단 펼치기 기능 화살표 방향 문제를 해결하였습니다.
ScreenShot 📷
Test CheckList ✅
Precaution
✔️ Please check if the PR fulfills these requirements
develop
branch unconditionally?main
?yarn lint