]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
properly pass focus shadow should you enable shadows
authorMark Otto <markdotto@gmail.com>
Tue, 27 Dec 2016 22:50:33 +0000 (14:50 -0800)
committerMark Otto <markd.otto@gmail.com>
Wed, 28 Dec 2016 23:12:04 +0000 (15:12 -0800)
don't implement for the outline style because outline buttons get no shadow by default

scss/mixins/_buttons.scss

index 80d0f6cc27a6e3365d70bbcee61f84fbefdd93e2..f9981e326ae932142f3d1ec614ec1272349957b3 100644 (file)
   }
   &:focus,
   &.focus {
-    box-shadow: 0 0 0 2px rgba($border, .5);
+    // Avoid using mixin so we can pass custom focus shadow properly
+    @if $enable-shadows {
+      box-shadow: $btn-box-shadow, 0 0 0 2px rgba($border, .5);
+    } @else {
+      box-shadow: 0 0 0 2px rgba($border, .5);
+    }
   }
 
   // Disabled comes first so active can properly restyle