From 34b6a56a321fed6c4f82bb611412708489369c6e Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 11 Jan 2024 19:22:31 -0800 Subject: feat(notifications): remove button, add click --- src/lib/Notification/Notification.svelte | 53 ++++++++++++-------------------- 1 file changed, 20 insertions(+), 33 deletions(-) (limited to 'src/lib') diff --git a/src/lib/Notification/Notification.svelte b/src/lib/Notification/Notification.svelte index 9612d526..f5e172a7 100644 --- a/src/lib/Notification/Notification.svelte +++ b/src/lib/Notification/Notification.svelte @@ -16,28 +16,33 @@ }; -
+
{ + return; + }} + role="button" + tabindex="0" +> {#if notification.description} -
+ +
event.preventDefault()} + on:keydown={() => { + return; + }} + > {@html notification.heading} {@html notification.description} - -
- -
- -
{:else}
{@html notification.heading} - -     - -
- -
{/if}
@@ -46,6 +51,7 @@ #notification-container { margin: 1rem 1rem 0 0; float: right; + cursor: pointer; } #notification { @@ -55,25 +61,6 @@ widows: 100%; } - .button-container { - display: flex; - justify-content: flex-end; - } - - #notification > div { - display: inline; - } - - .button-hide { - float: right; - } - - .button-container::after { - content: ''; - clear: both; - display: table; - } - .fade-in { animation: fadeInAnimation ease 300ms; animation-iteration-count: 1; -- cgit v1.2.3