]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove forced default focus outline (#20275)
authorChris Rebert <github@chrisrebert.com>
Tue, 12 Jul 2016 03:50:27 +0000 (20:50 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Jul 2016 03:50:27 +0000 (20:50 -0700)
As this causes non-standard dotted outline on checkboxes/radio buttons
in OS X Firefox

Ports #19935 to v4
Refs #19933

[skip sauce]

scss/mixins/_tab-focus.scss

index 7df0ae7ca114611e90c2f1c6d2bfcf55bc6792ec..f16ed6428aac35b4bc86d9c18501f651632d2adf 100644 (file)
@@ -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;
 }