aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-12-23 20:33:41 -0800
committerMark Otto <[email protected]>2017-12-27 17:56:28 -0800
commit97cfe5a5820895348570ba1c2b67847715f1bca3 (patch)
tree129c8c7a68611dd2133346f4225d561b9b465a68
parentc0129f8c2a281c75d35a003852d15916fc689fae (diff)
downloadbootstrap-97cfe5a5820895348570ba1c2b67847715f1bca3.tar.xz
bootstrap-97cfe5a5820895348570ba1c2b67847715f1bca3.zip
Only apply the active and focus shadow on the focus state for :active
-rw-r--r--scss/_buttons.scss6
1 files changed, 5 insertions, 1 deletions
diff --git a/scss/_buttons.scss b/scss/_buttons.scss
index fa0e9c99c..a9216ced7 100644
--- a/scss/_buttons.scss
+++ b/scss/_buttons.scss
@@ -40,7 +40,11 @@
&: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;
+ }
}
}