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

This commit is contained in:
Kris 2024-12-03 20:25:03 -05:00 committed by GitHub
parent 545cafe657
commit 60826162b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>