Skip to content

The open-source app everyone uses to manage agents at work

refactor(a11y): add scope=col to the agent costs table headers (#1789)

Evyatar Bluzer19be4cf9278b
diff --git a/ui/src/pages/AgentDetail.tsx b/ui/src/pages/AgentDetail.tsx
index 4e21a7d280..b76eb60975 100644
--- a/ui/src/pages/AgentDetail.tsx
+++ b/ui/src/pages/AgentDetail.tsx
@@ -1743,11 +1743,11 @@ function CostsSection({
<table className="w-full text-xs">
<thead>
<tr className="border-b border-border bg-accent/20">
- <th className="text-left px-3 py-2 font-medium text-muted-foreground">Date</th>
- <th className="text-left px-3 py-2 font-medium text-muted-foreground">Run</th>
- <th className="text-right px-3 py-2 font-medium text-muted-foreground">Input</th>
- <th className="text-right px-3 py-2 font-medium text-muted-foreground">Output</th>
- <th className="text-right px-3 py-2 font-medium text-muted-foreground">Cost</th>
+ <th scope="col" className="text-left px-3 py-2 font-medium text-muted-foreground">Date</th>
+ <th scope="col" className="text-left px-3 py-2 font-medium text-muted-foreground">Run</th>
+ <th scope="col" className="text-right px-3 py-2 font-medium text-muted-foreground">Input</th>
+ <th scope="col" className="text-right px-3 py-2 font-medium text-muted-foreground">Output</th>
+ <th scope="col" className="text-right px-3 py-2 font-medium text-muted-foreground">Cost</th>
</tr>
</thead>
<tbody>