Skip to content

Commit

Permalink
fix: integrity
Browse files Browse the repository at this point in the history
  • Loading branch information
dauriamarco committed Jan 15, 2024
1 parent fa62270 commit 4e409a4
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions src/components/notification/notification.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,12 @@ const simpleNotification = (
title-content="${title}"
disable-animation
style="--sbb-notification-margin: 0 0 var(--sbb-spacing-fixed-4x) 0;"
${ref(
(notification?: Element) =>
(notification as SbbNotificationElement)?.addEventListener(
SbbNotificationElement.events.didOpen,
() => ((notification as SbbNotificationElement).disableAnimation = disabelAnimation),
{ once: true },
),
${ref((notification?: Element) =>
(notification as SbbNotificationElement)?.addEventListener(
SbbNotificationElement.events.didOpen,
() => ((notification as SbbNotificationElement).disableAnimation = disabelAnimation),
{ once: true },
),
)}
>
This is a ${type} notification.
Expand Down Expand Up @@ -137,14 +136,13 @@ const MultipleNotificationsTemplate = (args: Args): TemplateResult => html`
<sbb-notification
${sbbSpread({ ...args, ['disable-animation']: true })}
style="--sbb-notification-margin: 0 0 var(--sbb-spacing-fixed-4x) 0;"
${ref(
(notification?: Element) =>
(notification as SbbNotificationElement)?.addEventListener(
SbbNotificationElement.events.didOpen,
() =>
((notification as SbbNotificationElement).disableAnimation = args['disable-animation']),
{ once: true },
),
${ref((notification?: Element) =>
(notification as SbbNotificationElement)?.addEventListener(
SbbNotificationElement.events.didOpen,
() =>
((notification as SbbNotificationElement).disableAnimation = args['disable-animation']),
{ once: true },
),
)}
>
The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy
Expand Down

0 comments on commit 4e409a4

Please sign in to comment.