Skip to content

Commit 62cb40f

Browse files
authored
fix: [lw-12560] align banxa banner with latest figma
1 parent 4b63672 commit 62cb40f

File tree

3 files changed

+15
-20
lines changed

3 files changed

+15
-20
lines changed

apps/browser-extension-wallet/src/views/browser-view/components/TopUpWallet/SvgBtcComponentTransparent.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
22
import React, { SVGProps } from 'react';
33

4-
// TODO: Mode to lace UI toolkit
4+
// TODO: Move to lace UI toolkit
55
const SvgBtcComponentTransparent = (props: SVGProps<SVGSVGElement>) => (
6-
<svg xmlns="http://www.w3.org/2000/svg" width={25} height={25} fill="none" {...props}>
6+
<svg width="9" height="17" viewBox="0 0 9 17" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
77
<path
8-
d="M10 6V4M14 6V4M14 6H7M14 6C15.6569 6 17 7.34315 17 9C17 10.6569 15.6569 12 14 12M9 18L9 12M9 6V12M10 20V18M14 20V18M9 12H15C16.6569 12 18 13.3431 18 15C18 16.6569 16.6569 18 15 18H7"
9-
stroke="#FFFFFF"
8+
d="M4.66361 3.03V0.329999H5.81561V3.03H4.66361ZM2.25161 3.03V0.329999H3.40361V3.03H2.25161ZM4.66361 16.764V14.064H5.81561V16.764H4.66361ZM2.25161 16.764V14.064H3.40361V16.764H2.25161ZM0.595609 15V2.148H3.54761C4.55561 2.148 5.39561 2.25 6.06761 2.454C6.75161 2.658 7.26161 2.994 7.59761 3.462C7.94561 3.93 8.11961 4.554 8.11961 5.334C8.11961 5.838 8.03561 6.288 7.86761 6.684C7.71161 7.068 7.47161 7.392 7.14761 7.656C6.83561 7.908 6.44561 8.082 5.97761 8.178V8.268C6.45761 8.352 6.88361 8.508 7.25561 8.736C7.63961 8.964 7.93961 9.288 8.15561 9.708C8.38361 10.128 8.49761 10.674 8.49761 11.346C8.49761 12.126 8.32961 12.792 7.99361 13.344C7.66961 13.884 7.20161 14.298 6.58961 14.586C5.97761 14.862 5.24561 15 4.39361 15H0.595609ZM3.87161 7.62C4.85561 7.62 5.52761 7.446 5.88761 7.098C6.25961 6.738 6.44561 6.21 6.44561 5.514C6.44561 4.806 6.21761 4.302 5.76161 4.002C5.31761 3.69 4.60361 3.534 3.61961 3.534H2.21561V7.62H3.87161ZM2.21561 8.97V13.632H4.08761C5.08361 13.632 5.77961 13.41 6.17561 12.966C6.57161 12.522 6.76961 11.94 6.76961 11.22C6.76961 10.764 6.67961 10.368 6.49961 10.032C6.33161 9.696 6.04361 9.438 5.63561 9.258C5.22761 9.066 4.66961 8.97 3.96161 8.97H2.21561Z"
9+
fill="white"
1010
/>
1111
</svg>
1212
);

apps/browser-extension-wallet/src/views/browser-view/components/TopUpWallet/TopUpWallet.module.scss

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
align-self: start;
99
border-radius: size_unit(2);
1010
background: var(--primary-gradient);
11-
display: flex;
12-
align-items: center;
13-
justify-content: center;
11+
display: flex;
12+
align-items: center;
13+
justify-content: center;
1414
padding: 0 size_unit(1);
1515
height: 20px;
16+
margin-bottom: 10px;
1617
}
1718
.badgeCaption {
1819
color: var(--color-white, #fff) !important;
@@ -26,10 +27,6 @@
2627
color: var(--light-mode-dark-grey, var(--dark-mode-light-grey, #6f7786));
2728
}
2829

29-
.disclaimerShort {
30-
color: var(--light-mode-mid-grey, var(--dark-mode-light-grey, #c0c0c0)) !important;
31-
}
32-
3330
.disclaimerFullWrapper {
3431
text-align: center;
3532
}

apps/browser-extension-wallet/src/views/browser-view/components/TopUpWallet/TopUpWalletCard.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,27 @@ export const TopUpWalletCard = (): React.ReactElement => {
1212

1313
return (
1414
<Card.Outlined className={styles.card} data-testid="top-up-wallet-card">
15-
<Flex flexDirection="column" mx="$20" my="$20" gap="$6" alignItems="stretch">
15+
<Flex flexDirection="column" mx="$20" my="$28" py="$2" alignItems="stretch">
1616
<div className={styles.titleBadge} data-testid="top-up-wallet-card-badge">
1717
<Text.Label className={styles.badgeCaption} weight="$medium">
1818
{t('browserView.assets.topupWallet.card.badge')}
1919
</Text.Label>
2020
</div>
21-
<Flex my="$10">
22-
<Text.SubHeading weight="$bold" data-testid="top-up-wallet-card-title">
23-
{t('browserView.assets.topupWallet.card.title')}
24-
</Text.SubHeading>
25-
</Flex>
26-
<Flex flexDirection="column" alignItems="stretch" gap="$16" mt="$10">
21+
<Text.SubHeading weight="$bold" data-testid="top-up-wallet-card-title">
22+
{t('browserView.assets.topupWallet.card.title')}
23+
</Text.SubHeading>
24+
<Flex flexDirection="column" alignItems="stretch" gap="$16">
2725
<Text.Body.Normal weight="$medium" color="secondary" data-testid="top-up-wallet-card-subtitle">
2826
{!isBitcoin
2927
? t('browserView.assets.topupWallet.buyButton.title')
3028
: t('browserView.assets.topupWallet.buyButtonBtc.title')}
3129
</Text.Body.Normal>
3230
<TopUpWalletButton />
33-
<Text.Label weight="$medium" className={styles.disclaimerShort} data-testid="top-up-wallet-card-disclaimer">
31+
<Text.Body.Normal weight="$medium" color="secondary" data-testid="top-up-wallet-card-disclaimer">
3432
{!isBitcoin
3533
? t('browserView.assets.topupWallet.disclaimer.short')
3634
: t('browserView.assets.topupWallet.disclaimer.shortBtc')}
37-
</Text.Label>
35+
</Text.Body.Normal>
3836
</Flex>
3937
</Flex>
4038
</Card.Outlined>

0 commit comments

Comments
 (0)