Skip to content

Commit 88f973c

Browse files
committed
fix(components/button): icons
1 parent 86e6a6e commit 88f973c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/components/src/button/button.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ export class GecutButtonDirective extends GecutDirective {
9090

9191
return html`
9292
<div class="gecut-button-body">
93-
${when(this.content.icon?.svg, () => icon({svg: this.content?.icon?.svg as string}))}
93+
${when(this.content.icon?.svg, () => icon(this.content!.icon!))}
9494
9595
<span class="text-labelLarge">${this.content.label}</span>
9696
97-
${when(this.content.trailingIcon?.svg, () => icon({svg: this.content?.trailingIcon?.svg as string}))}
97+
${when(this.content.trailingIcon?.svg, () => icon(this.content!.trailingIcon!))}
9898
</div>
9999
`;
100100
}

0 commit comments

Comments
 (0)