a11y(frontend): focus rings, ARIA labels, skip-link across ui components

This commit is contained in:
Tyler
2026-06-20 16:51:36 -06:00
parent b980e77cf2
commit b37fb5a26c
8 changed files with 113 additions and 10 deletions
+3 -2
View File
@@ -45,7 +45,7 @@ const TableRow = React.forwardRef<
<tr
ref={ref}
className={cn(
"border-b border-border/40 transition-colors hover:bg-muted/30 data-[state=selected]:bg-muted",
"border-b border-border/40 transition-colors hover:bg-muted/30 focus-within:bg-muted/30 data-[state=selected]:bg-muted",
className
)}
{...props}
@@ -56,9 +56,10 @@ TableRow.displayName = "TableRow";
const TableHead = React.forwardRef<
HTMLTableCellElement,
React.ThHTMLAttributes<HTMLTableCellElement>
>(({ className, ...props }, ref) => (
>(({ className, scope = "col", ...props }, ref) => (
<th
ref={ref}
scope={scope}
className={cn(
"h-10 px-4 text-left align-middle text-[11px] font-medium uppercase tracking-wider text-muted-foreground [&:has([role=checkbox])]:pr-0",
className