Fix minimumContrastRatio on dom/truecolor

Fixes #2593
This commit is contained in:
Daniel Imms
2019-12-04 10:54:17 -08:00
parent 8b5c48fe87
commit 543b3d6c9f
2 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ export function contrastRatio(l1: number, l2: number): number {
return (l1 + 0.05) / (l2 + 0.05);
}
function rgbaToColor(r: number, g: number, b: number): IColor {
export function rgbaToColor(r: number, g: number, b: number): IColor {
return {
css: toCss(r, g, b),
rgba: toRgba(r, g, b)