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

Add an explicit width to SVGs not rendering in Firefox #78

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

qasimwarraich
Copy link
Member

@qasimwarraich qasimwarraich commented Jun 28, 2024

It turns out Firefox expects SVGs to have a width, I believe height only is also sufficient. I just added a height similar to the one in the Azure logo. Scaling is not affected, but that is a bit inconsistent for some of the images anyway, I will investigate that in a separate PR.

@qasimwarraich qasimwarraich changed the title Add an explicit width to svgs not rendering in firefox Add an explicit width to SVGs not rendering in firefox Jun 28, 2024
@qasimwarraich qasimwarraich force-pushed the fix/some-svgs-dont-register-in-firefox branch from 1ffaebc to 4c0b36d Compare June 28, 2024 16:08
@qasimwarraich qasimwarraich changed the title Add an explicit width to SVGs not rendering in firefox Add an explicit width to SVGs not rendering in Firefox Jun 28, 2024
@qasimwarraich qasimwarraich force-pushed the fix/some-svgs-dont-register-in-firefox branch from 4c0b36d to c614a3a Compare June 28, 2024 16:09
@qasimwarraich qasimwarraich self-assigned this Jun 28, 2024
@qasimwarraich qasimwarraich added the bug Something isn't working label Jun 28, 2024
@cloudlena
Copy link
Member

cloudlena commented Jun 30, 2024

Awesome. Thanks, @qasimwarraich! Please quickly run SVGO (e.g., by running npx svgo@latest **/*.svg in the root of the project) to unify how the SVGs are structured.

@cloudlena cloudlena force-pushed the main branch 2 times, most recently from f199525 to bee3744 Compare July 2, 2024 07:34
@qasimwarraich qasimwarraich force-pushed the fix/some-svgs-dont-register-in-firefox branch from 144cd93 to d522c7f Compare July 3, 2024 15:15
@qasimwarraich
Copy link
Member Author

Awesome. Thanks, @qasimwarraich! Please quickly run SVGO (e.g., by running npx svgo@latest **/*.svg in the root of the project) to unify how the SVGs are structured.

Done :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants