From 892692f3b873f1c62ccd9cdd62356485355bfabb Mon Sep 17 00:00:00 2001 From: Knacky Date: Wed, 27 May 2026 20:19:16 +0200 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20post-design-review=20=E2=80=94?= =?UTF-8?q?=20slab=20token=20split=20+=20badge=20contrast=20+=20modal=20ba?= =?UTF-8?q?ckdrop=20+=20dark=20shadows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add fixed slab/slab-text/slab-muted tokens so utility strip and footer never invert to near-white in dark mode (root token split: ink is themed text, slab is fixed dark surface) - btn-ink uses fixed #111827 so confirm dialogs stay dark-on-dark readable - Toast error surface switched to slab; success uses text-white (not text-ink-on) - StatusBadge active and SimulationStatusBadge review_required/done use text-white instead of text-canvas/text-ink-on (prevents near-black text on colored pill in dark mode) - Modal backdrops (MitreMatrixModal, ConfirmDialog) switched to .modal-backdrop class (fixed rgba(0,0,0,0.6)) instead of bg-ink/60 which turned near-white - Card shadow lifted in dark mode via .dark .card-product override - MitreMatrixModal panel uses shadow-floating-dark in dark mode - UsersAdminPage form: items-start + explicit label-height spacer on button column for pixel-perfect baseline alignment (AC-17.3 structural fix) 92/92 tests passing, typecheck and lint clean. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/components/ConfirmDialog.tsx | 2 +- frontend/src/components/Layout.tsx | 14 +++++++------- frontend/src/components/MitreMatrixModal.tsx | 4 ++-- frontend/src/components/SimulationStatusBadge.tsx | 7 ++++--- frontend/src/components/StatusBadge.tsx | 2 +- frontend/src/components/Toast.tsx | 5 +++-- frontend/src/pages/UsersAdminPage.tsx | 10 ++++++++-- frontend/src/styles/index.css | 15 +++++++++++++-- frontend/tailwind.config.ts | 6 ++++++ frontend/tests/MitreMatrixModal.test.tsx | 2 +- 10 files changed, 46 insertions(+), 21 deletions(-) diff --git a/frontend/src/components/ConfirmDialog.tsx b/frontend/src/components/ConfirmDialog.tsx index 66af72b..da36019 100644 --- a/frontend/src/components/ConfirmDialog.tsx +++ b/frontend/src/components/ConfirmDialog.tsx @@ -24,7 +24,7 @@ export function ConfirmDialog({ aria-labelledby="confirm-dialog-title" className="fixed inset-0 z-50 flex items-center justify-center" > -