Skip to content

Commit

Permalink
fix(color-yiq): missing primary exception for Boosted…
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Feb 14, 2020
1 parent cef2451 commit a3e272f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scss/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@
// Based on @ysds implementation
// See https://github.com/twbs/bootstrap/pull/30168
@function color-yiq($background, $foreground-dark: $yiq-text-dark, $foreground-light: $yiq-text-light) {
// Boosted mod: Orange is not the new Black
@if ($background == $primary) {
@return $foreground-light;
}
// end mod
$l1: luminance($background);
$l2: luminance(opaque($background, $foreground-light));

Expand Down

0 comments on commit a3e272f

Please sign in to comment.