-
-
Notifications
You must be signed in to change notification settings - Fork 578
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
Icons become unusable in safari due to stroke not scaling #2683
Comments
Looks very much like a Safari bug. As an atrocious workaround, you could set a font size on the SVG element, and then specify the stroke in .lucide {
font-size: 2px;
stroke-width: 1em;
} I wouldn't exactly call this solution robust. It exploits another scaling bug in Safari's SVG renderer, in which items do not scale up when they should. In order for it to work, you can't specify the width and height of your SVG in |
Package
Version
0.465.0
Can you reproduce this in the latest version?
Browser
Operating system
Description
When using the browser zoom in Safari with Lucide icons, the stroke width doesn't appear to scale with the size of the icon, which makes things appear incredibly distorted. This is happening both with my implementation of Lucide icons, as well as with your main site. https://lucide.dev/icons/
Steps to reproduce
Checklist
The text was updated successfully, but these errors were encountered: