FIX: Remove zero-width space when not necessary (#18429)

A zero-width space character is inserted for icon-only buttons, but that
is unnecessary when the button has some rich-content and the block form
is used.
This commit is contained in:
Bianca Nenciu 2022-09-30 18:34:47 +03:00 committed by GitHub
parent 35a90b6a3f
commit b615201b88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@
{{~#if this.computedLabel~}}
<span class="d-button-label">{{html-safe this.computedLabel}}{{#if this.ellipsis}}&hellip;{{/if}}</span>
{{~else~}}
{{~else if (not (has-block))~}}
&#8203;
{{! Zero-width space character, so icon-only button height = regular button height }}
{{~/if~}}