Skip to content

Commit 3271767

Browse files
authored
Merge pull request #725 from dkackman/sign-message-dialog
make AdvancedTransactionSummary theme aware
2 parents db17c91 + 9485841 commit 3271767

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

src/components/AdvancedTransactionSummary.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function AdvancedTransactionSummary({
4040

4141
return (
4242
<div className='flex flex-col gap-1.5'>
43-
<div className='flex flex-col gap-2 w-full font-medium text-left text-neutral-900 bg-muted p-2 rounded-md'>
43+
<div className='flex flex-col gap-2 w-full font-medium text-left text-card-foreground bg-card border border-border shadow-card p-2 rounded-lg'>
4444
<div className='flex items-center gap-2 text-lg'>
4545
<BadgeMinus className='w-6 h-6' aria-hidden='true' />
4646
<span>
@@ -53,7 +53,7 @@ export function AdvancedTransactionSummary({
5353
.map((spent) => (
5454
<div
5555
key={spent.coinId}
56-
className='flex flex-col gap-1 border-2 p-1.5 rounded-md'
56+
className='flex flex-col gap-1 border border-border p-1.5 rounded-md bg-card/50'
5757
>
5858
<div className='flex items-center gap-2'>
5959
<Badge className='max-w-[100px]'>
@@ -62,16 +62,19 @@ export function AdvancedTransactionSummary({
6262
<span>{spent.label}</span>
6363
</div>
6464
<div className='flex items-center gap-1'>
65-
<BoxIcon className='w-4 h-4' aria-hidden='true' />
66-
<div className='truncate text-muted-foreground'>
65+
<BoxIcon
66+
className='w-4 h-4 text-muted-foreground'
67+
aria-hidden='true'
68+
/>
69+
<div className='truncate text-muted-foreground text-sm'>
6770
{spent.coinId}
6871
</div>
6972
</div>
7073
</div>
7174
))}
7275
</div>
7376
</div>
74-
<div className='flex flex-col gap-2 w-full font-medium text-left text-neutral-900 bg-muted p-2 rounded-md'>
77+
<div className='flex flex-col gap-2 w-full font-medium text-left text-card-foreground bg-card border border-border shadow-card p-2 rounded-lg'>
7578
<div className='flex items-center gap-2 text-lg'>
7679
<BadgePlus className='w-6 h-6' aria-hidden='true' />
7780
<span>
@@ -80,7 +83,7 @@ export function AdvancedTransactionSummary({
8083
</div>
8184
<div className='flex flex-col gap-2'>
8285
{!BigNumber(summary.fee || 0).isZero() && (
83-
<div className='flex flex-col gap-1 border-2 p-1.5 rounded-md'>
86+
<div className='flex flex-col gap-1 border border-border p-1.5 rounded-md bg-card/50'>
8487
<div className='flex items-center gap-2'>
8588
<Badge>
8689
<Trans>Fee</Trans>
@@ -97,7 +100,7 @@ export function AdvancedTransactionSummary({
97100
.map((created) => (
98101
<div
99102
key={created.label}
100-
className='flex flex-col gap-1 border-2 p-1.5 rounded-md'
103+
className='flex flex-col gap-1 border border-border p-1.5 rounded-md bg-card/50'
101104
>
102105
<div className='flex items-center gap-2'>
103106
<Badge className='max-w-[100px]'>
@@ -106,8 +109,11 @@ export function AdvancedTransactionSummary({
106109
<span>{created.label}</span>
107110
</div>
108111
<div className='flex items-center gap-1'>
109-
<ForwardIcon className='w-4 h-4' aria-hidden='true' />
110-
<div className='truncate text-muted-foreground'>
112+
<ForwardIcon
113+
className='w-4 h-4 text-muted-foreground'
114+
aria-hidden='true'
115+
/>
116+
<div className='truncate text-muted-foreground text-sm'>
111117
{created.address}
112118
</div>
113119
</div>

0 commit comments

Comments
 (0)