mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 14:24:57 +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.href = app.route('tag', {tags: tag.slug()});
|
||||
}
|
||||
|
||||
if (tag.isChild()) {
|
||||
attrs.className += ' TagLabel--child';
|
||||
}
|
||||
} else {
|
||||
attrs.className += ' untagged';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user