保持默认焦点环

您可能遇到过一些网站为了美观而移除默认的焦点环,使用了 outline: none——我在职业生涯早期也曾犯过这个错误,未意识到这会显著降低键盘用户的可用性,因为焦点环是他们通过按下 Enter 键来理解将要激活哪个元素的标志。

最低限度是保持默认的轮廓属性不变,但通常我喜欢自定义颜色、偏移量,甚至半径,以获得更美观的焦点环——所有这些都不会牺牲美观性。

Rene WangRene Wang

继续探索

描述链接操作

Safari 比 Chrome 更出色的一件事

可访问性
We Regulary Update this List

You can get notified by subscribing to our biweekly newsletter. No ads, no spam, just new content.

Profile banner
Detail

Detail

@detaildotdesign

about.x.bio

10+about.x.exclusiveContent
160+about.x.followers