Skip to content

Commit d16d072

Browse files
nielslyngsoeiOvergaard
authored andcommitted
fix color prop parsing
1 parent b03d833 commit d16d072

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/uui-toast-notification/lib/uui-toast-notification.element.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ export class UUIToastNotificationElement extends LitElement {
121121

122122
/**
123123
* Changes the look of the notification to one of the predefined, symbolic looks. Example set this to danger for errors.
124-
* @type {""|"primary"|"positive"|"warning"|"danger"}
124+
* @type {""|"default"|"primary"|"positive"|"warning"|"danger"}
125125
* @attr
126126
* @default ""
127127
*/
128128
@property({ reflect: true })
129-
color = '';
129+
color: '' | 'default' | 'positive' | 'warning' | 'danger' = '';
130130

131131
private _autoClose: number | null = null;
132132
/**
@@ -343,7 +343,7 @@ export class UUIToastNotificationElement extends LitElement {
343343
<div id="close">
344344
<uui-button
345345
.label=${'close'}
346-
?color=${this.color}
346+
.color=${this.color}
347347
.look=${this.color ? 'primary' : 'default'}
348348
@click=${() => (this.open = false)}>
349349
<uui-icon

0 commit comments

Comments
 (0)