Skip to content

Commit 03e984b

Browse files
authored
Merge pull request #7922 from IgniteUI/simeonoff/fix-7920
fix(themes): don't throw error on non-color values
2 parents 1a57232 + 15f0fb7 commit 03e984b

File tree

1 file changed

+2
-1
lines changed
  • projects/igniteui-angular/src/lib/core/styles/base/utilities

1 file changed

+2
-1
lines changed

projects/igniteui-angular/src/lib/core/styles/base/utilities/_functions.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@
186186
}
187187
}
188188
} @else {
189-
@error 'Expected color for $background/$foreground but got #{$background}/#{$foreground}';
189+
@warn 'Expected color for $background/$foreground but got #{$background}/#{$foreground}. The contrast color can\'t be calculated automatically.';
190+
@return #fff;
190191
}
191192
}
192193

0 commit comments

Comments
 (0)