Add "TagLabel--child" class to tagLabel to aid with custom theming (#114)

This commit is contained in:
David Wheatley 2021-02-01 21:02:36 +00:00 committed by GitHub
parent 3573b694e5
commit b6ca4c8c84

View File

@ -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';
}