Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactoring onboarding to remove deprecated components (#26207)
<!-- Please submit this PR as a draft initially. Do not mark it as "Ready for review" until the template has been completely filled out, and PR status checks have passed at least once. --> ## **Description** This pull request aims to remove the deprecated `Box` and `Button` components from the onboarding metametrics screen and replace them with their counterparts from the design system-aligned component library. The primary motivation for this change is to ensure consistency across the application by using standardized components, which will improve maintainability and reduce the risk of design discrepancies. [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/26207?quickstart=1) ## **Related issues** Fixes: [#issue-number] ## **Manual testing steps** 1. Navigate to the onboarding metametrics screen in the storybook build of this PR. 2. Verify that the UI elements look consistent with the design system guidelines. ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** <img width="757" alt="Screenshot 2024-07-29 at 3 29 27 PM" src="https://github.com/user-attachments/assets/f216b6f2-2268-49e7-8f4d-610f8263c150"> <img width="949" alt="Screenshot 2024-07-29 at 3 59 40 PM" src="https://github.com/user-attachments/assets/c42c7500-5a32-4164-8fbf-67848a873ee6"> ### **After** <img width="756" alt="Screenshot 2024-07-29 at 3 30 02 PM" src="https://github.com/user-attachments/assets/53d6fd5a-aa7d-4d03-b71d-d77315e67ed2"> <img width="980" alt="Screenshot 2024-07-29 at 3 59 01 PM" src="https://github.com/user-attachments/assets/b818a73c-2bfc-4e19-90f0-153e6531d79c"> ## **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/develop/.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/develop/.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.
- Loading branch information