From 7a21517a480a3c8a80c36d1891cbb302b23b8aef Mon Sep 17 00:00:00 2001 From: Pierre-Denis Vanduynslager Date: Thu, 20 Oct 2016 14:29:20 -0400 Subject: [PATCH 1/2] Set box-shadow on input if enable-shadows rather than enable-rounded --- scss/mixins/_forms.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scss/mixins/_forms.scss b/scss/mixins/_forms.scss index 39851b8f8d..9340248f00 100644 --- a/scss/mixins/_forms.scss +++ b/scss/mixins/_forms.scss @@ -17,7 +17,7 @@ .form-control { border-color: $color; - @if $enable-rounded { + @if $enable-shadows { &:focus { box-shadow: $input-box-shadow, 0 0 6px lighten($color, 20%); } From 6eb2e54a912976cc43d9156c258dcc4f3f92fac2 Mon Sep 17 00:00:00 2001 From: Pierre-Denis Vanduynslager Date: Thu, 20 Oct 2016 16:35:45 -0400 Subject: [PATCH 2/2] Use box-shadow mixin --- scss/mixins/_forms.scss | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scss/mixins/_forms.scss b/scss/mixins/_forms.scss index 9340248f00..349aee912b 100644 --- a/scss/mixins/_forms.scss +++ b/scss/mixins/_forms.scss @@ -17,10 +17,8 @@ .form-control { border-color: $color; - @if $enable-shadows { - &:focus { - box-shadow: $input-box-shadow, 0 0 6px lighten($color, 20%); - } + &:focus { + @include box-shadow($input-box-shadow, 0 0 6px lighten($color, 20%)); } }