From e38c3506e3e0108562e6774afed167549bff0a99 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 27 Dec 2016 14:50:33 -0800 Subject: [PATCH] properly pass focus shadow should you enable shadows don't implement for the outline style because outline buttons get no shadow by default --- scss/mixins/_buttons.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scss/mixins/_buttons.scss b/scss/mixins/_buttons.scss index 80d0f6cc27..f9981e326a 100644 --- a/scss/mixins/_buttons.scss +++ b/scss/mixins/_buttons.scss @@ -20,7 +20,12 @@ } &:focus, &.focus { - box-shadow: 0 0 0 2px rgba($border, .5); + // Avoid using mixin so we can pass custom focus shadow properly + @if $enable-shadows { + box-shadow: $btn-box-shadow, 0 0 0 2px rgba($border, .5); + } @else { + box-shadow: 0 0 0 2px rgba($border, .5); + } } // Disabled comes first so active can properly restyle