From c22c8366c94f1df6809fff7370526f2acbf9efe0 Mon Sep 17 00:00:00 2001 From: Catalin Zalog Date: Wed, 1 Apr 2020 16:43:13 +0300 Subject: [PATCH] fix: adds `box-shadow` mixin Fixes css property `box-shadow` become invalid. The css property is invalid if one of `$input-box-shadow` or `$input-focus-box-shadow` is `none`. The `box-shadow` mixin verifies for `length($string) == 1`. --- scss/forms/_form-control.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scss/forms/_form-control.scss b/scss/forms/_form-control.scss index 42456e3aa650..6686ecfb8058 100644 --- a/scss/forms/_form-control.scss +++ b/scss/forms/_form-control.scss @@ -29,10 +29,10 @@ background-color: $input-focus-bg; border-color: $input-focus-border-color; outline: 0; - // Avoid using mixin so we can pass custom focus shadow properly @if $enable-shadows { - box-shadow: $input-box-shadow, $input-focus-box-shadow; + @include box-shadow($input-box-shadow, $input-focus-box-shadow); } @else { + // Avoid using mixin so we can pass custom focus shadow properly box-shadow: $input-focus-box-shadow; } }