From: Mark Otto Date: Sun, 24 Dec 2017 04:33:41 +0000 (-0800) Subject: Only apply the active and focus shadow on the focus state for :active X-Git-Tag: v4.0.0-beta.3~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97cfe5a5820895348570ba1c2b67847715f1bca3;p=thirdparty%2Fbootstrap.git Only apply the active and focus shadow on the focus state for :active --- diff --git a/scss/_buttons.scss b/scss/_buttons.scss index fa0e9c99c8..a9216ced7a 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; + } } }