File tree Expand file tree Collapse file tree
apps/fumadocs/src/app/(home) Expand file tree Collapse file tree Original file line number Diff line number Diff 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" } } >
You can’t perform that action at this time.
0 commit comments