-
Notifications
You must be signed in to change notification settings - Fork 843
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
Updated and added some icons #1374
Conversation
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! Just some questions to satisfy my own curiosity...
- I think I saw some screenshots in Slack recently, but what's the reason for having the iInCircle and questionInCircle be smaller than other circle-based icons as opposed to setting a different size when you use them? is it because using an 'xs' size, for example, leaves you with a smaller click/hover area?
- I'm sure there is a good reason for it, but what's the case for having both startEmpty and startEmptySpace if they are the same icon (they look the same in the screenshot at least)?
- Similar to the variations for the star icon, should we add the same variations for the pin icon?
Good question. I do think the larger click area is helpful, but I think mainly it's because consumers don't know to resize down these types of icons, so we're just forcing it on them. Though, the
So my thought behind that is if you use them in a toggle button or something where icons switch out, you won't have a moving star. But that also means that the empty space star if off-center so for most use cases you'd want the star centered, which is why I also left the regular one in there. It's really just for a special use-case, but I'd figured to account for it now rather than have jumpy stars. ;)
I had thought about that one too, but just couldn't think of a option for |
I knew you'd have good explanations, thanks for writing them out :) As for the pin, a filled option would be helpful to show the 'on' state. As for the unpin, perhaps we could just rotate it slightly (30deg)? It might look a little odd here, in isolation, but imagine how our current hover state raises the icon... so now it would raise and rotate a little bit to imitate unpinning. |
Haha np. So we don't really have the idea of swapping out icons on hover, so you probably won't see the "rotation" effect. So we could either do a similar idea to the stars and add (+ / -) next to the pin. Or since you mentioned having a filled version, it seems that just clicking the filled version would then "unpin"? |
Yeah, simply adding a filled version of the pin works for me. Thanks! |
Added |
Looks good, thanks for adding it! |
@daveyholler Are you ok with the changes to your icons? |
@cchaos Totally fine with the alterations. 🎉 |
The main goal was initially just to add a few more icons, but I also noticed a few that needed some cleanup. By cleanup I mean, tried to align to the pixel grid as much as possible and if the icon couldn't be completely centered, they should all head towards top left.
Fixes #1287
Here are the before and afters of just the ones that were changed (before on the left). I've highlighted the ones of note.
And unpin
@daveyholler I realized looking at the before/afters that you made the pixel alignment alterations in the file, or just hadn't update them in the Sketch library. All I did to yours was move it til it aligned, but I see that your folders stretched taller to align. Let me know if you want the original, taller ones or you're ok with the altered one.
Checklist
[ ] Any props added have proper autodocs[ ] This was checked for breaking changes and labeled appropriately[ ] This was checked against keyboard-only and screenreader scenarios[ ] This required updates to Framer X components