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:
@@ -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';
|
||||
|
Reference in New Issue
Block a user