We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86e6a6e commit 88f973cCopy full SHA for 88f973c
packages/components/src/button/button.ts
@@ -90,11 +90,11 @@ export class GecutButtonDirective extends GecutDirective {
90
91
return html`
92
<div class="gecut-button-body">
93
- ${when(this.content.icon?.svg, () => icon({svg: this.content?.icon?.svg as string}))}
+ ${when(this.content.icon?.svg, () => icon(this.content!.icon!))}
94
95
<span class="text-labelLarge">${this.content.label}</span>
96
97
- ${when(this.content.trailingIcon?.svg, () => icon({svg: this.content?.trailingIcon?.svg as string}))}
+ ${when(this.content.trailingIcon?.svg, () => icon(this.content!.trailingIcon!))}
98
</div>
99
`;
100
}
0 commit comments