Remove the outline from links on :active only

A few months ago I emphasised the importance of not making things difficult for people who do not use a mouse by removing the outline from links and form controls.

If leaving the outline property at its default is not an option for you, perhaps the technique Patrick Lauke describes in Better CSS outline suppression could work. It’s so simple I can’t believe I haven’t heard or thought of it before – remove the outline for the :active state only:

  1. a:active {outline:none;}

That way keyboard users still get the default outline when they tab to a link and activate the :focus state.

To make sure this really does work as intended across browsers and has no surprising side effects, Patrick wants your help with running through the tests and letting him know if you find anything out of order.

Posted on October 13, 2009 in Accessibility, CSS, Usability

Comments are disabled for this post, but if you have spotted an error or have additional info that you think should be in this post, feel free to contact me.

Subscribe to the RSS feed for 456bereastreet.com

Sponsors

Authentic Jobs

Authentic Jobs: Come in, we're hiring

Job openings from Authentic Jobs

Advertise here

DreamHost web hosting

Try DreamHost!

Use the promo code 456BEREASTREET3 to save USD 20 when you sign up for DreamHost