Learn how to create a modal dialog with accessible keyboard and screen reader mechanics using the native HTML5 dialog element and experimental inert attribute (with polyfills) and JavaScript focus management. We'll explore how to make a DIV or non-modal dialog into a modal one to contrast the differences. Finally, we'll expose accessibility information for NVDA, Voiceover, JAWS and other screen readers.

For more details on creating accessible dialog content, check out this great article by Marco Zehe, Advanced ARIA Tip #2: Accessible Modal Dialogs: https://www.marcozehe.de/2015/02/05/advanced-aria-tip-2-accessible-modal-dialogs/

Used in this lesson:

1. When you close the dialog, should focus the open button so users know where they are.

2. Difference between Modal vs Dialog, whether user can tap any action button other the dialog is something we need to be careful. aria-hidden need to be apply to the main body when Modal show up.

3. For close the dialog, we need to add 'Esc' key for the close button

4. Dialog title, you have use h2 tag for the dialog title, it is helpful for the screen reader.

最新文章

  1. 扩展html 无边框的input 边框
  2. .Net 三款工作流引擎比较:WWF、netBPM 和 ccflow
  3. Bean的生命周期
  4. hdoj-2025
  5. HDU3535AreYouBusy(分组背包)
  6. IAR ERROR --- [Li006]
  7. 代码收藏 JS实现页内查找定位功能
  8. arm的编译器里已经有C标准库的lib包了,android为啥还要自己再实现呢
  9. c# datetime与 timeStamp(unix时间戳) 互相转换
  10. HTTP 400错误--请求无效
  11. ubuntu下使用crontab
  12. Matlab:线性热传导(抛物线方程)问题
  13. Java 笔试题(一)
  14. tf.unstack\tf.unstack
  15. 怎样用Java代码来把SSL的证书自己主动导入到Java的秘钥存储文件(keystore)
  16. .net 获取浏览器Cookie(包括HttpOnly)
  17. nodejs中引入art-template模板
  18. boost库做什么用呢?
  19. PHP命名空间 namespace 及导入 use 的用法
  20. python 赋值 深浅拷贝

热门文章

  1. [转帖]Hadoop与Spark比较
  2. PAT(B) 1044 火星数字(Java)进制转换
  3. PAT(B) 1083 是否存在相等的差(Java)统计
  4. c++ (1) c++ 与c 的区别
  5. Python开发【第二章】:模块和运算符
  6. 【SCALA】1、我要开始学习scala啦
  7. S04_CH03_QSPI烧写LINUX系统
  8. GXOI/GZOI2019部分题解
  9. 天梯赛 L3-002. 堆栈
  10. Django2.0 分页的应用