-
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
fix: remove halo for tokens #26016
fix: remove halo for tokens #26016
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. |
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.
PR Summary
This PR removes the halo effect around token avatars to improve legibility and visual consistency across different components.
ui/components/app/import-token/token-list/token-list.component.js
: RemovedshowHalo
prop fromAvatarToken
.ui/components/multichain/asset-picker-amount/asset-picker/asset-picker.tsx
: DeletedshowHalo
prop fromAvatarToken
.ui/components/multichain/token-list-item/token-list-item.js
: EliminatedshowHalo
prop fromAvatarToken
.
These changes ensure a more polished and consistent user experience.
3 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings
@@ -108,7 +108,6 @@ export default class TokenList extends Component { | |||
<AvatarToken |
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.
Info: Removed the showHalo
prop from AvatarToken
to eliminate the halo effect around token avatars.
borderRadius={isNFT ? BorderRadius.LG : BorderRadius.full} | ||
src={primaryTokenImage} | ||
size={AvatarTokenSize.Md} | ||
showHalo={!isNFT} | ||
name={symbol} | ||
{...(isNFT && { backgroundColor: BackgroundColor.transparent })} |
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.
Info: Removed showHalo
prop from AvatarToken
to eliminate the halo effect.
@@ -224,7 +224,6 @@ export const TokenListItem = ({ | |||
<AvatarToken |
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.
Info: Removed showHalo
prop from AvatarToken
to improve visual consistency.
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.
PR Summary
(updates since last review)
No major changes found since last review.
No file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
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.
PR Summary
(updates since last review)
This PR removes the halo effect from token avatars in the main token list, import token modal, and asset picker for a more polished look.
- Removed halo-related CSS classes from
/ui/components/component-library/avatar-token/avatar-token.scss
. - Updated
AvatarToken
component in/ui/components/component-library/avatar-token/avatar-token.tsx
to exclude halo logic. - Modified
ImportToken
component in/ui/pages/swaps/import-token/import-token.js
to reflect the updatedAvatarToken
component without the halo.
No file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
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.
PR Summary
(updates since last review)
This PR removes the halo effect from token avatars in the main token list, import token modal, and asset picker for a more polished look.
- Removed halo-related CSS classes from
/ui/components/component-library/avatar-token/avatar-token.scss
. - Updated
AvatarToken
component in/ui/components/component-library/avatar-token/avatar-token.tsx
to exclude halo logic. - Modified
ImportToken
component in/ui/pages/swaps/import-token/import-token.js
to reflect the updatedAvatarToken
component without the halo. - Adjusted
ImportTokensModalConfirm
in/ui/components/multichain/import-tokens-modal/import-tokens-modal-confirm.js
to remove halo from token avatars. - Updated
TokenDetailsPage
in/ui/pages/token-details/token-details-page.js
to ensure consistency in token avatar display.
No file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
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.
PR Summary
(updates since last review)
This PR removes the halo effect from token avatars in the main token list, import token modal, and asset picker for a more polished look.
- Removed halo-related CSS classes from
/ui/components/component-library/avatar-token/avatar-token.scss
. - Updated
AvatarToken
component in/ui/components/component-library/avatar-token/avatar-token.tsx
to exclude halo logic. - Modified
ImportToken
component in/ui/pages/swaps/import-token/import-token.js
to reflect the updatedAvatarToken
component without the halo. - Adjusted
ImportTokensModalConfirm
in/ui/components/multichain/import-tokens-modal/import-tokens-modal-confirm.js
to remove halo from token avatars. - Updated
TokenDetailsPage
in/ui/pages/token-details/token-details-page.js
to ensure consistency in token avatar display.
No file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
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.
PR Summary
(updates since last review)
This PR removes the halo effect from token avatars in the main token list, import token modal, and asset picker for a more polished look.
- Removed halo-related CSS classes from
/ui/components/component-library/avatar-token/avatar-token.scss
. - Updated
AvatarToken
component in/ui/components/component-library/avatar-token/avatar-token.tsx
to exclude halo logic. - Modified
ImportToken
component in/ui/pages/swaps/import-token/import-token.js
to reflect the updatedAvatarToken
component without the halo. - Adjusted
ImportTokensModalConfirm
in/ui/components/multichain/import-tokens-modal/import-tokens-modal-confirm.js
to remove halo from token avatars. - Updated
TokenDetailsPage
in/ui/pages/token-details/token-details-page.js
to ensure consistency in token avatar display.
No file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
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.
PR Summary
(updates since last review)
This PR removes the halo effect from token avatars in the main token list, import token modal, and asset picker for a more polished look.
- Removed halo-related CSS classes from
/ui/components/component-library/avatar-token/avatar-token.scss
. - Updated
AvatarToken
component in/ui/components/component-library/avatar-token/avatar-token.tsx
to exclude halo logic. - Modified
ImportToken
component in/ui/pages/swaps/import-token/import-token.js
to reflect the updatedAvatarToken
component without the halo. - Adjusted
ImportTokensModalConfirm
in/ui/components/multichain/import-tokens-modal/import-tokens-modal-confirm.js
to remove halo from token avatars. - Updated
TokenDetailsPage
in/ui/pages/token-details/token-details-page.js
to ensure consistency in token avatar display.
No file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
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.
Looking good! I did a search for showHalo
and found one instance that hasn't been removed. I'm guessing import-tokens-modal-confirm
should be updated too?
metamask-extension/ui/components/multichain/import-tokens-modal/import-tokens-modal-confirm.js
Line 69 in ff2d638
<AvatarToken name={symbol} src={tokenImage} showHalo /> |
Checked showHalo
removed for following components in storybook
ui/components/app/import-token/token-list/token-list.component.js
✅ui/components/multichain/asset-picker-amount/asset-picker-amount.tsx
forAssetPicker
component ✅ui/components/multichain/token-list-item/token-list-item.js
✅
ui/components/multichain/asset-picker-amount/asset-picker/asset-picker.tsx
Show resolved
Hide resolved
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.
PR Summary
(updates since last review)
This PR removes the halo effect from token avatars in the main token list, import token modal, and asset picker for a more polished look.
- Removed
showHalo
prop fromAvatarToken
inui/components/multichain/import-tokens-modal/import-tokens-modal-confirm.js
. - Updated
AvatarToken
component inui/components/component-library/avatar-token/avatar-token.tsx
to exclude halo logic. - Removed halo-related CSS classes from
ui/components/component-library/avatar-token/avatar-token.scss
. - Modified
ImportToken
component inui/pages/swaps/import-token/import-token.js
to reflect the updatedAvatarToken
component without the halo.
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
Quality Gate passedIssues Measures |
Builds ready [427efd3]
Page Load Metrics (142 ± 148 ms)
Bundle size diffs
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #26016 +/- ##
========================================
Coverage 69.69% 69.69%
========================================
Files 1405 1405
Lines 49723 49723
Branches 13740 13740
========================================
Hits 34650 34650
Misses 15073 15073 ☔ View full report in Codecov by Sentry. |
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.
PR Summary
(updates since last review)
This PR removes the halo effect from token avatars in the main token list, import token modal, and asset picker for a more polished look.
- Removed
showHalo
prop fromAvatarToken
inui/components/multichain/import-tokens-modal/import-tokens-modal-confirm.js
. - Updated
AvatarToken
component inui/components/component-library/avatar-token/avatar-token.tsx
to exclude halo logic. - Removed halo-related CSS classes from
ui/components/component-library/avatar-token/avatar-token.scss
. - Modified
ImportToken
component inui/pages/swaps/import-token/import-token.js
to reflect the updatedAvatarToken
component without the halo. - Updated
TokenListItem
inui/components/multichain/token-list-item/token-list-item.js
to remove the halo effect from token avatars.
77 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
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.
LGTM!
Description
In the Extension, we display a halo around the token avatar, which differs from Mobile and Portfolio. This smaller avatar size makes the avatar less legible and creates an unpolished feel of the product.
This PR removes the halo for the main token list component, the import token modal and the asset picker
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist