Skip to content

Commit 5a675ce

Browse files
Ajit Pratap Singhclaude
authored andcommitted
fix(website): WCAG AA color contrast — nav links, footer, sidebar (issue #399)
- Navbar: text-zinc-400 → text-zinc-300 for all nav links and GitHub icon (desktop + mobile), ~8.7:1 contrast - Footer: text-zinc-500 → text-zinc-400 for description and links; text-zinc-600 → text-zinc-400 for copyright - Sidebar: text-zinc-500 → text-zinc-400 for category heading buttons Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f783250 commit 5a675ce

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

website/src/components/docs/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function Sidebar() {
2222
<div key={group.category}>
2323
<button
2424
onClick={() => toggleCategory(group.category)}
25-
className="flex w-full items-center justify-between px-3 text-xs font-semibold uppercase tracking-wider text-zinc-500 hover:text-zinc-300 transition-colors"
25+
className="flex w-full items-center justify-between px-3 text-xs font-semibold uppercase tracking-wider text-zinc-400 hover:text-zinc-200 transition-colors"
2626
>
2727
{group.category}
2828
<svg

website/src/components/layout/Footer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function Footer() {
4141
<Image src="/images/logo.webp" alt="GoSQLX" width={28} height={28} />
4242
<span className="text-lg font-semibold text-white">GoSQLX</span>
4343
</Link>
44-
<p className="mt-3 text-sm text-zinc-500 max-w-xs">
44+
<p className="mt-3 text-sm text-zinc-400 max-w-xs">
4545
Production-ready SQL parsing SDK for Go. Zero-copy, thread-safe, multi-dialect.
4646
</p>
4747
</div>
@@ -58,14 +58,14 @@ export function Footer() {
5858
href={link.href}
5959
target="_blank"
6060
rel="noopener noreferrer"
61-
className="text-sm text-zinc-500 hover:text-zinc-300 transition-colors duration-200"
61+
className="text-sm text-zinc-400 hover:text-zinc-100 transition-colors duration-200"
6262
>
6363
{link.label}
6464
</a>
6565
) : (
6666
<Link
6767
href={link.href}
68-
className="text-sm text-zinc-500 hover:text-zinc-300 transition-colors duration-200"
68+
className="text-sm text-zinc-400 hover:text-zinc-100 transition-colors duration-200"
6969
>
7070
{link.label}
7171
</Link>
@@ -78,7 +78,7 @@ export function Footer() {
7878
</div>
7979

8080
<div className="mt-12 pt-8 border-t border-white/[0.06] text-center">
81-
<p className="text-sm text-zinc-600">
81+
<p className="text-sm text-zinc-400">
8282
Built with love by the GoSQLX community &middot; &copy; {new Date().getFullYear()} GoSQLX
8383
</p>
8484
</div>

website/src/components/layout/Navbar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function Navbar() {
7070
<Link
7171
key={link.href}
7272
href={link.href}
73-
className="px-3 py-2 text-sm text-zinc-400 hover:text-white transition-colors duration-200 rounded-lg hover:bg-white/[0.04]"
73+
className="px-3 py-2 text-sm text-zinc-300 hover:text-white transition-colors duration-200 rounded-lg hover:bg-white/[0.04]"
7474
>
7575
{link.label}
7676
</Link>
@@ -83,7 +83,7 @@ export function Navbar() {
8383
href="https://github.com/ajitpratap0/GoSQLX"
8484
target="_blank"
8585
rel="noopener noreferrer"
86-
className="text-zinc-400 hover:text-white transition-colors duration-200 p-2 rounded-lg hover:bg-white/[0.04]"
86+
className="text-zinc-300 hover:text-white transition-colors duration-200 p-2 rounded-lg hover:bg-white/[0.04]"
8787
aria-label="GitHub"
8888
>
8989
<GitHubIcon className="w-5 h-5" />
@@ -120,7 +120,7 @@ export function Navbar() {
120120
key={link.href}
121121
href={link.href}
122122
onClick={() => setMobileOpen(false)}
123-
className="block px-3 py-2.5 text-sm text-zinc-400 hover:text-white hover:bg-white/[0.04] rounded-lg transition-colors"
123+
className="block px-3 py-2.5 text-sm text-zinc-300 hover:text-white hover:bg-white/[0.04] rounded-lg transition-colors"
124124
>
125125
{link.label}
126126
</Link>
@@ -130,7 +130,7 @@ export function Navbar() {
130130
href="https://github.com/ajitpratap0/GoSQLX"
131131
target="_blank"
132132
rel="noopener noreferrer"
133-
className="text-zinc-400 hover:text-white transition-colors p-2"
133+
className="text-zinc-300 hover:text-white transition-colors p-2"
134134
aria-label="GitHub"
135135
>
136136
<GitHubIcon className="w-5 h-5" />

0 commit comments

Comments
 (0)