aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Yeo <[email protected]>2018-01-02 13:19:55 -0800
committerMark Otto <[email protected]>2018-01-13 19:19:33 -0800
commitffcbdb5a1c52366e84b2c15999d83abc8ad36dbf (patch)
tree589e0cd66fcb9d0179b320efd9262c334f7045fe
parentedfc2e8145ae179e78235882e7245c3d27b06f8d (diff)
downloadbootstrap-ffcbdb5a1c52366e84b2c15999d83abc8ad36dbf.tar.xz
bootstrap-ffcbdb5a1c52366e84b2c15999d83abc8ad36dbf.zip
Mixin `button-outline-variant` should retain active box shadow when focused
-rw-r--r--scss/mixins/_buttons.scss6
1 files changed, 5 insertions, 1 deletions
diff --git a/scss/mixins/_buttons.scss b/scss/mixins/_buttons.scss
index c2ab602ef..e6ccbc6d4 100644
--- a/scss/mixins/_buttons.scss
+++ b/scss/mixins/_buttons.scss
@@ -86,7 +86,11 @@
&: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);
+ }
}
}
}