add tabindex

pull/2575/head
Mikael Finstad 9 months ago
parent 251106a292
commit 251106edbd
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -163,7 +163,7 @@ function FileNameTemplateEditor(opts: {
<motion.div animate={{ marginBottom: needToShow ? '1.5em' : '.3em' }}>
{generated != null && (
<div style={{ marginBottom: '.3em' }}>
<HighlightedText role="button" onClick={onShowClick} style={{ wordBreak: 'break-word', cursor: needToShow ? undefined : 'pointer' }}>
<HighlightedText role="button" onClick={onShowClick} tabIndex={0} style={{ wordBreak: 'break-word', cursor: needToShow ? undefined : 'pointer' }}>
{generated.originalFileNames != null && formatCurrentSegFileOrFirst(generated.fileNames)}
<span style={generated.originalFileNames != null ? { textDecoration: 'line-through', marginLeft: '.3em', color: dangerColor } : undefined}>{formatCurrentSegFileOrFirst(generated.originalFileNames ?? generated.fileNames)}</span>
{!needToShow && <FaEdit style={{ fontSize: '.9em', marginLeft: '.4em', verticalAlign: 'middle' }} />}

Loading…
Cancel
Save