Accessibility improvements for files changed view #168976
Replies: 4 comments
-
|
Using semantic HTML elements like: for inserted text
would allow: Screen readers to announce changes as “inserted” or “deleted” Sighted users to benefit from underlines and strikethroughs, improving clarity Better compliance with WCAG 1.4.1 – Use of Color, which requires that color not be the only means of conveying information Practical Impact |
Beta Was this translation helpful? Give feedback.
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
I highly second this improvement. I think that GitHub does a pretty good job already regarding accessibility, but using simple semantic HTML elements is the lowest hanging fruit imaginable. Honestly, I'm a bit shocked that |
Beta Was this translation helpful? Give feedback.
-
|
Hi @ReginaReusser - thanks so much for sharing your product feedback! To help us figure out which version of the PR view you’re using, could you share a few screenshots of the issue? We’re trying to confirm whether you’re using the old or new PR experience. Do you see a “Try the new experience” option on your page? Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
General
GitHub Feature Area
Pull Requests
Body
Hello
In the “Files changed” view, additions and deletions are currently only visually marked by color (green/red) and a plus/minus sign.
For screen reader and Braille display users, it would be much more accessible if these changes were also semantically marked up, for example using the "ins"-element for insertions and the "del" element for deleted text.
I have tested and
locally and confirmed that sccreen readers announce “inserted” or “deleted” text, giving clear, non-visual context.Visually, browsers display inserted text underlined and deleted text with a strikethrough, so sighted users benefit as well without relying solely on color.
This semantic markup would improve accessibility for users who cannot perceive colors and would support compliance with WCAG 1.4.1 (Use of Color).
Thank you for considering this improvement.
Beta Was this translation helpful? Give feedback.
All reactions