Commit 5dcf7cd3 authored by wojtask9's avatar wojtask9 Committed by XhmikosR
Browse files

box-shadow mixin fix (#28004)

parent dc436427
Showing with 9 additions and 3 deletions
+9 -3
...@@ -2,9 +2,15 @@ ...@@ -2,9 +2,15 @@
@if $enable-shadows { @if $enable-shadows {
$result: (); $result: ();
@for $i from 1 through length($shadow) { @if (length($shadow) == 1) {
@if nth($shadow, $i) != "none" { // We can pass `@include box-shadow(none);`
$result: append($result, nth($shadow, $i), "comma"); $result: $shadow;
} @else {
// Filter to avoid invalid properties for example `box-shadow: none, 1px 1px black;`
@for $i from 1 through length($shadow) {
@if nth($shadow, $i) != "none" {
$result: append($result, nth($shadow, $i), "comma");
}
} }
} }
@if (length($result) > 0) { @if (length($result) > 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment