]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add aria-labelledby to video thumbnails
authorChocobozzz <me@florianbigard.com>
Tue, 31 Jul 2018 12:25:02 +0000 (14:25 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 31 Jul 2018 12:25:02 +0000 (14:25 +0200)
client/src/app/shared/video/video-thumbnail.component.html

index 4909cf3f16499e7bbf12bdaafc2346ab258d9ec0..c1d45ea182b93c13ab72036e2581e7f6651321c3 100644 (file)
@@ -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 }}