Skip to content

Commit 1837fcd

Browse files
committed
fix(alert): fix alert new -no --verfy
1 parent ed07f83 commit 1837fcd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

elements/pf-alert/pf-alert.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const variantToIcon = (variant: PfAlert['variant']): string | undefined => {
2525
}
2626
};
2727

28+
2829
@customElement('pf-alert')
2930
export class PfAlert extends LitElement {
3031
static readonly styles: CSSStyleSheet[] = [styles];
@@ -51,9 +52,11 @@ export class PfAlert extends LitElement {
5152
<div id="container" part="container"
5253
class=${classMap({ hasIcon, [variant ?? '']: !!variant })}>
5354
55+
5456
<div id="icon-container" part="icon-container">
5557
<slot name="icon" part="icon">${!calculatedIcon ? '' : html`
56-
<pf-icon icon="${calculatedIcon}"></pf-icon>`}
58+
<pf-icon icon="circle-exclamation"></pf-icon>`
59+
}
5760
</slot>
5861
</div>
5962

0 commit comments

Comments
 (0)