Skip to content
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
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

woose28
Copy link
Collaborator

@woose28 woose28 commented Nov 8, 2022

cloes #661

작업 현황

모달이 렌더링 됐을 때 다른 요소에 포커스가 이동하지 않도록 수정

회원 탈퇴 모달이 렌더링 됐을 때도 스크린리더의 포커스가 이동하도록 구현했습니다. 그 과정에서 기존에 SuccessModal 컴포넌트에 있던 포커스 관련 로직을 ModalOverlay 컴포넌트로 이동시켰습니다.

그에 따라 스크린리더의 포커스가 모달 영역 밖으로 이동할 수 있는 문제가 발생했습니다.
따라서 이를 해결하기 위해 모달이 렌더링 됐을 때 id=root 인 태그에 aria-hidden 속성을 추가하도록 구현했습니다.

관련 작업 커밋 - 7570b7f

회원 탈퇴 모달에 닫기 버튼 추가

기존에 닫기 버튼이 없었기 때문에 스크린 리더 사용자는 모달을 닫을 수 없었습니다.
이 문제를 해결하기 위해 닫기 버튼을 추가했습니다.

  • 변경 전 회원 탈퇴 모달

변경 전 회원탈퇴 모달

  • 변경 후 회원 탈퇴 모달

변경 후 회원탈퇴 모달

관련 작업 커밋 - 1ffe3db

- Modal이 렌더링 됐을 때 id가 root 인 태그에 aria-hidden 속성을 추가했습니다.
- Modal의 포커스 관련된 로직을 SuccessModal에서 ModalOverlay로 옮겼습니다.
- 스크린리더로 회원 탈퇴 모달을 닫을 수 있게 만들기 위해서 닫기 버튼 추가
@woose28 woose28 added 프론트엔드 프론트엔드 이슈 접근성 접근성을 개선 labels Nov 8, 2022
@woose28 woose28 self-assigned this Nov 8, 2022
- Modal이 렌더링 됐을 때 id가 root 인 태그에 aria-hidden 속성을 추가했습니다.
- Modal의 포커스 관련된 로직을 SuccessModal에서 ModalOverlay로 옮겼습니다.
- 스크린리더로 회원 탈퇴 모달을 닫을 수 있게 만들기 위해서 닫기 버튼 추가
@github-actions
Copy link

github-actions bot commented Nov 8, 2022

Frontend Test

Jest Test Coverage

Lines Statements Branches Functions
Coverage: 50%
49.33% (1697/3440) 37.1% (364/981) 19.93% (122/612)

Jest Test Result

Tests Skipped Failures Errors Time
5 0 💤 0 ❌ 0 🔥 29.732s ⏱️

@github-actions
Copy link

github-actions bot commented Nov 8, 2022

Frontend Test

Jest Test Coverage

Lines Statements Branches Functions
Coverage: 50%
49.33% (1697/3440) 37.1% (364/981) 19.93% (122/612)

Jest Test Result

Tests Skipped Failures Errors Time
5 0 💤 0 ❌ 0 🔥 31.171s ⏱️

Copy link
Collaborator

@wonsss wonsss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SuccesModal에만 적용되던 모달 집중하기 코드가 ModalOvelay로 올라갔군요!
아주 좋습니다! 바쁘실텐데 고생하셨어요.

Copy link
Collaborator

@ronci ronci left a 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
Labels
접근성 접근성을 개선 프론트엔드 프론트엔드 이슈
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants