parent
9f0a095405
commit
f68d6cd6cd
|
@ -32,7 +32,7 @@
|
|||
{{~#if this.computedLabel~}}
|
||||
<span class="d-button-label">
|
||||
{{~html-safe this.computedLabel~}}
|
||||
{{~#if this.ellipsis~}}
|
||||
{{~#if @ellipsis~}}
|
||||
…
|
||||
{{~/if~}}
|
||||
</span>
|
||||
|
|
|
@ -312,4 +312,10 @@ module("Integration | Component | d-button", function (hooks) {
|
|||
|
||||
assert.strictEqual(this.foo, "bar");
|
||||
});
|
||||
|
||||
test("ellipses", async function (assert) {
|
||||
await render(hbs`<DButton @translatedLabel="test label" @ellipsis=true />`);
|
||||
|
||||
assert.dom(".d-button-label").hasText("test label…");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue