인터랙티브 요소에 이름 붙이기 | A11y Fundamentals #414
Replies: 1 comment 2 replies
-
|
aria-label 사용시 내부 요소가 무시될 수 있다는 내용을 주의사항으로 추가하면 어떨까요? 가령 Card component를 button 으로 wrapping 하는 경우 const CardButton = ()=> {
return <button aria-label="클릭하여 상세보기">
<div class="card">
<h3>제품명</h3>
<p>가격: 29,000원</p>
<span>재고 있음</span>
</div>
</button>
}이렇게 작성하면 스크린 리더는 "클릭하여 상세보기 버튼"으로 읽고, 카드 내부의 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
인터랙티브 요소에 이름 붙이기 | A11y Fundamentals
프론트엔드 접근성의 모든 것
https://frontend-fundamentals.com/a11y/semantic/required-label.html
Beta Was this translation helpful? Give feedback.
All reactions