Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap's Togglable Tabs - Removing outline / focus ?

I am using Toggable Tabs from Twitters Bootstrap

The problem I have, Even you can see from the example too. That when the user clicks the tab, The active tab has the dotted border around it.

I am using Firefox 11. Screenshot of the issue:

enter image description here

I am looking to get rid of that dotted border. Does anyone know how you do this?

Thanks

like image 318
StuBlackett Avatar asked Mar 20 '12 15:03

StuBlackett


2 Answers

try using outline: 0; on the link element. see css-tricks.com/removing-the-dotted-outline

//line 2576 of bootstrap.css .nav-tabs > .active > a, .nav-tabs > .active > a:hover {  outline: 0; color: #555555; background-color: #ffffff; border: 1px solid #ddd; border-bottom-color: transparent; cursor: default; } 
like image 193
Tim Avatar answered Sep 30 '22 04:09

Tim


You mean the outline, you can remove it as follows:

.nav-tabs > .active > a, .nav-tabs > .active > a:hover {   outline:none; } 

Though i would suggest you leave it in, since it is there in part to help people with disabilities and screen readers display your content properly, so you would be affecting usability by removing it.

like image 27
Andres Ilich Avatar answered Sep 30 '22 03:09

Andres Ilich