The Web is fundamentally designed to work for all people, whatever their hardware, software, language, culture, location, or physical or mental ability.
What kinds of disability are we looking at?
People with visual impairments
Color
Screen Reader
People with mobility impairments
Tab key
Keyboard operation
People with cognitive impairments
Easy to understand
Keypoint
Perceivable、Operable、Understandable、Robust
Semantic html tag
// Bad
<div>Play video</div>
// Good
<button>Play video</button>
WAI-ARIA
Use WCAG 2.1 specification.
Color Contrast
Focus style
Like Button 、 Menu ...
Keyboard operation
Make full use of tabindex
Make sure the keyboard and mouse have the same experience
Make sure the keyboard can activate the element
Tab switch
Arrow key operation
Enter/ ESC key operation
.focus() / .blur()
scrollIntoView
Web 从根本上来说是为所有人而设计的,无论他们的硬件、软件、语言、文化、地点、身体能力或精神能力如何。
我们需要关注哪些人群?
有视觉障碍的人
色彩
读屏
有行动障碍的人
Tab 键切换
键盘操作
有认知障碍的人
简单易懂
要素
可感知、可操作、可理解、健壮
语义化 html 标签
// Bad
<div>Play video</div>
// Good
<button>Play video</button>
The Web is fundamentally designed to work for all people, whatever their hardware, software, language, culture, location, or physical or mental ability.
What kinds of disability are we looking at?
Keypoint
Semantic html tag
WAI-ARIA
Use WCAG 2.1 specification.
Color Contrast
Focus style
Like
Button
、Menu
...Keyboard operation
Web 从根本上来说是为所有人而设计的,无论他们的硬件、软件、语言、文化、地点、身体能力或精神能力如何。
我们需要关注哪些人群?
要素
语义化 html 标签
WAI-ARIA
使用 WCAG 2.1 标准.
颜色无障碍对比度
聚焦样式
包括
Button
、Menu
等组件。键盘操作