博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[ARIA] Accessible modal dialogs
阅读量:4983 次
发布时间:2019-06-12

本文共 1141 字,大约阅读时间需要 3 分钟。

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: 

Used in this lesson:

  • Google dialog element polyfill: 
  • Inert attribute polyfill: 

 

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.

 

转载于:https://www.cnblogs.com/Answer1215/p/11523016.html

你可能感兴趣的文章
Tomcat7.0与Oracle10数据库连接池配置
查看>>
解决webpack和gulp打包js时ES6转译ES5时Object.assign()方法没转译成功的问题
查看>>
字节流与字符流的区别详解(转)
查看>>
类操作数据库
查看>>
找球号(一)
查看>>
oracle ebs 笔记
查看>>
Android studio使用git-android学习之旅(79)
查看>>
eclipse中去掉Js/javsscript报错信息
查看>>
网络中,FIFO、LRU、OPT这三种置换算法的缺页次数
查看>>
随机森林算法参数调优
查看>>
Mysql编写定时任务事件
查看>>
路由器/交换机/集线器的区别收集(转)
查看>>
今日头条面试题汇总
查看>>
hdu 1305 Immediate Decodability
查看>>
基本数据类型
查看>>
laravel 配置sql日志
查看>>
基于注意力机制的群组推荐算法
查看>>
Android: 创建一个AlertDialog对话框,必须按确定或取消按钮才能关闭对话框,禁止按[返回键]或[搜索键]关闭...
查看>>
linux更改shell
查看>>
win7 64位系统 pl/sql 无法解析指定的连接标识符解决办法
查看>>