Ver Fonte

@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 há 1 ano atrás
pai
commit
683af37d57

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