Repository navigation
fix(a11y): label icon-only card and battle actions - #8
LangerSword wants to merge 2 commits into
Conversation
|
Rook / automated review Verdict Findings
Open questions Do copy or link actions in other components flash to "Copied" without a stable label? The diff touches only CardActions and SplitDownload. I cannot see other call sites in the diff. If such actions exist, the fix is incomplete. Test gaps I did not run No test renders the "Copied" flash. Add a test that triggers copy and checks the accessible name stays "Copy image", "Copy link", "Copy embed Markdown", and "Copy JSON API URL". Evidence boundary: I reviewed only the diff. The |
Fixes #1.
Problem: Copy, link and embed actions lost their name when visible text changed to "Copied".
Change: Add stable aria-labels to copy image, copy link, embed and JSON actions. Visible text stays the same.
Test: Render card and battle actions. Check icon-only names and menu item names.
Checks: npm test 41 pass. tsc clean. build passes.
Credit: LangerSword