Browse Source

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

When showAddFilesPanel  is true, aria-hidden should be the opposite
Artur Paikin 1 year ago
parent
commit
683af37d57
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/@uppy/dashboard/src/components/AddFilesPanel.jsx

+ 1 - 1
packages/@uppy/dashboard/src/components/AddFilesPanel.jsx

@@ -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">