From 43d139234eebd7a8ba09fe1985088c9e5ffe76ed 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 +- App/tests/unit/cancel-po-controls.test.tsx | 45 ++++++++++++++++++++++ 3 files changed, 51 insertions(+), 6 deletions(-) create mode 100644 App/tests/unit/cancel-po-controls.test.tsx 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