Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update segmented tab styling #29652

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

matteoscurati
Copy link
Contributor

@matteoscurati matteoscurati commented Jan 13, 2025

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

Related issues

Original request: #26190

Manual testing steps

The tabs tested are those indicated in this issue: #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

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.

@matteoscurati matteoscurati self-assigned this Jan 13, 2025
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot metamaskbot added the team-notifications Notifications team label Jan 13, 2025
font-weight: 500;
}

&--single {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ve added this style to update the appearance in case a tab list has only one tab

@metamaskbot
Copy link
Collaborator

Builds ready [7a8dd9a]
Page Load Metrics (1790 ± 94 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14812234178818689
domContentLoaded14732222176718991
load14832307179019594
domInteractive226537116
backgroundConnect1084242110
firstReactRender1786432412
getState562212010
initialActions01000
loadScripts10571689130315273
setupStore75513147
uiStartup166725812047216104
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 84 Bytes (0.00%)
  • common: 27 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [65564b8]
Page Load Metrics (1848 ± 66 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint38320971633497239
domContentLoaded16172085181113967
load16372100184813766
domInteractive26101532512
backgroundConnect774342412
firstReactRender1698352512
getState67221209
initialActions00000
loadScripts11531592136311857
setupStore65717178
uiStartup18892446212316479
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 79 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [3cc080a]
Page Load Metrics (1585 ± 41 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1469189715889244
domContentLoaded1458181415668039
load1469184915858441
domInteractive257139168
backgroundConnect84420136
firstReactRender1595342612
getState45112157
initialActions01000
loadScripts1057139611627837
setupStore672212411
uiStartup16762240187416479
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 79 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [a64d59b]
Page Load Metrics (1685 ± 62 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14662038169213062
domContentLoaded14591933165912058
load14672022168512962
domInteractive247836147
backgroundConnect594282713
firstReactRender15101513416
getState588162211
initialActions01000
loadScripts1070137312208641
setupStore664202110
uiStartup167526652061251121
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 79 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [1fb3e90]
Page Load Metrics (1807 ± 96 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15292508180419996
domContentLoaded15192413178218589
load15312526180720096
domInteractive249342199
backgroundConnect11102272210
firstReactRender16104412713
getState685262512
initialActions00000
loadScripts10701840130316579
setupStore86322199
uiStartup177830772118265127
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 79 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-notifications Notifications team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants