mirror of
https://github.com/flarum/framework.git
synced 2025-02-23 05:54:10 +08:00
Add "TagLabel--child" class to tagLabel to aid with custom theming (#114)
This commit is contained in:
parent
3573b694e5
commit
b6ca4c8c84
@ -20,6 +20,10 @@ export default function tagLabel(tag, attrs = {}) {
|
|||||||
attrs.title = tag.description() || '';
|
attrs.title = tag.description() || '';
|
||||||
attrs.href = app.route('tag', {tags: tag.slug()});
|
attrs.href = app.route('tag', {tags: tag.slug()});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tag.isChild()) {
|
||||||
|
attrs.className += ' TagLabel--child';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
attrs.className += ' untagged';
|
attrs.className += ' untagged';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user