Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix(automations): use the theme error color in the setup draft bar (#18463)

Engel Nyst1c75a05d587b
diff --git a/src/components/features/automations/setup/automation-setup-panel.tsx b/src/components/features/automations/setup/automation-setup-panel.tsx
index 7915f45dcb..f0df5ba40b 100644
--- a/src/components/features/automations/setup/automation-setup-panel.tsx
+++ b/src/components/features/automations/setup/automation-setup-panel.tsx
@@ -448,7 +448,7 @@ function DraftStatusBar({
const validityClassName = cn(
"max-w-full min-w-0 whitespace-normal rounded-full px-2.5 py-0.5 text-left text-xs leading-4",
validationMessage
- ? "w-fit bg-red-500/10 text-red-300"
+ ? "w-fit bg-red-500/10 text-feedback-error"
: "bg-[var(--oh-success)]/10 text-[var(--oh-success)]",
);
@@ -579,7 +579,7 @@ function DraftRunsPage({
key={message}
role="alert"
data-testid="automation-setup-draft-runs-error"
- className="rounded-xl border border-red-500/40 bg-red-500/10 px-4 py-3 text-sm text-red-300"
+ className="rounded-xl border border-red-500/40 bg-red-500/10 px-4 py-3 text-sm text-feedback-error"
>
{message}
</p>