1
0
mirror of https://github.com/flarum/core.git synced 2025-08-31 03:50:15 +02:00

fix: rename function

This commit is contained in:
protoclown
2022-09-25 18:22:30 +02:00
parent d3506efec7
commit bf53cda90b

View File

@@ -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';