Image alt text isn't included in pull request emails #201358
Unanswered
backwardok
asked this question in
Accessibility
Replies: 2 comments
|
💬 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. ⭐ |
0 replies
This comment was marked as low quality.
This comment was marked as low quality.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Pull Requests
Body
Issue
When an email goes out related to a pull request (PR), even if the images have alt text set, the email will include a link to the image with the label
<filename> (view on web)and not include the image alt text. This is true for both images that are included as part of the PR description and images that are included in comments on PRs. This means that anyone who's using a screen reader would need to go to the PR in order to hear the alt text.Example
I recently had a pull request where I included before and after screenshots in a table.
How it looks in the pull request on the web:

How it was coded in markdown:
How it looks in the email:

Possible solutions
When alt text is present, it's more accessible to include the alt text in the link text so it's clearer what the link goes to and also clarifies what the image is for anyone who can't see the image.
For example, the link text could be
Image: <alt> (view on web). For my example, that would look something likeImage: Fieldset highlighted from Chrome DevTools showing additional space below the last checkbox (view on web).All reactions