-
Notifications
You must be signed in to change notification settings - Fork 3
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: (fe) 스크린리더의 모달 사용성 개선 #662
Open
woose28
wants to merge
5
commits into
develop
Choose a base branch
from
feature/fe/refactor-modal-a11y
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Modal이 렌더링 됐을 때 id가 root 인 태그에 aria-hidden 속성을 추가했습니다. - Modal의 포커스 관련된 로직을 SuccessModal에서 ModalOverlay로 옮겼습니다.
- 스크린리더로 회원 탈퇴 모달을 닫을 수 있게 만들기 위해서 닫기 버튼 추가
- Modal이 렌더링 됐을 때 id가 root 인 태그에 aria-hidden 속성을 추가했습니다. - Modal의 포커스 관련된 로직을 SuccessModal에서 ModalOverlay로 옮겼습니다.
- 스크린리더로 회원 탈퇴 모달을 닫을 수 있게 만들기 위해서 닫기 버튼 추가
…oowacourse-teams/2022-smody into feature/fe/refactor-modal-a11y
wonsss
approved these changes
Nov 8, 2022
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.
SuccesModal에만 적용되던 모달 집중하기 코드가 ModalOvelay로 올라갔군요!
아주 좋습니다! 바쁘실텐데 고생하셨어요.
ronci
approved these changes
Nov 18, 2022
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.
빅터 모달 사용성 개선하시느라 수고하셨었어요!
바로 approve할께요!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
cloes #661
작업 현황
모달이 렌더링 됐을 때 다른 요소에 포커스가 이동하지 않도록 수정
회원 탈퇴 모달이 렌더링 됐을 때도 스크린리더의 포커스가 이동하도록 구현했습니다. 그 과정에서 기존에 SuccessModal 컴포넌트에 있던 포커스 관련 로직을 ModalOverlay 컴포넌트로 이동시켰습니다.
그에 따라 스크린리더의 포커스가 모달 영역 밖으로 이동할 수 있는 문제가 발생했습니다.
따라서 이를 해결하기 위해 모달이 렌더링 됐을 때
id=root
인 태그에 aria-hidden 속성을 추가하도록 구현했습니다.관련 작업 커밋 - 7570b7f
회원 탈퇴 모달에 닫기 버튼 추가
기존에 닫기 버튼이 없었기 때문에 스크린 리더 사용자는 모달을 닫을 수 없었습니다.
이 문제를 해결하기 위해 닫기 버튼을 추가했습니다.
관련 작업 커밋 - 1ffe3db