UX: Add a `span` to d-button so text can be hidden via CSS
This commit is contained in:
parent
f6222ff225
commit
f7b686117b
|
@ -2,5 +2,8 @@
|
|||
{{fa-icon icon}}
|
||||
{{/if}}
|
||||
|
||||
{{{translatedLabel}}}
|
||||
{{#if translatedLabel}}
|
||||
<span class='d-button-label'>{{{translatedLabel}}}</span>
|
||||
{{/if}}
|
||||
|
||||
{{yield}}
|
||||
|
|
|
@ -7,6 +7,11 @@
|
|||
{{categories-admin-dropdown}}
|
||||
{{/if}}
|
||||
{{#if canCreateTopic}}
|
||||
<button id="create-topic" class='btn btn-default' {{action "createTopic"}}><i class='fa fa-plus'></i><span>{{i18n 'topic.create'}}</span></button>
|
||||
{{d-button
|
||||
id="create-topic"
|
||||
action="createTopic"
|
||||
icon="plus"
|
||||
label="topic.create"
|
||||
}}
|
||||
{{/if}}
|
||||
{{/d-section}}
|
||||
|
|
Loading…
Reference in New Issue