Created by: Lausselloic
Following @mdo PR for color update : https://github.com/twbs/bootstrap/pull/22836
Many thanks for the color contrast mixin which check the font color according to the background for badges only at time. But yiq is not the official wcag and doesn't give the same result on some colors (e.g with blue #527edb yiq set text color to white where official wcag lum set it to black.
I propose a SCSS adaptation of the HTMLCS JS solution. Need to add a dependency to sass-math-pow.
I hope this solution will be helpfull. Let me know