tailwindlabs / heroicons

A set of free MIT-licensed high-quality SVG icons for UI development.
https://heroicons.com
MIT License
21.03k stars 1.27k forks source link

Share Icon #938

Closed nico-heinrich closed 1 year ago

nico-heinrich commented 1 year ago

Dear heros,

first of all, I love and use your icons — thanks for creating and sharing them!

Now, I use your share icon in my app and I felt the need to move it .1rem to the left. Is there a reason why it is so off to the right?

Cheers,

Nico

zefir-git commented 1 year ago

It looks well aligned to me.

image

reinink commented 1 year ago

@nico-heinrich Hey! Glad you're enjoying Heroicons! 🤙

I just took a look at this icon, and it appears to be centered properly in all three versions:

image

Here's what it looks like in Figma:

image

So I suspect this must just be something to do with your particular implementation.

Hope that helps!

nico-heinrich commented 1 year ago

Thanks for the kind response!

image

You are right, the fact that I use it with fully rounded corners makes it look off. While the share icon is centered perfectly, it doesn't look centered because it is way "heavier" on the right. I now simply use a transform on the icon in this case.

Cheers,

Nico

zefir-git commented 1 year ago

Thanks for the kind response!

image

You are right, the fact that I use it with fully rounded corners makes it look off. While the share icon is centered perfectly, it doesn't look centered because it is way "heavier" on the right. I now simply use a transform on the icon in this case.

Cheers,

Nico

adding more padding and/or using a smaller icon can also reduce this effect/illusion when using a circle