From: Mark Otto Date: Thu, 28 Dec 2017 00:43:37 +0000 (-0800) Subject: apply same active/focus shadow styling to button variants X-Git-Tag: v4.0.0-beta.3~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a4a94bfd90626bdd48cea0c0d4bf0293f052edb;p=thirdparty%2Fbootstrap.git apply same active/focus shadow styling to button variants --- diff --git a/scss/mixins/_buttons.scss b/scss/mixins/_buttons.scss index c6e0e03a4c..252e26ace1 100644 --- a/scss/mixins/_buttons.scss +++ b/scss/mixins/_buttons.scss @@ -42,11 +42,13 @@ } 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); + } } } }