Skip to content

Commit 6d60a7e

Browse files
committed
use uui-icon for icons
1 parent b68edfd commit 6d60a7e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/uui-button/lib/uui-button.element.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
iconCheck,
1212
iconWrong,
1313
} from '@umbraco-ui/uui-icon-registry-essential/lib/svgs';
14+
import '@umbraco-ui/uui-icon/lib';
1415
import { css, html, LitElement } from 'lit';
1516
import { property } from 'lit/decorators.js';
1617

@@ -592,10 +593,14 @@ export class UUIButtonElement extends LabelMixin('', LitElement) {
592593
element = html`<uui-loader-circle id="loader"></uui-loader-circle>`;
593594
break;
594595
case 'success':
595-
element = html`<div id="icon-check" style="">${iconCheck}</div>`;
596+
element = html`<uui-icon
597+
name="check"
598+
.fallback=${iconCheck.strings[0]}></uui-icon>`;
596599
break;
597600
case 'failed':
598-
element = html`<div id="icon-wrong" style="">${iconWrong}</div>`;
601+
element = html`<uui-icon
602+
name="wrong"
603+
.fallback=${iconWrong.strings[0]}></uui-icon>`;
599604
break;
600605
default:
601606
return '';

0 commit comments

Comments
 (0)