Skip to content

[Bug]: Screen readers announce issue and PR rows in thread details as raw URLs #38156

Closed

Description

@nibarAhmed

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Open a thread that has a linked issue and a linked pull request.
  2. Open the thread details panel.
  3. 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:

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. "#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 to ThreadDetailsPrRow.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 @ 81049d2

Environment

Any web or desktop client with a screen reader. Not tied to a provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions