Skip to content

Commit b149d61

Browse files
release(runway): cherry-pick fix(money): align Money FTUE splash with Figma hero and heading (#47768)
- fix(money): align Money FTUE splash with Figma hero and heading (#47716) ## **Description** The Money FTUE splash still used the old orange wallet hero and a bold 16px title, and its headline grew to 32px in the full-screen card. This change adds the Money v2 layered hero, sets the title to 20px/24 medium and the headline to 32px/40 in the popup and 24px/32 in the side panel and full screen, and applies the Figma 24px and 16px gaps. The side-panel and full-screen cards are now 368px wide, with unit tests covering the new assets and typography. ## **Changelog** CHANGELOG entry: Updated the Money account splash with the new hero artwork and heading styling. ## **Related issues** Fixes: [MUSD-1514](https://consensyssoftware.atlassian.net/browse/MUSD-1514) ## **Manual testing steps** 1. Build and load the extension, then unlock the wallet. 2. Reset the Money FTUE flag so the splash is eligible to show, for example with a fresh profile or by clearing `moneyFtueSeen`. 3. Open the Money tab and verify the new green and blue coin hero appears. 4. Verify the "MetaMask Money" title is 20px medium and sits 24px from the left. 5. Verify the headline is 32px in the popup and 24px in the full-screen and side-panel cards, with 24px above and 16px below. 6. In full screen and the side panel, verify the splash card is 368px wide. 7. Scroll through the benefits and FAQs, expand one FAQ, and click Start earning. 8. Verify the splash closes into Money home and does not show again on the next visit. ## **Screenshots/Recordings** ### **Before** Popup View <img width="385" height="579" alt="popup_1" src="https://github.com/user-attachments/assets/377a8784-a348-4161-9087-a2a33972d3de" /> Side Panel View <img width="364" height="833" alt="sidepanel_1" src="https://github.com/user-attachments/assets/e7707eea-831e-45e2-ae0e-8bf590fcbc8c" /> Full-screen View <img width="832" height="857" alt="fullscreen_1" src="https://github.com/user-attachments/assets/9fe53bac-dbc3-4471-8ac7-b26fd3080fde" /> ### **After** Side Panel View <img width="329" height="740" alt="Screenshot 2026-11-09 at 09 52 45" src="https://github.com/user-attachments/assets/9d8b5552-6a20-4fcc-bf5a-41aa8ff03238" /> Popup View <img width="382" height="572" alt="Screenshot 2026-11-09 at 09 53 18" src="https://github.com/user-attachments/assets/b2665dbe-0ad2-4f79-9465-d1cba82b393b" /> Full-screen View <img width="782" height="841" alt="Screenshot 2026-11-09 at 09 53 49" src="https://github.com/user-attachments/assets/35a4ebe3-cffa-43d8-aef8-3f2adc6e2d12" /> ## **Pre-merge author checklist** - [x] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension Coding Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots. [MUSD-1514]: https://consensyssoftware.atlassian.net/browse/MUSD-1514?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Visual and layout-only changes to the Money FTUE modal with no auth, payment, or data-flow changes. > > **Overview** > Refreshes the **Money FTUE splash** to match Figma: the single onboarding image is replaced with a **layered hero** (environment-specific SVG background plus coin overlay), and **side panel / full-screen** cards are narrowed from **400px to 368px**. > > **Typography and spacing** are updated—the title uses **20px medium** with adjusted header padding, the headline uses **32px in popup** and **24px in card layouts**, and gaps around the hero and description are tightened to the spec. > > Unit tests are extended to assert hero asset selection, typography classes, and card width. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit a81ea88. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> [14f4d1a](14f4d1a) [MUSD-1514]: https://consensyssoftware.atlassian.net/browse/MUSD-1514?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [MUSD-1514]: https://consensyssoftware.atlassian.net/browse/MUSD-1514?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ Co-authored-by: ffmcgee <51971598+ffmcgee725@users.noreply.github.com>
1 parent 6ead231 commit b149d61

5 files changed

Lines changed: 126 additions & 26 deletions

File tree

Lines changed: 9 additions & 0 deletions
Loading
Lines changed: 9 additions & 0 deletions
Loading
96.3 KB
Loading

‎ui/components/app/money/money-ftue-splash/money-ftue-splash.test.tsx‎

Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe('MoneyFtueSplash', () => {
177177
renderSplash();
178178

179179
const splash = screen.getByTestId(MONEY_FTUE_SPLASH_TEST_ID);
180-
expect(splash.className).toContain('max-w-[400px]');
180+
expect(splash.className).toContain('max-w-[368px]');
181181
expect(splash.className).toContain('max-h-[min(75vh,680px)]');
182182
});
183183

@@ -187,10 +187,76 @@ describe('MoneyFtueSplash', () => {
187187
renderSplash();
188188

189189
expect(screen.getByTestId(MONEY_FTUE_SPLASH_TEST_ID).className).toContain(
190-
'max-w-[400px]',
190+
'max-w-[368px]',
191191
);
192192
});
193193

194+
it('renders both hero layers in the popup', () => {
195+
mockGetEnvironmentType.mockReturnValue(ENVIRONMENT_TYPE_POPUP);
196+
197+
renderSplash();
198+
199+
const images = screen
200+
.getByTestId('money-ftue-splash-artwork')
201+
.querySelectorAll('img');
202+
203+
expect(images).toHaveLength(2);
204+
expect(images[0]).toHaveAttribute(
205+
'src',
206+
'./images/money-ftue-hero-background.svg',
207+
);
208+
expect(images[1]).toHaveAttribute(
209+
'src',
210+
'./images/money-ftue-hero-coins.png',
211+
);
212+
});
213+
214+
it('uses the card hero background in full screen', () => {
215+
mockGetEnvironmentType.mockReturnValue(ENVIRONMENT_TYPE_FULLSCREEN);
216+
217+
renderSplash();
218+
219+
const images = screen
220+
.getByTestId('money-ftue-splash-artwork')
221+
.querySelectorAll('img');
222+
223+
expect(images[0]).toHaveAttribute(
224+
'src',
225+
'./images/money-ftue-hero-background-card.svg',
226+
);
227+
});
228+
229+
it('matches the Figma title and popup headline typography', () => {
230+
mockGetEnvironmentType.mockReturnValue(ENVIRONMENT_TYPE_POPUP);
231+
232+
renderSplash();
233+
234+
const title = screen.getByTestId('money-ftue-splash-title');
235+
const headline = screen.getByTestId('money-ftue-splash-headline');
236+
237+
expect(title).toHaveClass(
238+
'text-s-heading-md',
239+
'leading-s-heading-md',
240+
'font-medium',
241+
);
242+
expect(headline).toHaveClass(
243+
'text-s-display-md',
244+
'leading-s-display-md',
245+
'font-bold',
246+
);
247+
});
248+
249+
it('uses the 24px headline token in full screen', () => {
250+
mockGetEnvironmentType.mockReturnValue(ENVIRONMENT_TYPE_FULLSCREEN);
251+
252+
renderSplash();
253+
254+
const headline = screen.getByTestId('money-ftue-splash-headline');
255+
256+
expect(headline).toHaveClass('text-s-heading-lg', 'leading-s-heading-lg');
257+
expect(headline).not.toHaveClass('text-s-display-md');
258+
});
259+
194260
it('marks the splash seen and continues the pending deposit from the CTA', () => {
195261
const { store } = renderSplash();
196262

‎ui/components/app/money/money-ftue-splash/money-ftue-splash.tsx‎

Lines changed: 40 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ export const MONEY_FTUE_SPLASH_CLOSE_BUTTON_TEST_ID =
5757
export const MONEY_FTUE_SPLASH_START_EARNING_BUTTON_TEST_ID =
5858
'money-ftue-splash-start-earning-button';
5959

60-
const MONEY_FTUE_ARTWORK = './images/money-onboarding-stepper-step-1.png';
60+
const MONEY_FTUE_HERO_BACKGROUND = './images/money-ftue-hero-background.svg';
61+
const MONEY_FTUE_HERO_BACKGROUND_CARD =
62+
'./images/money-ftue-hero-background-card.svg';
63+
const MONEY_FTUE_HERO_COINS = './images/money-ftue-hero-coins.png';
6164
const APY_FALLBACK = '—';
6265

6366
const BENEFITS = [
@@ -179,10 +182,10 @@ const MoneyFtueSplashContent = () => {
179182
dialogClassName = 'h-full min-h-0 max-w-none rounded-none border-0';
180183
} else if (isSidepanel) {
181184
contentClassName = 'items-center';
182-
dialogClassName = 'max-h-[min(75vh,680px)] min-h-0 max-w-[400px]';
185+
dialogClassName = 'max-h-[min(75vh,680px)] min-h-0 max-w-[368px]';
183186
} else {
184187
contentClassName = undefined;
185-
dialogClassName = 'max-h-[calc(100vh-32px)] min-h-0 max-w-[400px]';
188+
dialogClassName = 'max-h-[calc(100vh-32px)] min-h-0 max-w-[368px]';
186189
}
187190

188191
return (
@@ -208,16 +211,14 @@ const MoneyFtueSplashContent = () => {
208211
}}
209212
>
210213
<div className="flex min-h-0 flex-1 flex-col">
211-
<header className="flex items-center justify-between gap-2 px-4 py-2">
212-
<Text
213-
asChild
214-
variant={TextVariant.HeadingSm}
215-
fontWeight={FontWeight.Bold}
214+
<header className="flex items-center justify-between gap-2 py-4 pl-6 pr-4">
215+
<h2
216+
id={titleId}
217+
className="text-default text-s-heading-md leading-s-heading-md font-medium"
218+
data-testid="money-ftue-splash-title"
216219
>
217-
<h2 id={titleId} data-testid="money-ftue-splash-title">
218-
{t('moneyFtueTitle')}
219-
</h2>
220-
</Text>
220+
{t('moneyFtueTitle')}
221+
</h2>
221222
<ButtonIcon
222223
iconName={IconName.Close}
223224
size={ButtonIconSize.Md}
@@ -228,27 +229,42 @@ const MoneyFtueSplashContent = () => {
228229
</header>
229230

230231
<div className="min-h-0 flex-1 overflow-y-auto overscroll-contain">
231-
<div className="px-4 pt-2">
232-
<img
233-
src={MONEY_FTUE_ARTWORK}
234-
alt=""
235-
className="aspect-[16/9] w-full rounded-2xl object-cover"
232+
<div className="px-4 pt-1">
233+
<div
234+
className="relative aspect-[16/9] w-full"
236235
data-testid="money-ftue-splash-artwork"
237-
/>
236+
>
237+
<img
238+
src={
239+
isPopup
240+
? MONEY_FTUE_HERO_BACKGROUND
241+
: MONEY_FTUE_HERO_BACKGROUND_CARD
242+
}
243+
alt=""
244+
className="absolute inset-0 h-full w-full"
245+
/>
246+
<img
247+
src={MONEY_FTUE_HERO_COINS}
248+
alt=""
249+
className="absolute left-1/2 top-1/2 w-[59%] -translate-x-1/2 -translate-y-1/2"
250+
/>
251+
</div>
238252

239-
<Text
240-
variant={TextVariant.HeadingLg}
241-
fontWeight={FontWeight.Bold}
242-
className="mt-5"
253+
<h2
254+
className={
255+
isPopup
256+
? 'mt-6 text-default text-s-display-md leading-s-display-md font-bold'
257+
: 'mt-6 text-default text-s-heading-lg leading-s-heading-lg font-bold'
258+
}
243259
data-testid="money-ftue-splash-headline"
244260
>
245261
{t('moneyFtueHeadline')}
246-
</Text>
262+
</h2>
247263

248264
<Text
249265
variant={TextVariant.BodyMd}
250266
color={TextColor.TextAlternative}
251-
className="mt-3"
267+
className="mt-4"
252268
data-testid="money-ftue-splash-description"
253269
>
254270
{t('moneyFtueDescription', [

0 commit comments

Comments
 (0)