mirror of
https://github.com/flarum/core.git
synced 2025-08-11 10:55:47 +02:00
Add missing Button-label span from ButtonLink (#113)
Every sideNav item created by flarum/core includes this span, so tags should too.
This commit is contained in:
@@ -20,7 +20,9 @@ export default class TagLinkButton extends LinkButton {
|
|||||||
style={active && tag ? {color: tag.color()} : ''}
|
style={active && tag ? {color: tag.color()} : ''}
|
||||||
title={description || ''}>
|
title={description || ''}>
|
||||||
{tagIcon(tag, {className: 'Button-icon'})}
|
{tagIcon(tag, {className: 'Button-icon'})}
|
||||||
|
<span className="Button-label">
|
||||||
{tag ? tag.name() : app.translator.trans('flarum-tags.forum.index.untagged_link')}
|
{tag ? tag.name() : app.translator.trans('flarum-tags.forum.index.untagged_link')}
|
||||||
|
</span>
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user