Bootstrap's Togglable Tabs - Removing outline / focus ?

前端 未结 8 1611
借酒劲吻你
借酒劲吻你 2021-02-01 15:15

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 dot

相关标签:
8条回答
  • The easiest way, if you compile your CSS from Less, drop this code into your less files

    .tab-focus() {
      outline: 0;
    }
    

    That's it.

    0 讨论(0)
  • 2021-02-01 15:40

    That focus border is an accessibility feature. By removing it, you are impeding some being able to access your site. By some, I mean people with disabilities.

    This video helps get my point (he has a mobility disability). (Here's it forwarded to when he carps on removing the border.)

    0 讨论(0)
提交回复
热议问题