Skip to content

Commit 30ec674

Browse files
authored
small a11y Improvements for aria-labels, opacity, and color contrast (#441)
1 parent 0cf0489 commit 30ec674

File tree

5 files changed

+21
-13
lines changed

5 files changed

+21
-13
lines changed

src/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function Footer() {
4646
</div>
4747
))}
4848
</div>
49-
<div className={`text-center opacity-20`}>
49+
<div className={`text-center opacity-60`}>
5050
&copy; {new Date().getFullYear()} TanStack LLC
5151
</div>
5252
</div>

src/components/LandingPageGad.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function LandingPageGad() {
99
<GamFooter />
1010
</div>
1111
<div
12-
className="text-xs bg-gray-500 bg-opacity-10 py-2 px-4 rounded text-gray-500
12+
className="text-xs bg-gray-500 bg-opacity-10 py-2 px-4 rounded text-gray-600 dark:text-gray-300
1313
dark:bg-opacity-20 self-center text-center w-[500px] max-w-full space-y-2"
1414
>
1515
<div>
@@ -25,7 +25,10 @@ export default function LandingPageGad() {
2525
used by millions daily. What did you expect?
2626
</div>
2727
<div>
28-
<Link to="/ethos" className="text-gray-500 font-bold underline">
28+
<Link
29+
to="/ethos"
30+
className="text-gray-600 dark:text-gray-200 font-bold underline"
31+
>
2932
Check out our ethos
3033
</Link>{' '}
3134
to learn more about how we plan on sticking around (and staying

src/components/OpenSourceStats.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default function OssStats() {
8484
<div className="text-2xl font-bold opacity-80 relative group-hover:text-emerald-500 transition-colors duration-200">
8585
<NpmDownloadCounter npmData={npm} />
8686
</div>
87-
<div className="text-sm opacity-50 font-medium italic group-hover:text-emerald-500 transition-colors duration-200">
87+
<div className="text-sm opacity-60 font-medium italic group-hover:text-emerald-500 transition-colors duration-200">
8888
NPM Downloads
8989
</div>
9090
</div>
@@ -100,7 +100,7 @@ export default function OssStats() {
100100
<div className="text-2xl font-bold opacity-80 leading-none group-hover:text-yellow-500 transition-colors duration-200">
101101
<NumberFlow value={github?.starCount} />
102102
</div>
103-
<div className="text-sm opacity-50 font-medium italic -mt-1 group-hover:text-yellow-500 transition-colors duration-200">
103+
<div className="text-sm opacity-60 font-medium italic -mt-1 group-hover:text-yellow-500 transition-colors duration-200">
104104
Stars on Github
105105
</div>
106106
</div>
@@ -111,7 +111,7 @@ export default function OssStats() {
111111
<div className="text-2xl font-bold opacity-80">
112112
<NumberFlow value={github?.contributorCount} />
113113
</div>
114-
<div className="text-sm opacity-50 font-medium italic -mt-1">
114+
<div className="text-sm opacity-60 font-medium italic -mt-1">
115115
Contributors on GitHub
116116
</div>
117117
</div>
@@ -122,7 +122,7 @@ export default function OssStats() {
122122
<div className="text-2xl font-bold opacity-80 relative">
123123
<NumberFlow value={github?.dependentCount} />
124124
</div>
125-
<div className="text-sm opacity-50 font-medium italic -mt-1">
125+
<div className="text-sm opacity-60 font-medium italic -mt-1">
126126
Dependents on GitHub
127127
</div>
128128
</div>
@@ -135,7 +135,7 @@ export default function OssStats() {
135135
>
136136
<div className="h-2 w-2 animate-pulse rounded-full bg-green-500"></div>
137137
<div className="flex items-center gap-1">
138-
<span className="text-[.75rem] opacity-30 relative -top-px">
138+
<span className="text-[.75rem] opacity-60 relative -top-px">
139139
Powered by
140140
</span>
141141
<img

src/routes/_libraries/index.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function Index() {
196196
}}
197197
>
198198
<span className="bg-current rounded-lg leading-none flex items-center">
199-
<span className="font-black text-white dark:text-black text-xs leading-none p-1.5 px-2 uppercase">
199+
<span className="text-white dark:text-black text-xs leading-none p-1.5 px-2 uppercase">
200200
TanStack
201201
</span>
202202
</span>
@@ -330,12 +330,12 @@ function Index() {
330330
className={`col-span-2
331331
md:col-span-5`}
332332
>
333-
<div className={`text-2xl font-bold text-green-500`}>
333+
<div className={`text-2xl font-bold text-green-600`}>
334334
{course.name}
335335
</div>
336336
<div className={`text-sm mt-2`}>{course.description}</div>
337337
<div
338-
className={`inline-block mt-4 px-4 py-2 bg-green-500 text-white rounded shadow uppercase font-black text-sm`}
338+
className={`inline-block mt-4 px-4 py-2 bg-green-700 text-white rounded shadow uppercase font-black text-sm`}
339339
>
340340
Check it out →
341341
</div>
@@ -367,13 +367,15 @@ function Index() {
367367
<div>
368368
<a
369369
href="https://github.com/sponsors/tannerlinsley"
370-
className={`inline-block p-4 bg-green-500 rounded text-white uppercase font-black`}
370+
className={`inline-block p-4 bg-green-700 rounded text-white uppercase font-black`}
371371
>
372372
Become a Sponsor!
373373
</a>
374374
</div>
375375
<div className={`h-4`} />
376-
<p className={`italic mx-auto max-w-screen-sm text-gray-500`}>
376+
<p
377+
className={`italic mx-auto max-w-screen-sm text-gray-500 dark:text-gray-300`}
378+
>
377379
Sponsors get special perks like{' '}
378380
<strong>
379381
private discord channels, priority issue requests, direct

src/routes/_libraries/route.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,18 +252,21 @@ function LibrariesLayout() {
252252
<a
253253
href="https://x.com/tan_stack"
254254
className="opacity-70 hover:opacity-100"
255+
aria-label="Follow TanStack on X (Twitter)"
255256
>
256257
<TbBrandTwitter className="text-xl" />
257258
</a>
258259
<a
259260
href="https://bsky.app/profile/tanstack.com"
260261
className="opacity-70 hover:opacity-100"
262+
aria-label="Follow TanStack on Bluesky"
261263
>
262264
<TbBrandBluesky className="text-xl" />
263265
</a>
264266
<a
265267
href="https://instagram.com/tan_stack"
266268
className="opacity-70 hover:opacity-100"
269+
aria-label="Follow TanStack on Instagram"
267270
>
268271
<FaInstagram className="text-xl" />
269272
</a>

0 commit comments

Comments
 (0)