Introduce focus traps for ModalHost, add button role to DropZone

This commit is contained in:
Scott Nonnenberg 2021-10-04 10:14:00 -07:00 committed by GitHub
parent adaeb81c32
commit 48229332ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 371 additions and 294 deletions

View file

@ -47,7 +47,10 @@ export const DropZone: React.ComponentType<Props> = props => {
}, [isDragActive, onDragActive]);
return (
<div {...getRootProps({ className: getClassName(props, isDragActive) })}>
<div
{...getRootProps({ className: getClassName(props, isDragActive) })}
role="button"
>
<input {...getInputProps()} />
<svg viewBox="0 0 36 36" width="36px" height="36px">
<path d="M32 17.25H18.75V4h-1.5v13.25H4v1.5h13.25V32h1.5V18.75H32v-1.5z" />