From bf53cda90b8a343ae22cdf02a7da731ceb17f94b Mon Sep 17 00:00:00 2001 From: protoclown Date: Sun, 25 Sep 2022 18:22:30 +0200 Subject: [PATCH] fix: rename function --- extensions/tags/js/src/common/helpers/tagLabel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/tags/js/src/common/helpers/tagLabel.js b/extensions/tags/js/src/common/helpers/tagLabel.js index 8b667bc06..51bf849cd 100644 --- a/extensions/tags/js/src/common/helpers/tagLabel.js +++ b/extensions/tags/js/src/common/helpers/tagLabel.js @@ -12,7 +12,7 @@ export default function tagLabel(tag, attrs = {}) { if (tag) { const color = tag.color(); - const contrast = yiqValue(color); + const contrast = getContrast(color); if (color) { attrs.style['--tag-bg'] = color; attrs.className += ' colored';