-
-
Notifications
You must be signed in to change notification settings - Fork 415
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
SVG icons became black and badly sized and centered after gulp-svgmin update #6706
Comments
Before: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="icon" aria-hidden="true" focusable="false"> After: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"> Maybe a recent update of svgmin. |
Probably due to this update: #6604 |
These instructions seem to no longer work:
|
All the svgo modules seem to now be ignored, even though the syntax looks correct. |
One thing we could do is to add 1 test to check that generated SVGs have a viewbox and don't have width and height. |
Apparently it is a known issue since November 2021: ben-eb/gulp-svgmin#125 Good news: there seem to be workarounds :) |
Describe the bug
On the current main branch (but not in the branch deployed on production), SVG icons are black and badly sized and centered:
To Reproduce
https://world.openfoodfacts.net/
Expected behavior
Icons should have the right color and be correctly sized and centered:
Screenshots
No response
Additional context
No response
Type of device
Browser
Browser version
No response
Number of products impacted
No response
Time per product
No response
The text was updated successfully, but these errors were encountered: