From 3ee9f935f06a02056873e73d0e3620ecf12fd387 Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Wed, 18 Feb 2026 11:21:06 -0600 Subject: [PATCH] Update megaphone design Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> --- ts/components/RemoteMegaphone.dom.stories.tsx | 12 ++++ ts/components/RemoteMegaphone.dom.tsx | 71 +++++++++++-------- 2 files changed, 52 insertions(+), 31 deletions(-) diff --git a/ts/components/RemoteMegaphone.dom.stories.tsx b/ts/components/RemoteMegaphone.dom.stories.tsx index ef089572b9..aed7562479 100644 --- a/ts/components/RemoteMegaphone.dom.stories.tsx +++ b/ts/components/RemoteMegaphone.dom.stories.tsx @@ -61,6 +61,18 @@ export function LongText(args: PropsType): React.JSX.Element { ); } +export function LongButtons(args: PropsType): React.JSX.Element { + return ( + + ); +} + export function NarrowSidebar(args: PropsType): React.JSX.Element { return ; } diff --git a/ts/components/RemoteMegaphone.dom.tsx b/ts/components/RemoteMegaphone.dom.tsx index a85a8bba3a..8b3cd4f3cc 100644 --- a/ts/components/RemoteMegaphone.dom.tsx +++ b/ts/components/RemoteMegaphone.dom.tsx @@ -34,23 +34,24 @@ export function RemoteMegaphone({ // We need to provide this to to render correctly const wrapperClassName = tw( '@container flex flex-col', - 'max-w-[500px] rounded-lg border-1 border-border-primary p-3', - isFullSize ? 'pe-2 pb-1.5' : 'size-[76px]', - 'bg-elevated-background-primary dark:bg-elevated-background-tertiary' + 'max-w-[500px] curved-3xl p-3', + 'bg-elevated-background-primary dark:bg-elevated-background-tertiary', + 'shadow-elevation-1', + isFullSize ? '' : 'size-[76px]' ); const image: React.JSX.Element = (
@@ -66,41 +67,49 @@ export function RemoteMegaphone({
{image}
-

+

{title}

{body}

-
- {secondaryCtaId && ( - - onInteractWithMegaphone(remoteMegaphoneId, secondaryCtaId) - } - > - {secondaryCtaText} - - )} - {primaryCtaId && ( - - onInteractWithMegaphone(remoteMegaphoneId, primaryCtaId) - } - > - {primaryCtaText} - - )} +
+
+ {secondaryCtaId && ( + + onInteractWithMegaphone(remoteMegaphoneId, secondaryCtaId) + } + width="grow" + > + {secondaryCtaText} + + )} + {primaryCtaId && ( + + onInteractWithMegaphone(remoteMegaphoneId, primaryCtaId) + } + width="grow" + > + {primaryCtaText} + + )} +
);