-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于WAI-ARIA那些事儿 #127
Comments
存在的问题
为了解决这个问题,WAI-ARIA规范定义了一系列的附加的HTML attributes,从而增强semantic,也进一步增强accessibility。 |
三个WAI-ARIA的核心概念关键词:Roles,Properties,States Roles定义了一个元素是is或者does。大多数被称作里程碑角色,很大程度上是复制了语义化的HTML5结构化标签的语义值。例如 Properties
<img src="dinosaur.png" aria-labelledby="dino-label">
<p id="dino-label">The Mozilla red Tyrannosaurus Rex: A two legged dinosaur standing upright like a human, with small arms, and a large head with lots of sharp teeth.</p> States
有一个很重要的点:WAI-ARIA不会影响webpage的结构,DOM等等,虽然这些属性可以当做CSS的属性选择器。 roles的定义:https://www.w3.org/TR/wai-aria-1.1/#role_definitions |
常见的ARIA LandmarksMain LandmarkMain Landmark设计模式
实现方式可查阅:https://www.w3.org/TR/wai-aria-practices/examples/landmarks/main.html |
参加完第二届VUECONF 杭州之后,印象最深的还是勾三股四关于Web无障碍的分享,其中有几个关键概念WAI-ARIA,widget,role,props以及states值得深入学习,于是我从MDN找到了相关资料,会记录一些知识点,也会写一些自己的思考。
资料链接:https://developer.mozilla.org/en-US/docs/Learn/Accessibility/WAI-ARIA_basics\
The text was updated successfully, but these errors were encountered: