${Default(args)}
Other Content on the page.
- ${!args.readonly
- ? html`
- Dismissal event of the alert has to be caught by the consumer and the alert has to be
- manually removed from DOM. See 'sbb-alert-group' for demonstration.
-
`
- : nothing}
`;
};
@@ -221,7 +211,8 @@ const meta: Meta = {
handles: [
SbbAlertElement.events.willOpen,
SbbAlertElement.events.didOpen,
- SbbAlertElement.events.dismissalRequested,
+ SbbAlertElement.events.willClose,
+ SbbAlertElement.events.didClose,
],
},
docs: {
diff --git a/src/elements/alert/alert/alert.ts b/src/elements/alert/alert/alert.ts
index 5c09c0757f..1b762dd76d 100644
--- a/src/elements/alert/alert/alert.ts
+++ b/src/elements/alert/alert/alert.ts
@@ -4,7 +4,6 @@ import { customElement, property } from 'lit/decorators.js';
import { type LinkTargetType, SbbOpenCloseBaseElement } from '../../core/base-elements.js';
import { SbbLanguageController } from '../../core/controllers.js';
import { forceType } from '../../core/decorators.js';
-import { EventEmitter } from '../../core/eventing.js';
import { i18nCloseAlert, i18nFindOutMore } from '../../core/i18n.js';
import { SbbIconNameMixin } from '../../icon.js';
import type { SbbTitleLevel } from '../../title.js';
@@ -26,7 +25,6 @@ import '../../title.js';
* @event {CustomEvent