Improve accessibility using font awesome to convey meaning

前端 未结 2 1257
-上瘾入骨i
-上瘾入骨i 2021-01-28 17:15

What should I add to this html snippet to improve accessibility and allow a disabled user to understand the meaning of the check next to the \"no\" list item?



        
2条回答
  •  醉梦人生
    2021-01-28 17:40

    The simplest way to provide a text alternative is to use the aria-hidden="true" attribute on the icon and to include the text with an additional element, such as a , with appropriate CSS to visually hide the element while keeping it accessible to assistive technologies. In addition, you can add a title attribute on the icon to provide a tooltip for sighted mouse users.

  • No Description goes here
  • Source

提交回复
热议问题