Skip to content

Commit

Permalink
fix(css): checks for $btn-box-shadow
Browse files Browse the repository at this point in the history
Fixes `box-shadow` property being invalid when that var in `none`.
  • Loading branch information
zalog committed Apr 11, 2020
1 parent bcdd8fb commit 8ddfdbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scss/mixins/_buttons.scss
Expand Up @@ -31,7 +31,7 @@
@include gradient-bg($hover-background);
border-color: $hover-border;
// Avoid using mixin so we can pass custom focus shadow properly
@if $enable-shadows {
@if $enable-shadows and $btn-box-shadow != none {
box-shadow: $btn-box-shadow, 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5);
} @else {
box-shadow: 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), .5);
Expand Down

0 comments on commit 8ddfdbb

Please sign in to comment.