Skip to content

Commit

Permalink
@uppy/status-bar: fix aria-hidden warning (#5663)
Browse files Browse the repository at this point in the history
  • Loading branch information
Murderlon authored Feb 25, 2025
1 parent ead58be commit 9930132
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/@uppy/status-bar/src/StatusBarUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,12 @@ export default function StatusBarUI<M extends Meta, B extends Body>({
const isHidden =
thereIsNothingInside || (uploadState === STATE_COMPLETE && hideAfterFinish)

if (isHidden) {
return null
}

return (
<div className={statusBarClassNames} aria-hidden={isHidden}>
<div className={statusBarClassNames}>
<div
className={progressClassNames}
style={{ width: `${width}%` }}
Expand Down

0 comments on commit 9930132

Please sign in to comment.