(this.alert = el)}
- part="base"
- class={{
- alert: true,
- 'alert--open': this.open,
- 'alert--closable': this.closable,
- 'alert--primary': this.type === 'primary',
- 'alert--success': this.type === 'success',
- 'alert--info': this.type === 'info',
- 'alert--warning': this.type === 'warning',
- 'alert--danger': this.type === 'danger'
- }}
- role="alert"
- aria-live="assertive"
- aria-atomic="true"
- aria-hidden={!this.open}
- onMouseMove={this.handleMouseMove}
- onTransitionEnd={this.handleTransitionEnd}
- >
-
-
-
+
(this.alert = el)}
+ part="base"
+ class={{
+ alert: true,
+ 'alert--open': this.open,
+ 'alert--visible': this.isVisible,
+ 'alert--closable': this.closable,
+ 'alert--primary': this.type === 'primary',
+ 'alert--success': this.type === 'success',
+ 'alert--info': this.type === 'info',
+ 'alert--warning': this.type === 'warning',
+ 'alert--danger': this.type === 'danger'
+ }}
+ role="alert"
+ aria-live="assertive"
+ aria-atomic="true"
+ aria-hidden={!this.open}
+ onMouseMove={this.handleMouseMove}
+ onTransitionEnd={this.handleTransitionEnd}
+ >
+
+
+
-
-
-
+
+
+
- {this.closable && (
-
-
-
- )}
-
-
+ {this.closable && (
+
+
+
+ )}
+
);
}
}