[BUG] Add +/- to code diff (screen reader accessibility)

Resolved 💬 4 comments Opened May 2, 2025 by dennischenfeng Closed Jun 11, 2025

Environment

  • Platform (select one):
  • [X] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 0.2.99
  • Operating System: Windows 11, using WSL with Ubuntu 24.04.1 LTS
  • Terminal: "Terminal" app in Windows (windowsterminal.exe), using Ubuntu terminal

Bug Description

For screen reader users, there is no easy way to view added/removed lines in a diff, for for files edited by Claude Code.
My understanding is that the only indication of whether a line is added or removed is the color (green/red) but that formatting info is harder to access with screen reader.
The simplest fix I can think of is have a "+" or "-" next to the line depending on added/removed, just like in git diff.
Maybe this can be a toggle-able setting in Claude Code config too, if some users prefer without it.

Steps to Reproduce

  1. start Claude Code with claude in WSL Ubuntu terminal
  2. ask Claude to add a line and also remove another line in an example file.
  3. Claude Code then prompts you to review the diff, and visually there are green/red lines indicating add/removal. But there's no screen reader friendly text that indicates added/removed lines.

Expected Behavior

Expect there to be a way to indicate to screen reader users through text rather than font color, about whether line is added/removed in the diff.

Actual Behavior

Only color indication

Additional Context

None

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗