From 4e1b0dc44da2437b7e6ea8033efcb6066258c049 Mon Sep 17 00:00:00 2001 From: Matteo Scurati Date: Thu, 30 Jan 2025 16:39:04 +0100 Subject: [PATCH] fix: update segmented `tab` styling (#29652) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## **Description** This PR updates the style of the `ui/components/ui/tabs/tabs.component.js` component and removes some custom classes used to override the style in various parts of the site (particularly on the home page and the notifications page). This ensures a consistent style for the tabs. [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/29652?quickstart=1) ## **Related issues** Original request: https://github.com/MetaMask/metamask-extension/issues/26190 ## **Manual testing steps** The tabs tested are those indicated in this issue: https://github.com/MetaMask/metamask-extension/issues/28910. However, some of them seem to no longer be in use (for example, the “snap” tab in the permissions page should no longer exist, as it now has its own dedicated page). ## **Screenshots/Recordings** ### **Before** ### **After** Screenshot 2025-01-13 at 09 49 49 Screenshot 2025-01-12 at 23 28 37 Screenshot 2025-01-12 at 23 28 23 Screenshot 2025-01-12 at 23 28 08 ## **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/main/.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/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [x] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [x] 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. --- ui/components/multichain/account-overview/index.scss | 2 -- .../pages/send/__snapshots__/send.test.js.snap | 2 +- ui/components/ui/tabs/index.scss | 1 - ui/components/ui/tabs/tab/index.scss | 10 ++++++++++ ui/components/ui/tabs/tab/tab.component.js | 3 +++ ui/components/ui/tabs/tabs.component.js | 4 +++- .../confirm-transaction-base.test.js.snap | 2 +- ui/pages/notifications/index.scss | 6 ------ 8 files changed, 18 insertions(+), 12 deletions(-) diff --git a/ui/components/multichain/account-overview/index.scss b/ui/components/multichain/account-overview/index.scss index 7e83ff91665e..3d05d28be762 100644 --- a/ui/components/multichain/account-overview/index.scss +++ b/ui/components/multichain/account-overview/index.scss @@ -19,8 +19,6 @@ @include design-system.H6; flex-grow: 1; - color: var(--color-icon-default); - font-weight: 500; } &__tab--active { diff --git a/ui/components/multichain/pages/send/__snapshots__/send.test.js.snap b/ui/components/multichain/pages/send/__snapshots__/send.test.js.snap index 26c1013eec87..a01ec0c1c96b 100644 --- a/ui/components/multichain/pages/send/__snapshots__/send.test.js.snap +++ b/ui/components/multichain/pages/send/__snapshots__/send.test.js.snap @@ -160,7 +160,7 @@ exports[`SendPage render and initialization should render correctly even when a class="box tabs box--flex-direction-row" >