]> zoso.dev Git - nemo-wallet.git/commitdiff
Add some emojis to notifications for visual accessibility.
authorChris Duncan <chris@zoso.dev>
Tue, 15 Oct 2024 07:59:33 +0000 (00:59 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 15 Oct 2024 07:59:33 +0000 (00:59 -0700)
app/pages/nemo-wallet.html

index ed1241686d085f1ae60d86824f1e67e7c9f5eb7b..207456bfb4704a67d65400423251d920f422be95 100644 (file)
@@ -79,7 +79,7 @@
     }
     async function clearStorage () {
       sessionStorage.clear()
-      notify.ok(`Session storage cleared`)
+      notify.info(`Session storage cleared`)
     }
     const notify = {
       show: (msg, color) => {
         notification.appendChild(text)
         notification.opened = true
       },
-      info: (msg) => notify.show(msg),
-      ok: (msg) => notify.show(msg, 'DarkCyan'),
-      warn: (msg) => notify.show(`⚠️ ${msg}`, 'Goldenrod'),
-      error: (msg) => notify.show(`⚠️ ${msg}`, 'FireBrick')
+      info: (msg) => notify.show(`ℹ️ ${msg}`),
+      ok: (msg) => notify.show(`☑️ ${msg}`, 'Cyan'),
+      warn: (msg) => notify.show(`⚠️ ${msg}`, 'Gold'),
+      error: (msg) => notify.show(`🚫 ${msg}`, 'Tomato')
     }
   </script>
   <script src="" type="module"></script>