-
Notifications
You must be signed in to change notification settings - Fork 433
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: use default viewbox for custom icons #1031
Conversation
Deploying with Cloudflare Pages
|
ESLint Summary View Full Report
Report generated by eslint-plus-action |
The sizes look much more consistent now 👍 A few things I noticed while testing:
|
Thank you for the thorough review. I've ticked all the comments that I've addressed as follows:
The share button is now correct and bookmark icon is
I've centralised the
This now renders correctly:
This is now our custom icon (not MUI's) and the correct colour:
The The following seems to be an inconsistency in the design as all other buttons of a similar action also use
|
The Tooltip is not being displayed anymore when hovering the info icon next to Safe Nonce in Settings. The icon colors in dark mode are not #A1A3A7 but rgb(99, 102, 105). It looks like some default fallback of MUI The new Send/Receive Icons appear a bit larger than other icons. In Figma they are 10px instead of 16px like the rest. We might be able to solve it by scaling them down while still keeping the same viewbox. This would have to be done before exporting though cc @liliiaorlenko |
This is now fixed:
They appear larger but they are all the same: |
You are right, most icons I can find in Figma have #636669 but there are some with #A1A3A7 and even #B2B5B2 in dark mode. @liliiaorlenko could you clarify which color to go with for all icons or if there is a system behind the different colors?
What I mean is that the send and receive Icons should be smaller than the other icons. In Figma they are 10x10px instead of 16x16px like the rest of the icons. In order not to implement these exceptions on our side I suggest we export them scaled down to 10x10 but with the same viewbox of 24x24. |
So we have to exclude colour #636669, and only use #A1A3A7 in light mode. In dark mode #636669. |
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.
💯 🚀
I'm going to merge this directly as it is purely image-based. |
What it solves
Resolves #1025
How this PR fixes it
All custom SVG icons are now
width="24" height="24" viewBox="0 0 24 24"
by default andfontSize="small"
sets them to16x16
.Two notable fixes include the rocket icon for execution and (un-)pinning Safe Apps icons.
How to test it
Open the Safe and observe all icons are correctly sized when compared to Figma.