Skip to content

Commit 1b1670b

Browse files
committed
fix(themes): don't throw error on non-color values
1 parent 4767e7d commit 1b1670b

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)