Skip to content

Commit 496e6b4

Browse files
improve: enhance contributors loading state accessibility
1 parent 6ede310 commit 496e6b4

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

app/contributors/loading.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
export default function Loading() {
22
return (
3-
<div className="flex min-h-screen items-center justify-center bg-white text-black dark:bg-black dark:text-white transition-colors">
4-
<div className="flex flex-col items-center gap-4">
3+
<div className="flex min-h-screen items-center justify-center bg-white text-black transition-colors dark:bg-black dark:text-white">
4+
<div className="flex flex-col items-center gap-4" role="status" aria-live="polite">
55
<div className="h-14 w-14 animate-spin rounded-full border-4 border-cyan-400 border-t-transparent" />
6-
<p className="text-zinc-500 dark:text-zinc-400">Loading contributors...</p>{' '}
6+
7+
<p className="text-zinc-500 dark:text-zinc-400">Loading contributors...</p>
8+
9+
<p className="text-sm text-zinc-400 dark:text-zinc-500">
10+
Fetching contributor data from GitHub
11+
</p>
12+
13+
<span className="sr-only">Loading contributors</span>
714
</div>
815
</div>
916
);

0 commit comments

Comments
 (0)