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

Material SVGs render as dark grey squares #537

Open
dost-mmg opened this issue Mar 7, 2024 · 1 comment
Open

Material SVGs render as dark grey squares #537

dost-mmg opened this issue Mar 7, 2024 · 1 comment

Comments

@dost-mmg
Copy link

dost-mmg commented Mar 7, 2024

When downloading Material SVG icons from Google, they are rendered as dark grey squares. I've tried uploading/downloading them from other editors and the issue is not resolved. I've included the Google icon stylesheet, but that has not worked.
Screenshot 2024-03-07 at 6 54 22 AM

@oxguy3
Copy link

oxguy3 commented Apr 14, 2024

I've not seen the squares, but I have seem Google's Material icons fail to render at all. This seems to happen because those icons come with the height and width hardcoded to 24x24. Open the SVG with a text editor and remove the height/width. Change from this:

<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">

to this:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960">

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

2 participants