aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/account/ark
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-03 11:41:09 -0800
committerAdam Soltys <[email protected]>2026-02-11 15:33:27 -0800
commit4bc319a709d27bcdb805294e019d53e25f6e00c5 (patch)
tree2ab903d969946ddd6129f2e6b796368adeef65cd /src/routes/(app)/account/ark
parent8a6108a56c2e5035fd99c39ea13104cf23d98e2d (diff)
downloadcoinos-ui-4bc319a709d27bcdb805294e019d53e25f6e00c5.tar.gz
coinos-ui-4bc319a709d27bcdb805294e019d53e25f6e00c5.zip
fix warnings
Diffstat (limited to 'src/routes/(app)/account/ark')
-rw-r--r--src/routes/(app)/account/ark/+page.svelte42
1 files changed, 27 insertions, 15 deletions
diff --git a/src/routes/(app)/account/ark/+page.svelte b/src/routes/(app)/account/ark/+page.svelte
index 6d1d73f2..4036d140 100644
--- a/src/routes/(app)/account/ark/+page.svelte
+++ b/src/routes/(app)/account/ark/+page.svelte
@@ -97,12 +97,14 @@
{#if showNsec}
<div class="space-y-2">
- <div
- class="break-all p-4 rounded-lg cursor-pointer border"
+ <button
+ type="button"
+ class="break-all p-4 rounded-lg cursor-pointer border text-left w-full"
onclick={() => copy(nsec)}
+ aria-label="Copy backup key"
>
{nsec}
- </div>
+ </button>
</div>
<div class="flex gap-2">
@@ -151,13 +153,18 @@
/>
{/if}
- <iconify-icon
- noobserver
- class="cursor-pointer ml-auto"
+ <button
+ type="button"
+ class="ml-auto"
+ aria-label="Toggle password visibility"
onclick={() => (revealPassword = !revealPassword)}
- icon={revealPassword ? "ph:eye-bold" : "ph:eye-slash-bold"}
- width="32"
- ></iconify-icon>
+ >
+ <iconify-icon
+ noobserver
+ icon={revealPassword ? "ph:eye-bold" : "ph:eye-slash-bold"}
+ width="32"
+ ></iconify-icon>
+ </button>
</label>
<label
@@ -184,13 +191,18 @@
class="clean"
/>
{/if}
- <iconify-icon
- noobserver
- class="cursor-pointer ml-auto"
+ <button
+ type="button"
+ class="ml-auto"
+ aria-label="Toggle confirmation visibility"
onclick={() => (revealConfirm = !revealConfirm)}
- icon={revealConfirm ? "ph:eye-bold" : "ph:eye-slash-bold"}
- width="32"
- ></iconify-icon>
+ >
+ <iconify-icon
+ noobserver
+ icon={revealConfirm ? "ph:eye-bold" : "ph:eye-slash-bold"}
+ width="32"
+ ></iconify-icon>
+ </button>
</label>
<div class="flex gap-2">