Skip to content

Commit ed3b1b8

Browse files
feat: update modal header to full banner image
1 parent 9bba701 commit ed3b1b8

File tree

4 files changed

+10
-38
lines changed

4 files changed

+10
-38
lines changed

app/images/shield-entry-header.svg

Lines changed: 0 additions & 15 deletions
This file was deleted.
102 KB
Loading
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
.shield-entry-modal {
22
&__header {
3-
background: url('/images/shield-entry-header.svg') no-repeat right -20px center;
4-
background-color: var(--color-accent03-dark);
5-
background-size: 180px;
6-
}
7-
&__title {
8-
color: var(--color-accent03-normal);
3+
background: url('/images/shield-entry-modal-banner.png');
4+
background-size: cover;
5+
background-position: center;
6+
background-repeat: no-repeat;
97
}
108
}

ui/components/app/shield-entry-modal/shield-entry-modal.tsx

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,13 @@ export default function ShieldEntryModal({
5151
>
5252
{/* TODO: update with full image banner */}
5353
<ModalHeader
54-
paddingTop={4}
55-
className="shield-entry-modal__header h-[160px] flex items-center"
54+
className="shield-entry-modal__header h-[160px]"
5655
data-theme={ThemeType.dark}
57-
>
58-
<Text
59-
variant={TextVariant.displayMd}
60-
className="shield-entry-modal__title"
61-
>
62-
{t('shieldEntryModalTitle')}
63-
</Text>
64-
<ButtonIcon
65-
iconName={IconName.Close}
66-
ariaLabel={t('close')}
67-
size={ButtonIconSize.Sm}
68-
className="absolute top-2 right-2"
69-
onClick={onClose}
70-
/>
71-
</ModalHeader>
56+
closeButtonProps={{
57+
className: 'absolute top-2 right-2',
58+
}}
59+
onClose={onClose}
60+
/>
7261
<ModalBody paddingTop={4}>
7362
<Text variant={TextVariant.headingMd} marginBottom={1}>
7463
{t('shieldEntryModalSubtitle')}

0 commit comments

Comments
 (0)