Enhancement a11y when Button
component has only Icon, without text (Implement IconButton
component)
#1812
Closed
sungik-choi
started this conversation in
Ideas
Replies: 1 comment
-
디자인 시스템 재설계 이후 |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
현재 상황
텍스트가 들어가는 버튼과 동일하게 별도의 처리가 되어있지 않습니다.
문제점
스크린 리더 등에서 어떤 버튼인지 파악할 수 없습니다.
어떻게 개선할 수 있는지
MDN에서 발췌. 내부에 visually hidden 상태의 텍스트를 넣으면 됩니다. 실제 사용처에선 (아마도) 아이콘을 감싸는 툴팁에 들어갈 텍스트를 넣으면 될 거 같습니다.
Reference
Beta Was this translation helpful? Give feedback.
All reactions