[BUG] Add +/- to code diff (screen reader accessibility)
Environment
- Platform (select one):
- [X] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other:
- 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
- start Claude Code with
claudein WSL Ubuntu terminal - ask Claude to add a line and also remove another line in an example file.
- 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
@ Screen reader users, are there any good workarounds for this for the time being? My current workaround is pretty terrible:
- git commit before using claude code
- use claude code to make one code change
- optional: sparsely view the lines of the diff. But without any indication of added/removed lines, it's a lot of me guessing what's added/removed. Mostly just a skim
- Blindly confirm that I want the code change
- use git diff myself to see the code change in fully accessible way, and git restore if I didn't like it
Fix incoming in tomorrow's release!
I didn't notice anything different while using the latest version. The changelog also doesn't make any mention of this being fixed?
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.