From: Chocobozzz <me@florianbigard.com>
Date: Tue, 31 Jul 2018 12:25:02 +0000 (+0200)
Subject: Add aria-labelledby to video thumbnails
X-Git-Tag: delete~82
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c487d3033cad9c5e0f85ae49ed3d2a7b6c2711d8;p=oweals%2Fpeertube.git

Add aria-labelledby to video thumbnails
---

diff --git a/client/src/app/shared/video/video-thumbnail.component.html b/client/src/app/shared/video/video-thumbnail.component.html
index 4909cf3f1..c1d45ea18 100644
--- a/client/src/app/shared/video/video-thumbnail.component.html
+++ b/client/src/app/shared/video/video-thumbnail.component.html
@@ -2,7 +2,7 @@
   [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name"
   class="video-thumbnail"
 >
-<img alt="" [attr.src]="getImageUrl()" [ngClass]="{ 'blur-filter': nsfw }" />
+<img alt="" [attr.aria-labelledby]="video.name" [attr.src]="getImageUrl()" [ngClass]="{ 'blur-filter': nsfw }" />
 
 <div class="video-thumbnail-overlay">
   {{ video.durationLabel }}