@uppy/dashboard: when showAddFilesPanel is true, aria-hidden should be the opposite (#4643)

When showAddFilesPanel  is true, aria-hidden should be the opposite
This commit is contained in:
Artur Paikin 2023-08-24 11:51:36 +01:00 committed by GitHub
parent 7e4821885b
commit 683af37d57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ const AddFilesPanel = (props) => {
<div
className={classNames('uppy-Dashboard-AddFilesPanel', props.className)}
data-uppy-panelType="AddFiles"
aria-hidden={props.showAddFilesPanel}
aria-hidden={!props.showAddFilesPanel}
>
<div className="uppy-DashboardContent-bar">
<div className="uppy-DashboardContent-title" role="heading" aria-level="1">