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}}
{{/if}}
{{{translatedLabel}}}
{{#if translatedLabel}}
<span class='d-button-label'>{{{translatedLabel}}}</span>
{{/if}}
{{yield}}

View File

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