mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 22:34:01 -05:00
Fixed FileUpload and tests
ref ENG-1809 - Changing the z-index of the overlay ensure the button can be hovered with the cursor as expected which was broken by https://github.com/TryGhost/Ghost/pull/21687 - need to ensure that this doesn't undo the initial "fix" which affects windows users
This commit is contained in:
parent
b8963c9db6
commit
205e155f05
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ const FileUpload: React.FC<FileUploadProps> = ({id, onUpload, children, style, u
|
|||
|
||||
return (
|
||||
<label className={clsx('relative', className)} htmlFor={id} style={style} onDragEnter={handleDragging} onDragLeave={handleStopDragging} onDragOver={handleDragging} onDrop={handleDrop} {...props}>
|
||||
<div className={clsx({'absolute inset-1 rounded': true, 'border-2 border-dashed border-grey-400/25': isDragging}, isDragging && [dragIndicatorClassName])} />
|
||||
<div className={clsx({'absolute inset-1 rounded -z-50': true, 'border-2 border-dashed border-grey-400/25': isDragging}, isDragging && [dragIndicatorClassName])} />
|
||||
<input key={fileKey} ref={inputRef || null} id={id} type="file" hidden onChange={handleFileChange} />
|
||||
{(typeof children === 'string') ?
|
||||
<div className={!unstyled ? `inline-flex h-[34px] cursor-pointer items-center justify-center rounded px-4 text-sm font-semibold hover:bg-grey-100 dark:text-white dark:hover:bg-grey-900` : ''}>
|
||||
|
|
Loading…
Reference in a new issue