Skip to content

Commit

Permalink
nav progress accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsam committed Mar 25, 2024
1 parent a588b56 commit 50dd426
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/components/nav-progress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ function NavProgress() {
return (
<div
role="progressbar"
aria-label="Page Navigation Progress"
aria-hidden={busy ? undefined : true}
aria-valuetext={busy ? "Loading" : "Idle"}
aria-valuenow={progressRate}
aria-valuemax={100}
aria-valuemin={0}
className={cn(
"pointer-events-none fixed inset-x-0 top-0 z-[60] flex flex-col items-end transition-all duration-500",
!busy && "opacity-0",
Expand Down

0 comments on commit 50dd426

Please sign in to comment.