Skip to content

Commit

Permalink
Remove forced default focus outline (twbs#20275)
Browse files Browse the repository at this point in the history
As this causes non-standard dotted outline on checkboxes/radio buttons
in OS X Firefox

Ports twbs#19935 to v4
Refs twbs#19933

[skip sauce]
  • Loading branch information
cvrebert authored Jul 12, 2016
1 parent 1e01721 commit 873cf75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scss/mixins/_tab-focus.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// WebKit-style focus

@mixin tab-focus() {
// Default
outline: thin dotted;
// WebKit
// WebKit-specific. Other browsers will keep their default outline style.
// (Initially tried to also force default via `outline: initial`,
// but that seems to erroneously remove the outline in Firefox altogether.)
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}

0 comments on commit 873cf75

Please sign in to comment.