When using anchors around buttons or images, they create a dotted outline if they are clicked on or in focus. I like to disable these outlines through CSS, but I have read about problems with keyboard based users (browsing a site without a mouse).

What is your experience with the outline property? I think they look incredibly trashy but I've always had qualms with disabling outlines.

有帮助吗?

解决方案

The problem is that users without the mouse won't be able to know which link currently has focus.

I often disable the dotted outline, but consider adding different styles for :focus or :active.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top