From 51ba02ceddcbbd2bc5ad3ad9513779a6788c4101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Thu, 30 Jul 2026 15:17:29 +0200 Subject: [PATCH] Differentiate portal callout colors and width MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When both banners stack they read as one band if they share gold. Use sky (info) for locale and amber (warning) for NDA, and keep content inside the same max-w-5xl column as TopBar. Signed-off-by: Émile Ré --- .../LocaleMismatchCallout.tsx | 112 +++++++++--------- .../LocaleMismatchCallout/variants.ts | 10 +- .../UnsignedNDACallout/UnsignedNDACallout.tsx | 74 ++++++------ .../components/UnsignedNDACallout/variants.ts | 10 +- 4 files changed, 109 insertions(+), 97 deletions(-) diff --git a/apps/compliance-portal/src/components/LocaleMismatchCallout/LocaleMismatchCallout.tsx b/apps/compliance-portal/src/components/LocaleMismatchCallout/LocaleMismatchCallout.tsx index da5789037..4b6b29861 100644 --- a/apps/compliance-portal/src/components/LocaleMismatchCallout/LocaleMismatchCallout.tsx +++ b/apps/compliance-portal/src/components/LocaleMismatchCallout/LocaleMismatchCallout.tsx @@ -109,61 +109,63 @@ export function LocaleMismatchCallout({ identityKey }: LocaleMismatchCalloutProp return ( ); diff --git a/apps/compliance-portal/src/components/LocaleMismatchCallout/variants.ts b/apps/compliance-portal/src/components/LocaleMismatchCallout/variants.ts index 21a4e92db..4c2c20a54 100644 --- a/apps/compliance-portal/src/components/LocaleMismatchCallout/variants.ts +++ b/apps/compliance-portal/src/components/LocaleMismatchCallout/variants.ts @@ -21,12 +21,16 @@ import { tv } from "tailwind-variants/lite"; // Full-bleed locale-mismatch banner under the TopBar: message row + actions, -// stacking on small screens. +// stacking on small screens. Sky (info) so it reads apart from the amber +// unsigned-NDA callout when both are visible. Content column matches TopBar / +// page layout (px-8 + centered max-w-5xl). export const localeMismatchCallout = tv({ slots: { - root: "flex w-full items-center gap-3 bg-gold-3 px-8 py-2.5 max-md:flex-col max-md:items-stretch max-md:gap-3 max-md:px-4 max-md:py-3", + root: "w-full bg-sky-3 px-8 py-2.5 max-md:px-4 max-md:py-3", + inner: + "mx-auto flex w-full max-w-5xl items-center gap-3 max-md:flex-col max-md:items-stretch max-md:gap-3", content: "flex min-w-0 flex-1 items-start gap-2", - icon: "mt-0.5 size-4 shrink-0 text-gold-11", + icon: "mt-0.5 size-4 shrink-0 text-sky-11", message: "min-w-0 flex-1", dismissMobile: "md:hidden", actions: "flex shrink-0 items-center gap-2 max-md:flex-col max-md:items-stretch", diff --git a/apps/compliance-portal/src/components/UnsignedNDACallout/UnsignedNDACallout.tsx b/apps/compliance-portal/src/components/UnsignedNDACallout/UnsignedNDACallout.tsx index 21a25f62f..6990a2f5c 100644 --- a/apps/compliance-portal/src/components/UnsignedNDACallout/UnsignedNDACallout.tsx +++ b/apps/compliance-portal/src/components/UnsignedNDACallout/UnsignedNDACallout.tsx @@ -66,42 +66,44 @@ export function UnsignedNDACallout({ compliancePortalKey }: UnsignedNDACalloutPr return ( ); diff --git a/apps/compliance-portal/src/components/UnsignedNDACallout/variants.ts b/apps/compliance-portal/src/components/UnsignedNDACallout/variants.ts index d51a0dfb6..28058f986 100644 --- a/apps/compliance-portal/src/components/UnsignedNDACallout/variants.ts +++ b/apps/compliance-portal/src/components/UnsignedNDACallout/variants.ts @@ -21,12 +21,16 @@ import { tv } from "tailwind-variants/lite"; // Full-bleed unsigned-NDA banner under the TopBar: message row + CTA/dismiss, -// stacking on small screens like the locale-mismatch callout. +// stacking on small screens. Amber (warning) so it reads apart from the sky +// locale-mismatch callout when both are visible. Content column matches TopBar / +// page layout (px-8 + centered max-w-5xl). export const unsignedNDACallout = tv({ slots: { - root: "flex w-full items-center gap-3 bg-gold-3 px-8 py-2.5 max-md:flex-col max-md:items-stretch max-md:gap-3 max-md:px-4 max-md:py-3", + root: "w-full bg-amber-3 px-8 py-2.5 max-md:px-4 max-md:py-3", + inner: + "mx-auto flex w-full max-w-5xl items-center gap-3 max-md:flex-col max-md:items-stretch max-md:gap-3", content: "flex min-w-0 flex-1 items-start gap-2", - icon: "mt-0.5 size-4 shrink-0 text-gold-11", + icon: "mt-0.5 size-4 shrink-0 text-amber-11", message: "min-w-0 flex-1", dismissMobile: "md:hidden", actions: "flex shrink-0 items-center gap-2 max-md:flex-col max-md:items-stretch",