Skip to content

chore: remove deprecated success colors#25122

Merged
georgewrmarshall merged 4 commits intodevelopfrom
remove-deprecated-success-colors
Jun 7, 2024
Merged

chore: remove deprecated success colors#25122
georgewrmarshall merged 4 commits intodevelopfrom
remove-deprecated-success-colors

Conversation

@georgewrmarshall
Copy link
Copy Markdown
Contributor

@georgewrmarshall georgewrmarshall commented Jun 6, 2024

Description

This pull request removes the deprecated success colors (success-alternative and success-disabled) in preparation for upgrading to design token v4.

Open in GitHub Codespaces

Related issues

Fixes: #24967

Manual testing steps

  1. Go to the storybook build of this PR
  2. Go to all stories that did use the success alternative and success disabled
  3. See color updates are working as expected

Screenshots/Recordings

Before/After screenshots in code comments for easier review

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). 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.

@georgewrmarshall georgewrmarshall added the team-design-system All issues relating to design system in Extension label Jun 6, 2024
@georgewrmarshall georgewrmarshall self-assigned this Jun 6, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 6, 2024

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.

var(--color-success-alternative) [DEPRECATED]
var(--color-success-muted)
var(--color-success-inverse)
var(--color-success-disabled) [DEPRECATED]
Copy link
Copy Markdown
Contributor Author

@georgewrmarshall georgewrmarshall Jun 6, 2024

Choose a reason for hiding this comment

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

No success-disabled left in the codebase. Removing from color docs

Screenshot 2024-06-06 at 1 59 28 PM

backgroundColor={BackgroundColor.successDefault}
size={ButtonSize.Sm}
>
Unlock
Copy link
Copy Markdown
Contributor Author

@georgewrmarshall georgewrmarshall Jun 6, 2024

Choose a reason for hiding this comment

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

Screenshot 2024-06-06 at 2 08 24 PM Screenshot 2024-06-06 at 2 07 54 PM

warningInverse = 'warning-inverse',
warningDisabled = 'warning-disabled',
successDefault = 'success-default',
successAlternative = 'success-alternative',
Copy link
Copy Markdown
Contributor Author

@georgewrmarshall georgewrmarshall Jun 6, 2024

Choose a reason for hiding this comment

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

No instances of successAlternative remain in the codebase

Screenshot 2024-06-06 at 2 11 32 PM

successAlternative = 'success-alternative',
successMuted = 'success-muted',
successInverse = 'success-inverse',
successDisabled = 'success-disabled',
Copy link
Copy Markdown
Contributor Author

@georgewrmarshall georgewrmarshall Jun 6, 2024

Choose a reason for hiding this comment

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

No instances of successDisabled remain in the codebase

Screenshot 2024-06-06 at 2 11 43 PM

&__strong {
color: var(--color-success-alternative);
color: var(--color-success-default);
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2024-06-06 at 2 14 04 PM Screenshot 2024-06-06 at 2 14 28 PM Screenshot 2024-06-06 at 2 15 10 PM Screenshot 2024-06-06 at 2 14 54 PM

@georgewrmarshall georgewrmarshall marked this pull request as ready for review June 6, 2024 21:16
@georgewrmarshall georgewrmarshall requested review from a team as code owners June 6, 2024 21:16
@georgewrmarshall georgewrmarshall force-pushed the remove-deprecated-success-colors branch from 8503af9 to 2f19e6b Compare June 6, 2024 21:20
Connect
</Header>
<Content backgroundColor={BackgroundColor.successAlternative}>
<Content backgroundColor={BackgroundColor.successDefault}>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2024-06-06 at 2 22 12 PM Screenshot 2024-06-06 at 2 20 43 PM

Connect
</Header>
<Content background={BackgroundColor.successAlternative}>
<Content backgroundColor={BackgroundColor.successDefault}>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2024-06-06 at 2 22 31 PM Screenshot 2024-06-06 at 2 20 59 PM

Connect
</Header>
<Content backgroundColor={BackgroundColor.successAlternative}>
<Content backgroundColor={BackgroundColor.successDefault}>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2024-06-06 at 2 22 48 PM Screenshot 2024-06-06 at 2 21 26 PM

Connect
</Header>
<Content background={BackgroundColor.successAlternative}>
<Content backgroundColor={BackgroundColor.successDefault}>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2024-06-06 at 2 23 05 PM Screenshot 2024-06-06 at 2 21 45 PM

@georgewrmarshall georgewrmarshall changed the title Remove deprecated success colors chore: remove deprecated success colors Jun 6, 2024
@darkwing darkwing added the needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. label Jun 6, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.65%. Comparing base (a7fbbd3) to head (ca9365e).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #25122      +/-   ##
===========================================
- Coverage    65.66%   65.65%   -0.00%     
===========================================
  Files         1359     1359              
  Lines        54014    54010       -4     
  Branches     14015    14015              
===========================================
- Hits         35464    35460       -4     
  Misses       18550    18550              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [ca9365e]
Page Load Metrics (47 ± 6 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6912381126
domContentLoaded8421173
load408647126
domInteractive8421173
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: -166 Bytes (-0.00%)

@georgewrmarshall georgewrmarshall merged commit 254ac95 into develop Jun 7, 2024
@georgewrmarshall georgewrmarshall deleted the remove-deprecated-success-colors branch June 7, 2024 16:14
@github-actions github-actions bot locked and limited conversation to collaborators Jun 7, 2024
@metamaskbot metamaskbot added the release-12.1.0 Issue or pull request that will be included in release 12.1.0 label Jun 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. release-12.1.0 Issue or pull request that will be included in release 12.1.0 team-design-system All issues relating to design system in Extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: remove all instances of deprecated success colors

4 participants