commit: a4560d562dd08f2584b220f786aaaaa461361120
parent 7f89efa4f9b544caacb588eca679a7b0005fc08d
Author: Henry Jameson <me@hjkos.com>
Date: Mon, 30 Dec 2024 17:32:57 +0200
fix tests
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/services/color_convert/color_convert.js b/src/services/color_convert/color_convert.js
@@ -216,7 +216,7 @@ export const getTextColor = function (bg, text, preserve) {
}
const base = typeof text.a !== 'undefined' ? { a: text.a } : {}
- return Object.assign(base, result)
+ return Object.assign(convert(result).rgb, base)
}
/**