From 9cfc3fb5acb57bf7ba300630dd7ae1843fd780f4 Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Sun, 29 Mar 2020 23:45:07 +0300 Subject: [PATCH] spread tabIndex in MetaPreview removed --- src/common/MetaPreview/MetaPreview.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/MetaPreview/MetaPreview.js b/src/common/MetaPreview/MetaPreview.js index 48bccea7c..7c36b05e2 100644 --- a/src/common/MetaPreview/MetaPreview.js +++ b/src/common/MetaPreview/MetaPreview.js @@ -162,8 +162,8 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele className={styles['action-button']} icon={inLibrary ? 'ic_removelib' : 'ic_addlib'} label={inLibrary ? 'Remove from Library' : 'Add to library'} + tabIndex={compact ? -1 : 0} onClick={toggleInLibrary} - {...(compact ? { tabIndex: -1 } : null)} /> : null @@ -174,8 +174,8 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele className={styles['action-button']} icon={'ic_movies'} label={'Trailer'} + tabIndex={compact ? -1 : 0} href={`#/player?stream=${JSON.stringify(trailer)}`} - {...(compact ? { tabIndex: -1 } : null)} /> : null @@ -187,8 +187,8 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele className={styles['action-button']} icon={'ic_share'} label={'Share'} + tabIndex={compact ? -1 : 0} onClick={openShareModal} - {...(compact ? { tabIndex: -1 } : null)} /> { shareModalOpen ?