UX: Add a `span` to d-button so text can be hidden via CSS

This commit is contained in:
Robin Ward 2017-06-28 15:46:09 -04:00
parent f6222ff225
commit f7b686117b
2 changed files with 10 additions and 2 deletions

View File

@ -2,5 +2,8 @@
{{fa-icon icon}} {{fa-icon icon}}
{{/if}} {{/if}}
{{{translatedLabel}}} {{#if translatedLabel}}
<span class='d-button-label'>{{{translatedLabel}}}</span>
{{/if}}
{{yield}} {{yield}}

View File

@ -7,6 +7,11 @@
{{categories-admin-dropdown}} {{categories-admin-dropdown}}
{{/if}} {{/if}}
{{#if canCreateTopic}} {{#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}} {{/if}}
{{/d-section}} {{/d-section}}