]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
apply same active/focus shadow styling to button variants
authorMark Otto <markdotto@gmail.com>
Thu, 28 Dec 2017 00:43:37 +0000 (16:43 -0800)
committerMark Otto <markd.otto@gmail.com>
Thu, 28 Dec 2017 01:56:28 +0000 (17:56 -0800)
scss/mixins/_buttons.scss

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