]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Mixin `button-outline-variant` should retain active box shadow when focused
authorPatrick Yeo <patrick.yeo@liferay.com>
Tue, 2 Jan 2018 21:19:55 +0000 (13:19 -0800)
committerMark Otto <markdotto@gmail.com>
Sun, 14 Jan 2018 03:19:33 +0000 (19:19 -0800)
scss/mixins/_buttons.scss

index c2ab602ef7183041bc8126d111b23efab81edc58..e6ccbc6d48a4a390ebbf2d3b8fa3beb2d5a7b8cf 100644 (file)
 
     &:focus {
       // Avoid using mixin so we can pass custom focus shadow properly
-      box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
+      @if $enable-shadows and $btn-active-box-shadow != none {
+        box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($color, .5);
+      } @else {
+        box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
+      }
     }
   }
 }