Skip to content

Commit

Permalink
fix: adds box-shadow mixin
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
zalog committed Apr 1, 2020
1 parent dfa017a commit c22c836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scss/forms/_form-control.scss
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit c22c836

Please sign in to comment.