Skip to content

A platform for community discussion. Free, open, simple.

A11Y: remove redundant alt text from github oneboxes (#30083)

Kris60826162b5c5
diff --git a/lib/onebox/templates/githubcommit.mustache b/lib/onebox/templates/githubcommit.mustache
index bf563f772b9..5bac6c27123 100644
--- a/lib/onebox/templates/githubcommit.mustache
+++ b/lib/onebox/templates/githubcommit.mustache
@@ -15,7 +15,7 @@
<div class="user">
<a href="{{author.html_url}}" target="_blank" rel="noopener">
- <img alt="{{author.login}}" src="{{author.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
+ <img alt="" src="{{author.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
{{author.login}}
</a>
</div>
diff --git a/lib/onebox/templates/githubissue.mustache b/lib/onebox/templates/githubissue.mustache
index 05d542b2137..8f10f8b4cc0 100644
--- a/lib/onebox/templates/githubissue.mustache
+++ b/lib/onebox/templates/githubissue.mustache
@@ -21,7 +21,7 @@
<div class="user">
<a href="{{user.html_url}}" target="_blank" rel="noopener">
- <img alt="{{user.login}}" src="{{user.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
+ <img alt="" src="{{user.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
{{user.login}}
</a>
</div>
diff --git a/lib/onebox/templates/githubpullrequest.mustache b/lib/onebox/templates/githubpullrequest.mustache
index a87a90c5ec8..9bb3299bbcb 100644
--- a/lib/onebox/templates/githubpullrequest.mustache
+++ b/lib/onebox/templates/githubpullrequest.mustache
@@ -33,7 +33,7 @@
<span>
{{i18n.commit_by}}
<a href="{{author.html_url}}" target="_blank" rel="noopener">
- <img alt="{{author.login}}" src="{{author.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
+ <img alt="" src="{{author.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
{{author.login}}
</a> - <a href="{{link}}" target="_blank" rel="noopener">{{title}}</a>
</span>
@@ -44,7 +44,7 @@
<h4>
{{i18n.comment_by}}
<a href="{{user.html_url}}" target="_blank" rel="noopener">
- <img alt="{{user.login}}" src="{{user.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
+ <img alt="" src="{{user.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
{{user.login}}
</a> - <a href="{{link}}" target="_blank" rel="noopener">{{title}}</a>
</h4>
@@ -54,7 +54,7 @@
<h4>
{{i18n.review_by}}
<a href="{{user.html_url}}" target="_blank" rel="noopener">
- <img alt="{{user.login}}" src="{{user.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
+ <img alt="" src="{{user.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
{{user.login}}
</a> - <a href="{{link}}" target="_blank" rel="noopener">{{title}}</a>
</h4>
@@ -78,7 +78,7 @@
<div class="user">
<a href="{{user.html_url}}" target="_blank" rel="noopener">
- <img alt="{{user.login}}" src="{{user.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
+ <img alt="" src="{{user.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
{{user.login}}
</a>
</div>