Skip to content

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

refactor(a11y): add ARIA progressbar attributes to BudgetPolicyCard (#1805)

Evyatar Bluzer1791979512d8
diff --git a/ui/src/components/BudgetPolicyCard.tsx b/ui/src/components/BudgetPolicyCard.tsx
index d392ff0c0e..2b0624ac19 100644
--- a/ui/src/components/BudgetPolicyCard.tsx
+++ b/ui/src/components/BudgetPolicyCard.tsx
@@ -101,6 +101,11 @@ export function BudgetPolicyCard({
</div>
<div className={cn("h-2 overflow-hidden rounded-full", isPlain ? "bg-border/70" : "bg-muted/70")}>
<div
+ role="progressbar"
+ aria-valuenow={Math.round(progress)}
+ aria-valuemin={0}
+ aria-valuemax={100}
+ aria-label={`Budget utilization: ${Math.round(progress)}% used`}
className={cn(
"h-full rounded-full transition-(--tp-width-background-color) duration-200",
summary.status === "hard_stop"