]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Only apply the active and focus shadow on the focus state for :active
authorMark Otto <markdotto@gmail.com>
Sun, 24 Dec 2017 04:33:41 +0000 (20:33 -0800)
committerMark Otto <markd.otto@gmail.com>
Thu, 28 Dec 2017 01:56:28 +0000 (17:56 -0800)
scss/_buttons.scss

index fa0e9c99c815f84068ceeeed87cfde60ba654b7d..a9216ced7a534457977c4648f6460fbb7228af8b 100644 (file)
   &:not([disabled]):not(.disabled):active,
   &:not([disabled]):not(.disabled).active {
     background-image: none;
-    @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
+    box-shadow: $btn-active-box-shadow;
+
+    &:focus {
+      @box-shadow: $btn-focus-box-shadow, $btn-active-box-shadow;
+    }
   }
 }