about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/video/index.jsx
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-04-04 10:33:44 -0400
committerClaire <claire.github-309c@sitedethib.com>2023-04-09 14:47:29 +0200
commitbfe46d08f97b4b19ab6f86c32be01cce945517d0 (patch)
treec050949655858191bf74eeca780df52171688392 /app/javascript/flavours/glitch/features/video/index.jsx
parent53cdcce3d141f7c6e7328041ef2bb5e298931de3 (diff)
[Glitch] Ensure tabIndex is number instead of string
Port ec0c104bf25f2689c31bb79f9f447be1a9b3da7f to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/video/index.jsx')
-rw-r--r--app/javascript/flavours/glitch/features/video/index.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/javascript/flavours/glitch/features/video/index.jsx b/app/javascript/flavours/glitch/features/video/index.jsx
index 80323770c..28a8bb1fd 100644
--- a/app/javascript/flavours/glitch/features/video/index.jsx
+++ b/app/javascript/flavours/glitch/features/video/index.jsx
@@ -600,7 +600,7 @@ class Video extends React.PureComponent {
           preload={preload}
           loop
           role='button'
-          tabIndex='0'
+          tabIndex={0}
           aria-label={alt}
           title={alt}
           lang={lang}
@@ -629,7 +629,7 @@ class Video extends React.PureComponent {
 
             <span
               className={classNames('video-player__seek__handle', { active: dragging })}
-              tabIndex='0'
+              tabIndex={0}
               style={{ left: `${progress}%` }}
               onKeyDown={this.handleVideoKeyDown}
             />
@@ -645,7 +645,7 @@ class Video extends React.PureComponent {
 
                 <span
                   className={classNames('video-player__volume__handle')}
-                  tabIndex='0'
+                  tabIndex={0}
                   style={{ left: `${volume * 100}%` }}
                 />
               </div>