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
Update our left-hand nav icons #9393
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
E2E Tests74 replays were recorded for 3e730d2. 74 Passed
Snapshot Tests100 replays were recorded for 3e730d2. 100 Passed
|
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.
FWIW the “Draft” PR status is good to use in this situation. It lets the reviewer know to hold off until the PR is ready 😄 |
Guess we just have different subjective opinions in that regard. I think the half padding looks broken 🤷🏼 Thanks for explaining your reasoning though |
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 definitely prefer when we agree, but yeah, some things are just subjective.
Me too! 😄 Doesn't always happen though, which is fine.
Seeing it in context, the alignment looks better bc there's space in the row above:
That being said, I think there's something funky going on with the icon's own internal vertical alignment:
Compare it to one of the other icons, which is properly centered (vertically and horizontally):
Where did the SVG paths come from?
Looks like something went wrong during the export/import step then. Looking at the preview branch for this PR– If I copy that icon out: <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="h-full w-full" fill="currentColor"><path d="M12.1879 22.8578C10.8187 22.8578 9.5292 22.5952 8.3195 22.0701C7.11645 21.5517 6.05298 20.8339 5.12908 19.9167C4.21184 18.9928 3.49068 17.9294 2.96559 16.7262C2.44715 15.5165 2.18793 14.2271 2.18793 12.8579C2.18793 11.4886 2.44715 10.2025 2.96559 8.99945C3.49068 7.78974 4.21184 6.72627 5.12908 5.80903C6.04634 4.88514 7.10648 4.16397 8.30954 3.64553C9.51923 3.12044 10.8087 2.85789 12.1779 2.85789C13.5472 2.85789 14.8366 3.12044 16.0463 3.64553C17.256 4.16397 18.3195 4.88514 19.2368 5.80903C20.154 6.72627 20.8751 7.78974 21.4002 8.99945C21.9253 10.2025 22.1879 11.4886 22.1879 12.8579C22.1879 14.2271 21.9253 15.5165 21.4002 16.7262C20.8751 17.9294 20.154 18.9928 19.2368 19.9167C18.3195 20.8339 17.256 21.5517 16.0463 22.0701C14.8433 22.5952 13.5572 22.8578 12.1879 22.8578ZM12.1879 21.5717C13.391 21.5717 14.5177 21.3457 15.5677 20.8937C16.6246 20.4418 17.5519 19.8169 18.3494 19.0194C19.1537 18.2218 19.7784 17.2978 20.2238 16.2476C20.6758 15.1909 20.9018 14.0609 20.9018 12.8579C20.9018 11.6548 20.6758 10.5282 20.2238 9.478C19.7718 8.42118 19.147 7.49397 18.3494 6.69636C17.5519 5.89211 16.6246 5.26732 15.5677 4.82199C14.5177 4.37002 13.3877 4.14403 12.1779 4.14403C10.9749 4.14403 9.84492 4.37002 8.7881 4.82199C7.73792 5.26732 6.81403 5.89211 6.01642 6.69636C5.22547 7.49397 4.604 8.42118 4.15203 9.478C3.7067 10.5282 3.48403 11.6548 3.48403 12.8579C3.48403 14.0609 3.7067 15.1909 4.15203 16.2476C4.604 17.2978 5.22878 18.2218 6.02639 19.0194C6.82399 19.8169 7.74789 20.4418 8.79807 20.8937C9.84824 21.3457 10.9782 21.5717 12.1879 21.5717Z"></path><path d="M13.1374 11.8119C13.1374 11.3183 12.7373 10.9182 12.2437 10.9182C11.7502 10.9182 11.3501 11.3183 11.3501 11.8119V18.0964C11.3501 18.5899 11.7502 18.99 12.2437 18.99C12.7373 18.99 13.1374 18.5899 13.1374 18.0964V11.8119Z"></path><path d="M11.4692 8.75378C11.6819 8.95983 11.9377 9.06286 12.2369 9.06286C12.5426 9.06286 12.7985 8.95983 13.0046 8.75378C13.2173 8.54109 13.3236 8.2852 13.3236 7.9861C13.3236 7.68035 13.2173 7.42113 13.0046 7.20843C12.7985 6.99574 12.5426 6.88939 12.2369 6.88939C11.9377 6.88939 11.6819 6.99574 11.4692 7.20843C11.2565 7.42113 11.1501 7.68035 11.1501 7.9861C11.1501 8.2852 11.2565 8.54109 11.4692 8.75378Z"></path></svg> |
(I should point out that I spent a lot of time measuring and eyeballing, but these shapes have so many optical differences (some are wider, some are taller, etc) that I am absolutely open to feedback about aligning them better. So in the previous comment, I'm saying "it looks ok in Figma!" but also "but maybe something broke in the code, that wouldn't be 100% surprising to me" [edit: I wrote this before noticing the comments above. Thanks for doing a run-through on the icons, my eyes have crossed from working on this so much, I appreciate the fresh eyes and will look into tweaks] |
Yup, that's exactly what happened. Mathematical alignment felt off, so this was fudged for optical alignment |
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'd prefer the style be moved, but this is otherwise ok.
<button | ||
className="icon-with-tooltip-button" | ||
className={styles.iconWithTooltipButton} |
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.
Can you move the style (styles.iconWithTooltipButton
) to the icon, since it is what you're trying to style anyway? The IconWithTooltip
component is only used in on place (Header
) so you should be able to just do it there:
devtools/src/ui/components/Header/Header.tsx
Line 169 in 4ec18e2
const backIcon = <div className="img arrowhead-right" style={{ transform: "rotate(180deg)" }} />; |
Thanks for the review, Brian! We talked about how you're the princess and the pea, and how important that is for us. ❤️ |
Oh gosh! That is a good description 😅 😆 |
I'm having trouble moving the style and I'm trying to handle other things (breakfast, picking up Chris, etc) so I'm going to squash and merge and follow up on the style improvements in a different PR. I want as many eyeballs on the new icons today as possible, especially with us under one roof at the offsite. |
Here's the Linear ticket for a fast-follow, once I eat breakfast: https://linear.app/replay/issue/DES-748/follow-up-on-icon-pr |
Summary
This update standardizes our icons to feel more like a family, plus makes some aesthetic improvements. Before and after: