-
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
[FEAT] 스크린 리더기 focus 개선 #347
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.
회의 완뇨!
const handleClick = () => { | ||
onConfirm && onConfirm(); | ||
onClose(); | ||
}; | ||
|
||
return ( | ||
<Modal isOpen={isOpen} onClose={onClose}> | ||
<Modal isOpen={isOpen} onClose={onClose} closeRef={closeRef}> |
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.
💭 질문 💭
Button에는 ref로 적용했는데, Modal에서는 forwardRef를 적용하지 않은 이유가 궁금합니다!
closeRef, | ||
position = 'center', | ||
...restProps | ||
}: ModalProps) => { |
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.
const goToBack = () => { | ||
navigate(-1); | ||
}; | ||
|
||
return ( | ||
<header css={headerLayout()}> | ||
<header css={headerLayout()} tabIndex={0} ref={focusRef}> |
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.
💭 질문 💭
tabIndex=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.
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.
즐거운 오프라인 코드리뷰였습니다 ~! !! !! 🚀🚀
Issue Number
#335
As-Is
Modal 뒤에서만 이동함
To-Be
header-focus.mp4
modal-focus.mp4
modal-close.mp4
Check List
(Optional) Additional Description
scroll을 막는 hook이 있었는데 서비스에서 애초에 scroll을 막기 때문에 사용하지 않으므로 제거함
저번 PR에서 소리가 잘 들리지 않는 다는 피드백이 있어 이번에는 리더기 볼륨을 최대로 키웠습니다.
🌸 Storybook 배포 주소
🌸 Storybook 배포 주소