-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
@@ -70,55 +70,55 @@ const RoomInfoSection = ({ nearSubways, room, options, checklistId, isLiked }: P | |||
</S.GreenWrapper> | |||
<S.GapBox> | |||
<S.Row> | |||
<Room /> | |||
<Room aria-hidden="true" /> |
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.
해당 아이콘은 사실상 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="" /> |
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.
해당 스크린 샷도 alt 안을 비워드는 것보다는 안에다가 '질문 선택 페이지의 화면' 식으로 정보를 주는 게 좋을 것 같습니다!
bgColor={color500} | ||
hoverColor={color600} | ||
onClick={handleClickArticle} | ||
aria-label="클릭하면 해당 아티클 페이지로 이동합니다" |
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.
수고하셨습니다
작성중 |
…ng-ggood into feat/760-inhance-image-accessibility
❗ Issue
✨ 구현한 기능
의미있는 이미지와 아닌 이미지를 확인해서 라벨을 다 달아주었습니다.
svg 컴포넌트는
alt=''
를 사용하지 못해서aria-hidden="true"
로 달아주었고 이미지에는alt
를 달아주었습니다📢 논의하고 싶은 내용
🎸 기타