mirror of
https://github.com/flarum/core.git
synced 2025-09-01 20:24:25 +02:00
fix: rename function
This commit is contained in:
@@ -12,7 +12,7 @@ export default function tagLabel(tag, attrs = {}) {
|
|||||||
|
|
||||||
if (tag) {
|
if (tag) {
|
||||||
const color = tag.color();
|
const color = tag.color();
|
||||||
const contrast = yiqValue(color);
|
const contrast = getContrast(color);
|
||||||
if (color) {
|
if (color) {
|
||||||
attrs.style['--tag-bg'] = color;
|
attrs.style['--tag-bg'] = color;
|
||||||
attrs.className += ' colored';
|
attrs.className += ' colored';
|
||||||
|
Reference in New Issue
Block a user