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 ed07f83 commit 1837fcdCopy full SHA for 1837fcd
elements/pf-alert/pf-alert.ts
@@ -25,6 +25,7 @@ const variantToIcon = (variant: PfAlert['variant']): string | undefined => {
25
}
26
};
27
28
+
29
@customElement('pf-alert')
30
export class PfAlert extends LitElement {
31
static readonly styles: CSSStyleSheet[] = [styles];
@@ -51,9 +52,11 @@ export class PfAlert extends LitElement {
51
52
<div id="container" part="container"
53
class=${classMap({ hasIcon, [variant ?? '']: !!variant })}>
54
55
56
<div id="icon-container" part="icon-container">
57
<slot name="icon" part="icon">${!calculatedIcon ? '' : html`
- <pf-icon icon="${calculatedIcon}"></pf-icon>`}
58
+ <pf-icon icon="circle-exclamation"></pf-icon>`
59
+ }
60
</slot>
61
</div>
62
0 commit comments