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

[FE] 접근성 개선을 위해 이미지 라벨을 달아준다. #763

Merged
merged 9 commits into from
Oct 8, 2024

Conversation

healim01
Copy link
Contributor

@healim01 healim01 commented Oct 7, 2024

❗ Issue

✨ 구현한 기능

의미있는 이미지와 아닌 이미지를 확인해서 라벨을 다 달아주었습니다.

svg 컴포넌트는 alt='' 를 사용하지 못해서 aria-hidden="true" 로 달아주었고 이미지에는 alt를 달아주었습니다

📢 논의하고 싶은 내용

🎸 기타

@healim01 healim01 self-assigned this Oct 7, 2024
@healim01 healim01 changed the base branch from dev to dev-fe October 7, 2024 08:23
Copy link

github-actions bot commented Oct 7, 2024

Copy link

github-actions bot commented Oct 7, 2024

@@ -70,55 +70,55 @@ const RoomInfoSection = ({ nearSubways, room, options, checklistId, isLiked }: P
</S.GreenWrapper>
<S.GapBox>
<S.Row>
<Room />
<Room aria-hidden="true" />
Copy link
Contributor

Choose a reason for hiding this comment

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

해당 아이콘은 사실상 label 의 대체라서 aria-label 로 추가 정보를 스크린 리더에게 주는게 좋을 것 같습니다.
예를 들어 위 Room 은 다음과 같아요!

<Room aria-label="방 구조"/> 

@@ -29,12 +29,12 @@ const FourthSection = () => {
<S.EmptyBox height={10} />
<S.Observer ref={ref} />
<S.AnimationBox isIntersecting={isIntersecting}>
<img src={customPageScreen} width="200px" />
<img src={customPageScreen} width="200px" alt="" />
Copy link
Contributor

Choose a reason for hiding this comment

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

해당 스크린 샷도 alt 안을 비워드는 것보다는 안에다가 '질문 선택 페이지의 화면' 식으로 정보를 주는 게 좋을 것 같습니다!

bgColor={color500}
hoverColor={color600}
onClick={handleClickArticle}
aria-label="클릭하면 해당 아티클 페이지로 이동합니다"
Copy link
Contributor

Choose a reason for hiding this comment

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

👍👍

Copy link
Contributor

@skiende74 skiende74 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다

@skiende74
Copy link
Contributor

작성중

Copy link

github-actions bot commented Oct 8, 2024

@skiende74 skiende74 merged commit 90afe27 into dev-fe Oct 8, 2024
2 checks passed
@skiende74 skiende74 deleted the feat/760-inhance-accessibility branch October 8, 2024 03:08
Copy link

github-actions bot commented Oct 8, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants