-
Notifications
You must be signed in to change notification settings - Fork 5k
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
chore: removing more unused css #30217
Conversation
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. |
@@ -1859,7 +1859,7 @@ export const networkList = [ | |||
{ | |||
blockExplorerUrl: 'https://etherscan.io', | |||
chainId: '0x1', | |||
iconColor: 'var(--mainnet)', | |||
iconColor: 'var(--color-primary-default)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating storybook test data not used in prod
/* | ||
This error class is used in the following files still: | ||
/ui/pages/create-account/import-account/json.js | ||
/ui/pages/create-account/import-account/private-key.js | ||
*/ | ||
.error { | ||
color: var(--color-error-default); | ||
margin-top: 3px; | ||
margin-bottom: 9px; | ||
overflow-wrap: anywhere; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error
className is not used. I checked both json.js and private-key.js. Additionally, using the regex
className=["'{`][^"'`}]*error[^"'`}]*["'}`]
to search for instances of error
in a className prop returned no exact matches.
@@ -32,7 +32,6 @@ $color-map: ( | |||
'info-default': --color-info-default, | |||
'info-muted': --color-info-muted, | |||
'info-inverse': --color-info-inverse, | |||
'mainnet': --mainnet, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer used
@@ -25,7 +25,6 @@ | |||
overtime. | |||
*/ | |||
@import './itcss/settings/index'; | |||
@import './itcss/tools/index'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing deleted file import
@@ -1 +0,0 @@ | |||
@import './utilities'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing deleted file import
.flex-column { | ||
display: flex; | ||
flex-direction: column; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.flex-row { | ||
display: flex; | ||
flex-direction: row; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.pointer { | ||
cursor: pointer; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.cursor-pointer { | ||
cursor: pointer; | ||
transform-origin: center center; | ||
transition: transform 50ms ease-in-out; | ||
} | ||
|
||
.cursor-pointer:hover { | ||
transform: scale(1.05); | ||
} | ||
|
||
.cursor-pointer:active { | ||
transform: scale(0.97); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.drop-menu-item { | ||
display: flex; | ||
align-items: center; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Accents | ||
// Everything below this line is part of the new color system | ||
--mainnet: #29b6af; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -36,7 +36,6 @@ export enum Color { | |||
infoDefault = 'info-default', | |||
infoMuted = 'info-muted', | |||
infoInverse = 'info-inverse', | |||
mainnet = 'mainnet', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Builds ready [4e990a5]
Page Load Metrics (1648 ± 51 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Description
This PR removes unused and deprecated CSS from the extension codebase, including:
.error
class stylingitcss/tools/index
--mainnet
)These changes help reduce technical debt and simplify our CSS architecture by removing legacy code that is no longer in use.
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/4172
Manual testing steps
.error
class)Screenshots/Recordings
Screenshots of unused classnames in code comments
Pre-merge author checklist
Pre-merge reviewer checklist