Skip to content
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

Blurry icons #166

Closed
ghost opened this issue Sep 4, 2023 · 1 comment
Closed

Blurry icons #166

ghost opened this issue Sep 4, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 4, 2023

Hello

I am using the plus icon for a component but looks blurry on my screen sometimes. If, for example, I change the padding of the main container, looks good, but then blurry again, depending on the quantity of pixels for the padding.

Size is set to 15px x 15px

Blurry (container with padding 14px)
image

Non-blurry (container with padding 9x)
image

Is there any way to avoid this inconsistency?

Thank you in advance.

@vladmoroz
Copy link
Collaborator

Hey, make sure there's no sub-pixel positioning going on. Transforms, flex, or grid layouts may introduce that in certain cases.

It looks like you might be trying to center the icon which has a 1px stroke within container with even width, which is going to naturally blur it as it would be subpixel-positioned.

I'll close the issue as this is not something that Radix Icons controls.

@vladmoroz vladmoroz closed this as not planned Won't fix, can't repro, duplicate, stale Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant