For some reason, you build a custom checkbox component, if without ARIA in mind, basiclly this site is unusable for screen reader.

DEMOsite.

In the example, screen reader only read the label of the checkbox, but doesn't tell it is a checkbox and the value of it.

<div tabindex="0" class="checkbox">
Mint slices
</div>

The way to fix it by tell the role is checkbox and set aria-checked to its value:

<div tabindex="0" class="checkbox" tabindex="0" role="checkbox" aria-checked="true">
Tim-Tams
</div>

But really it we can use the native html element, just use the native element.

最新文章

  1. PHP 真正多线程的使用
  2. Windows Server 2008 R2 添加且制成“NFS服务器”角色后与Unix客户端匿名访问常见问题
  3. RN的像素及布局
  4. HDU 4123(树的直径+单调队列)
  5. Web---HTTP请求、重定向、转发和数据压缩
  6. mysql 5.7 root密码重置(centos 7)
  7. 用JS在html页面实现打印功能
  8. 《Linux内核分析》第五周学习笔记
  9. 使用Zookeeper命令的简单操作步骤
  10. AtCoder Grand Contest 030 自闭记
  11. 什么是Web缓存控制(基于HTTP头域)
  12. SQL2008无法连接到(local),该账户当前被锁定,所以Sa用户登陆失败
  13. Java精选笔记_JDBC
  14. Qt监控Arduino开关状态(读取串口数据)
  15. python openpyxl 封装Execl常用操作的方法
  16. Java常用的输出调试技巧
  17. 解决.NET 调用JAVA WEBService服务中文乱码问题
  18. python-集合类型
  19. java——链表映射 LinkedListMap
  20. Java微信开发_Exception_01_The type org.xmlpull.v1.XmlPullParser cannot be resolved. It is indirectly referenced from required .class files

热门文章

  1. bzoj4034: [HAOI2015]树上操作(树剖)
  2. 【BZOJ 2982】 combination
  3. Asura监控---AsuraMonitor,阿修罗监控开源
  4. new一个接口
  5. php模版静态化技术
  6. 认识React框架
  7. wcf 学习程序
  8. JS面向对象(1)——构造函数模式和原型模式
  9. Kafka学习笔记(2)----Kafka的架构
  10. Linux终端 Tab 补全命令