fix tab affordance: use standard button style with border + hover invert

Per README clickable affordance policy: all tabs now use visible
border, padding, and hover:bg-fg hover:text-bg (invert to
white-on-black). Active tab is inverted (bg-fg text-bg). All
three tabs behave identically on hover regardless of active state.
This commit is contained in:
user
2026-02-28 13:24:55 -08:00
parent 9246959777
commit 9476724284
2 changed files with 9 additions and 15 deletions

View File

@@ -58,27 +58,24 @@
<h2 class="font-bold mb-2">Add Wallet</h2>
<!-- Mode selector tabs -->
<div
class="flex border-b border-border mb-3"
id="add-wallet-tabs"
>
<div class="flex gap-1 mb-3" id="add-wallet-tabs">
<button
id="tab-mnemonic"
class="tab-btn tab-active px-3 py-1.5 cursor-pointer text-xs font-bold border-b-2 border-b-fg -mb-px"
class="border border-border px-2 py-1 cursor-pointer text-xs hover:bg-fg hover:text-bg bg-fg text-bg"
>
From Recovery Phrase
From Phrase
</button>
<button
id="tab-privkey"
class="tab-btn tab-inactive px-3 py-1.5 cursor-pointer text-xs text-muted border-b-2 border-b-transparent -mb-px hover:text-fg hover:border-b-muted"
class="border border-border px-2 py-1 cursor-pointer text-xs hover:bg-fg hover:text-bg"
>
From Private Key
From Key
</button>
<button
id="tab-xprv"
class="tab-btn tab-inactive px-3 py-1.5 cursor-pointer text-xs text-muted border-b-2 border-b-transparent -mb-px hover:text-fg hover:border-b-muted"
class="border border-border px-2 py-1 cursor-pointer text-xs hover:bg-fg hover:text-bg"
>
From Extended Key (xprv)
From xprv
</button>
</div>