From 78478c4e17ad038ab10a34580869a41d842f3e6c Mon Sep 17 00:00:00 2001
From: Hardik
Date: Sun, 21 Jun 2026 12:37:25 +0530
Subject: [PATCH] fix(po): make cancel buttons red & visible (use defined
danger tokens)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The theme only defines danger / danger-50 / danger-100 / danger-700, so
bg-danger-600 / danger-500 / danger-200 generated no CSS — the modal confirm
button was white-on-nothing (invisible) and the header button wasn't red.
- Header "Cancel PO" button → solid red (bg-danger text-white hover:bg-danger-700)
- Modal "Cancel this PO" confirm button → bg-danger (now visible)
- Inputs/asterisk/banner border → defined danger tokens
Co-Authored-By: Claude Opus 4.8
---
App/components/po/cancel-po-controls.tsx | 10 +++++-----
App/components/po/po-detail.tsx | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/App/components/po/cancel-po-controls.tsx b/App/components/po/cancel-po-controls.tsx
index 26b71be..8245e73 100644
--- a/App/components/po/cancel-po-controls.tsx
+++ b/App/components/po/cancel-po-controls.tsx
@@ -47,7 +47,7 @@ export function CancelPoButton({ poId, poNumber }: { poId: string; poNumber: str
@@ -65,7 +65,7 @@ export function CancelPoButton({ poId, poNumber }: { poId: string; poNumber: str