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

feat: add background-muted color to design system #29117

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

georgewrmarshall
Copy link
Contributor

@georgewrmarshall georgewrmarshall commented Dec 11, 2024

Description

This PR adds support for the new background-muted color introduced in @metamask/design-tokens v4.2.0.

Related issues

Fixes: N/A

Manual testing steps

  1. Open Storybook
  2. Navigate to Box component stories
  3. Verify new background-muted color appears in BackgroundColor story
  4. Verify color applies correctly when selected

Screenshots/Recordings

Before

before720.mov

After

after720.mov

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

@georgewrmarshall georgewrmarshall requested review from a team as code owners December 11, 2024 22:02
@georgewrmarshall georgewrmarshall added the team-design-system All issues relating to design system in Extension label Dec 11, 2024
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.

@georgewrmarshall georgewrmarshall self-assigned this Dec 11, 2024
@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Dec 11, 2024
Comment on lines +393 to +397
<Box padding={3} backgroundColor={BackgroundColor.backgroundMuted}>
<Text color={TextColor.textDefault}>
BackgroundColor.backgroundMuted
</Text>
</Box>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updating Box component stories

Screenshot 2024-12-12 at 10 58 11 AM Screenshot 2024-12-12 at 10 58 25 AM

brianacnguyen
brianacnguyen previously approved these changes Dec 11, 2024
@@ -150,7 +150,7 @@ exports[`IncomingTransactionToggle should render existing incoming transaction p
style="display: flex; width: 52px; align-items: center; justify-content: flex-start; position: relative; cursor: pointer; background-color: transparent; border: 0px; padding: 0px; user-select: none;"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updates toggle button color which uses the JSinCSS tokens

@metamaskbot
Copy link
Collaborator

Builds ready [54bf90e]
Page Load Metrics (1673 ± 51 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15021902167610551
domContentLoaded14841849164510048
load15091902167310651
domInteractive2486442010
backgroundConnect76532209
firstReactRender1697503215
getState57116189
initialActions01000
loadScripts1086139812417938
setupStore681192411
uiStartup168325431966265127
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.81 KiB (0.02%)
  • common: 74 Bytes (0.00%)

@georgewrmarshall georgewrmarshall added this pull request to the merge queue Dec 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 12, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [526b29f]
Page Load Metrics (1771 ± 66 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15732076177813967
domContentLoaded15232048174213665
load15742118177113866
domInteractive26166503316
backgroundConnect76925189
firstReactRender1682432612
getState478242411
initialActions00000
loadScripts11421604131712259
setupStore65211105
uiStartup17992374202416278
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 74 Bytes (0.00%)

@georgewrmarshall georgewrmarshall added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit ea75bf8 Dec 12, 2024
77 checks passed
@georgewrmarshall georgewrmarshall deleted the fix/design-tokens-4.2 branch December 12, 2024 21:47
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2024
@metamaskbot metamaskbot added the release-12.10.2 Issue or pull request that will be included in release 12.10.2 label Dec 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
INVALID-PR-TEMPLATE PR's body doesn't match template release-12.10.2 Issue or pull request that will be included in release 12.10.2 team-design-system All issues relating to design system in Extension
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants