Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove button outline in Opera on focus

Does anybody know how to remove the dotted outline on buttons in Opera?

like image 640
Sanchosrancho Avatar asked Aug 24 '10 20:08

Sanchosrancho


2 Answers

I have done it.

Here you go: http://jsbin.com/oniva4. [tested on Opera 10.5/11]

The secret is using outline-offset:-2px; (effectively covering the dots) and the background's color for the outline. outline-offset is supported since version 9.5.

like image 136
Knu Avatar answered Sep 21 '22 12:09

Knu


The introduction of the article Do not lose your focus

For many web designers, accessibility conjures up images of blind users with screenreaders, and the difficulties in making sites accessible to this particular audience. Of course, accessibility covers a wide range of situations that go beyond the extreme example of screenreader users. And while it’s true that making a complex site accessible can often be a daunting prospect, there are also many small things that don’t take anything more than a bit of judicious planning, are very easy to test (without having to buy expensive assistive technology), and can make all the difference to certain user groups.

In this short article we’ll focus on keyboard accessibility and how careless use of CSS can potentially make your sites completely unusable.

And the list of test given by the article on outline management.

Update 2011-02-08

I can confirm that it is not possible for now. There is an open bug for it.

like image 37
karlcow Avatar answered Sep 22 '22 12:09

karlcow