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

Updating network colors with design tokens #16543

Merged
merged 2 commits into from
Nov 17, 2022

Conversation

georgewrmarshall
Copy link
Contributor

@georgewrmarshall georgewrmarshall commented Nov 16, 2022

Explanation

  • What is the current state of things and why does it need to change?
    During dark mode we ERADICATED almost every static hex value in the extension in favour of CSS color design tokens. This enabled color consistency across the extension and theming. The few static hex values that were left included network colors.
  • What is the solution your changes offer and how does it work?
    This PR updates those static hex values with the equivalent design tokens.

Screenshots/Screencaps

There should be no visual change so we are checking that both colors remain the same!

Before

network.color.light.before.mov
network.color.dark.before.mov

After

network.color.dark.after.mov
network.color.light.after.mov

Manual Testing Steps

  • Check out the branch of this PR
  • Do this

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@github-actions
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.

--inherit: inherit;
--transparent: transparent;

// DO NOT CHANGE
// Required for the QR reader to work properly
--qr-code-white-background: #fff;
Copy link
Contributor Author

@georgewrmarshall georgewrmarshall Nov 16, 2022

Choose a reason for hiding this comment

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

Not used anywhere else in the code base. A search after removing resolves in no results

Screen Shot 2022-11-16 at 1 12 06 PMScreen Shot 2022-11-16 at 1 12 11 PMScreen Shot 2022-11-16 at 1 12 15 PMScreen Shot 2022-11-16 at 1 12 20 PM

@@ -46,7 +46,7 @@
}

button {
background-color: var(--flask-purple) !important;
background-color: var(--color-flask-default) !important;
border: 0 !important;
color: var(--color-primary-inverse); //@TODO: We don't have a generic inverse color, using this one for now
width: 200px;
Copy link
Contributor Author

@georgewrmarshall georgewrmarshall Nov 16, 2022

Choose a reason for hiding this comment

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

NO VISUAL CHANGES - Gosh it feels good to tick off a long lasting "to do" 😁

Before

Screen Shot 2022-11-16 at 3 28 07 PM

After

Screen Shot 2022-11-16 at 3 26 18 PM

@georgewrmarshall georgewrmarshall marked this pull request as ready for review November 16, 2022 21:30
@georgewrmarshall georgewrmarshall requested a review from a team as a code owner November 16, 2022 21:30
@georgewrmarshall georgewrmarshall self-assigned this Nov 16, 2022
@georgewrmarshall georgewrmarshall added area-UI Relating to the user interface. team-design-system All issues relating to design system in Extension labels Nov 16, 2022
@metamaskbot
Copy link
Collaborator

Builds ready [43cdd88]
Page Load Metrics (2403 ± 126 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint912112232432208
domContentLoaded172729082391258124
load172729382403262126
domInteractive172729082391258124
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

highlights:

storybook

@georgewrmarshall georgewrmarshall merged commit 4c809a3 into develop Nov 17, 2022
@georgewrmarshall georgewrmarshall deleted the update/network-colors branch November 17, 2022 23:30
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-UI Relating to the user interface. team-design-system All issues relating to design system in Extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants