-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UX Multichain: Added Footer to the home screen (#20751)
This PR is to add the footer * Fixes [#1244](MetaMask/MetaMask-planning#1244) ## Screenshots/Screencaps ![Screenshot 2023-09-06 at 2 49 23 PM](https://github.com/MetaMask/metamask-extension/assets/39872794/08ddbcd4-4973-4885-879b-be10899616d6) https://github.com/MetaMask/metamask-extension/assets/39872794/00e8de3d-7e24-4e03-b96c-41ea56e4a7fe ## Manual Testing Steps <!-- How should reviewers and QA manually test your changes? For instance: - Go to this screen - Do this - Then do this --> ## Pre-merge author checklist - [x] I've clearly explained: - [x] What problem this PR is solving - [x] How this problem was solved - [x] How reviewers can test my changes - [x] Sufficient automated test coverage has been added ## Pre-merge reviewer checklist - [ ] Manual testing (e.g. pull and build branch, run in browser, test code being changed) - [ ] PR is linked to the appropriate GitHub issue - [ ] **IF** this PR fixes a bug in the release milestone, add this PR to the release milestone If further QA is required (e.g. new feature, complex testing steps, large refactor), add the `Extension QA Board` label. In this case, a QA Engineer approval will be be required. --------- Co-authored-by: David Walsh <[email protected]>
- Loading branch information
Showing
8 changed files
with
298 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
ui/components/multichain/app-footer/__snapshots__/app-footer.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`App Footer should match snapshot 1`] = ` | ||
<div> | ||
<div | ||
class="mm-box app-footer mm-box--display-flex mm-box--flex-direction-row mm-box--align-items-center mm-box--width-full mm-box--background-color-background-alternative" | ||
data-test-id="app-footer" | ||
> | ||
<div | ||
class="mm-box app-footer__contents mm-box--padding-2 mm-box--padding-right-4 mm-box--padding-left-4 mm-box--display-flex mm-box--gap-2 mm-box--flex-direction-row mm-box--justify-content-space-between mm-box--align-items-center mm-box--width-full mm-box--background-color-background-default" | ||
> | ||
<a | ||
class="mm-box app-footer__button mm-box--padding-2 mm-box--display-flex mm-box--flex-direction-column mm-box--align-items-center mm-box--width-1/3" | ||
href="#" | ||
tabindex="0" | ||
> | ||
<span | ||
class="mm-box mm-icon mm-icon--size-lg mm-box--display-inline-block mm-box--color-icon-alternative" | ||
data-testid="app-footer-wallet-button" | ||
style="mask-image: url('./images/icons/wallet.svg');" | ||
/> | ||
<p | ||
class="mm-box mm-text mm-text--body-md mm-box--color-text-alternative" | ||
> | ||
Wallet | ||
</p> | ||
</a> | ||
<div | ||
class="mm-box mm-box--padding-2 mm-box--display-flex mm-box--flex-direction-column mm-box--justify-content-center mm-box--align-items-center mm-box--width-1/3 mm-box--background-color-background-default" | ||
tabindex="0" | ||
> | ||
<button | ||
class="mm-box mm-button-icon mm-button-icon--size-lg app-footer__actions-button mm-box--display-inline-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-primary-inverse mm-box--background-color-primary-default mm-box--rounded-full" | ||
data-testid="app-footer-actions-button" | ||
> | ||
<span | ||
class="mm-box mm-icon mm-icon--size-lg mm-box--display-inline-block mm-box--color-inherit" | ||
style="mask-image: url('./images/icons/swap-vertical.svg');" | ||
/> | ||
</button> | ||
</div> | ||
<a | ||
class="mm-box app-footer__button mm-box--padding-2 mm-box--display-flex mm-box--flex-direction-column mm-box--align-items-center mm-box--width-1/3" | ||
href="#" | ||
tabindex="0" | ||
> | ||
<span | ||
class="mm-box mm-icon mm-icon--size-lg mm-box--display-inline-block mm-box--color-icon-alternative" | ||
style="mask-image: url('./images/icons/global.svg');" | ||
/> | ||
<p | ||
class="mm-box mm-text mm-text--body-md mm-box--color-text-alternative" | ||
> | ||
Connections | ||
</p> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.