Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .jules/palette.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

## 2026-07-04 - Dynamic ARIA Labels for Toggle States
**Learning:** Interactive elements which toggle states (e.g. copy buttons that show a checkmark) require their `aria-label` to dynamically update to reflect the current state to screen readers.
**Action:** Always use dynamic `aria-label={state ? 'Copied' : 'Copy'}` syntax for state-toggling buttons.
4 changes: 3 additions & 1 deletion src/components/VaultDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ export default function VaultDashboard() {
/>
</div>

<button onClick={loadFiles} className="text-slate-400 hover:text-white transition-colors shrink-0 ml-auto md:ml-0" title="Refresh index">
<button onClick={loadFiles} className="text-slate-400 hover:text-white transition-colors shrink-0 ml-auto md:ml-0" title="Refresh index" aria-label="Refresh index">
<RefreshCw className={`w-4 h-4 ${isLoading ? 'animate-spin' : ''}`} />
</button>
</div>
Expand Down Expand Up @@ -635,6 +635,7 @@ export default function VaultDashboard() {
onClick={() => setSharingFile(null)}
disabled={isPreparingShare}
className="text-slate-400 hover:text-white transition-colors"
aria-label="Close share dialog"
>
<X className="w-4 h-4" />
</button>
Expand Down Expand Up @@ -777,6 +778,7 @@ export default function VaultDashboard() {
setTimeout(() => setCopied(false), 2000);
}}
className="px-3 py-2 rounded-lg bg-[#d4af37] hover:bg-[#e5c158] text-[#141310] border border-[#d4af37]/20 transition-all flex items-center justify-center shrink-0"
aria-label={copied ? "Link copied" : "Copy share link"}
>
{copied ? <Check className="w-3.5 h-3.5" /> : <Copy className="w-3.5 h-3.5" />}
</button>
Expand Down