mirror of
https://github.com/flarum/core.git
synced 2025-08-09 18:07:02 +02:00
Add "TagLabel--child" class to tagLabel to aid with custom theming (#114)
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user