From 199289b42bd162c997dc6b5aa76df0379baf3c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Tue, 21 Jul 2026 16:04:57 +0200 Subject: [PATCH] Polish the locale mismatch banner layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use a full-bleed bar with clearer actions and a stacked mobile layout so long language labels stay usable. Signed-off-by: Émile Ré --- .../src/components/LocaleMismatchCallout.tsx | 102 ++++++++++-------- 1 file changed, 59 insertions(+), 43 deletions(-) diff --git a/apps/compliance-portal/src/components/LocaleMismatchCallout.tsx b/apps/compliance-portal/src/components/LocaleMismatchCallout.tsx index 78979bede..b5957302b 100644 --- a/apps/compliance-portal/src/components/LocaleMismatchCallout.tsx +++ b/apps/compliance-portal/src/components/LocaleMismatchCallout.tsx @@ -20,8 +20,8 @@ import { GlobeIcon, XIcon } from "@phosphor-icons/react"; import { Button } from "@probo/ui/src/v2/Button/Button"; -import { Callout } from "@probo/ui/src/v2/Callout/Callout"; import { IconButton } from "@probo/ui/src/v2/IconButton/IconButton"; +import { Text } from "@probo/ui/src/v2/typography/Text"; import { useState } from "react"; import { useTranslation } from "react-i18next"; import { graphql, useFragment } from "react-relay"; @@ -46,8 +46,8 @@ interface LocaleMismatchCalloutProps { identityKey: LocaleMismatchCallout_identity$key; } -// Soft notice when the URL locale differs from the signed-in identity preference. -// Dismissed state is React-only (no localStorage/cookies). +// Full-bleed notice when the URL locale differs from the signed-in identity +// preference. Dismissed state is React-only (no localStorage/cookies). export function LocaleMismatchCallout({ identityKey }: LocaleMismatchCalloutProps) { const { t } = useTranslation(); const identity = useFragment(localeMismatchCalloutFragment, identityKey); @@ -75,45 +75,61 @@ export function LocaleMismatchCallout({ identityKey }: LocaleMismatchCalloutProp }; return ( -
- }> -
-

- {t("locale.mismatch.message", { language: urlLabel })} -

-
- - - setDismissed(true)} - > - - -
-
-
-
+ ); }