Skip to content

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

fix(a11y): add aria-pressed to date preset and day-of-week toggle buttons (#1913)

Evyatar Bluzerbe8ae528c491
diff --git a/ui/src/components/ScheduleEditor.tsx b/ui/src/components/ScheduleEditor.tsx
index 2d991d5bf6..12331ae458 100644
--- a/ui/src/components/ScheduleEditor.tsx
+++ b/ui/src/components/ScheduleEditor.tsx
@@ -368,6 +368,7 @@ export function ScheduleEditor({
variant={dayOfWeek === d.value ? "default" : "outline"}
size="sm"
className="h-7 px-2 text-xs"
+ aria-pressed={dayOfWeek === d.value}
onClick={() => {
setDayOfWeek(d.value);
emitChange(preset, hour, minute, d.value, dayOfMonth, customCron);
diff --git a/ui/src/pages/Costs.tsx b/ui/src/pages/Costs.tsx
index 5d3a81e825..c78f8f54a6 100644
--- a/ui/src/pages/Costs.tsx
+++ b/ui/src/pages/Costs.tsx
@@ -554,6 +554,7 @@ export function Costs() {
variant={preset === key ? "secondary" : "ghost"}
size="sm"
onClick={() => setPreset(key)}
+ aria-pressed={preset === key}
>
{PRESET_LABELS[key]}
</Button>