Skip to content

Commit 49792cd

Browse files
Merge pull request #63 from MrDemonWolf/claude/a11y-fixes
fix(a11y): make the comparison table keyboard-scrollable
2 parents 57e6d97 + d9004e8 commit 49792cd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

apps/fumadocs/src/app/(home)/page.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,15 @@ export default function HomePage() {
413413
title={<>Why self-host Dirework?</>}
414414
sub="Hosted task widgets are convenient until they're not. Dirework trades a one-time setup for full ownership — on Cloudflare's free plan."
415415
/>
416+
{/* tabIndex makes this horizontally-scrolling region reachable by
417+
keyboard. Without it the focus-visible styling below can never
418+
trigger, and a keyboard-only user has no way to scroll the table
419+
(WCAG 2.1.1). Newer browsers auto-focus scrollable containers, but
420+
the explicit value makes it deterministic across versions. */}
416421
<section
417422
className="mt-12 overflow-x-auto focus-visible:outline-2 focus-visible:outline-[var(--brand-500)]"
423+
// biome-ignore lint/a11y/noNoninteractiveTabindex: a scrollable region must be focusable, or keyboard users cannot scroll it.
424+
tabIndex={0}
418425
aria-label="Feature comparison table (scrolls horizontally)"
419426
>
420427
<div className="dw-card panel min-w-[600px]" style={{ padding: "1.5rem 2rem" }}>

0 commit comments

Comments
 (0)