[Bug]: Screen readers announce issue and PR rows in thread details as raw URLs
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
- Open a thread that has a linked issue and a linked pull request.
- Open the thread details panel.
- Move to the issue row and the pull request row with a screen reader (NVDA, VoiceOver).
Expected behavior
Each row says what it is, its number, and its title, matching what the icon and text show visually. For example:
- "Pull request #38134, merged: fix(web): …"
- "Issue #123: Sidebar flickers on resize"
On GitLab it should say "merge request", the term the app already uses for GitLab elsewhere.
Actual behavior
Each row is announced as its full URL, e.g. "https://github.com/pingdotgg/t3code/pull/38134, button". The kind (issue or pull request) only shows up as a URL path segment near the end, and the visible title is never read.
Sighted users tell the two apart by the icon: a circle-dot for issues and a state-coloured pull request icon (open, draft, merged, closed) for pull requests. The visible text has the same #123: title shape for both, so the icon is the only thing that tells them apart, and screen reader users get no equivalent.
The cause is that the row's aria-label is set to the URL, which replaces the visible text:
- Issue rows:
apps/web/src/components/chat/ThreadDetailsIssueRows.tsx(aria-label={link.url}) - Pull request rows:
apps/web/src/components/chat/ThreadDetailsPrRows.tsx(openAriaLabel={link.url}/openAriaLabel={url}), passed through toThreadDetailsPrRow.tsx
This also fails WCAG 2.5.3 Label in Name: the spoken name doesn't contain the visible text, so voice control commands like "click #38134" don't match.
Impact
Minor bug or occasional failure
Version or commit
main @ 81049d2b92
Environment
Any web or desktop client with a screen reader. Not tied to a provider.