From 2099bd07d34a657593342785f7800f8cabe74d8f Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 7 Feb 2022 15:15:28 +0000 Subject: [PATCH 1/3] Remove automatic dismissal of error notifications and instead allow only manual dismissal, and also enable pointer events so errors can be copied --- .../bbui/src/Notification/Notification.svelte | 29 +++++++++++++++++++ .../Notification/NotificationDisplay.svelte | 13 ++++++--- packages/bbui/src/Stores/notifications.js | 25 ++++++++++------ 3 files changed, 54 insertions(+), 13 deletions(-) diff --git a/packages/bbui/src/Notification/Notification.svelte b/packages/bbui/src/Notification/Notification.svelte index cebc859bda..1d21131553 100644 --- a/packages/bbui/src/Notification/Notification.svelte +++ b/packages/bbui/src/Notification/Notification.svelte @@ -1,7 +1,12 @@
@@ -17,4 +22,28 @@
{message || ""}
+ {#if dismissable} +
+ +
+ {/if}
+ + diff --git a/packages/bbui/src/Notification/NotificationDisplay.svelte b/packages/bbui/src/Notification/NotificationDisplay.svelte index 9d96bf7e70..eb778f3aa0 100644 --- a/packages/bbui/src/Notification/NotificationDisplay.svelte +++ b/packages/bbui/src/Notification/NotificationDisplay.svelte @@ -1,7 +1,6 @@