Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

feat: accessible video-placeholder, hit enter to watch video

Christian Fei5161a41c8989
diff --git a/client/components/video-element.js b/client/components/video-element.js
index 084dfc9..f346e98 100644
--- a/client/components/video-element.js
+++ b/client/components/video-element.js
@@ -52,7 +52,7 @@ class VideoElement extends HTMLElement {
${this.video.downloaded
? /* html */`
<div class="video-wrapper">
- <div class="play video-placeholder" style="background-image: url(${this.video.thumbnail})">
+ <div tabindex="0" class="play video-placeholder" style="background-image: url(${this.video.thumbnail})">
<div class="play-icon"></div>
<span class="info-duration">${this.video.duration || 'N/A'}</span>
</div>