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

fix(gatsby): leave xmlns element when optimizing SVGs #32123

Merged
merged 1 commit into from Jun 28, 2021

Conversation

browniebroke
Copy link
Contributor

@browniebroke browniebroke commented Jun 25, 2021

Description

Fix SVGs in CSS files by implementing solution described by @nakedible-p in the issue descussion.

Documentation

This is a small code fix, I don't think we need to update any documentation.

Related Issues

Fixes #31878
Fixes #31876
Fixes #32058
Related to #31620

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jun 25, 2021
@browniebroke browniebroke marked this pull request as ready for review June 25, 2021 16:44
@LekoArts LekoArts added topic: webpack/babel Webpack or babel and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jun 28, 2021
@LekoArts LekoArts changed the title fix: leave xmlns element when optimizing SVGs fix(gatsby): leave xmlns element when optimizing SVGs Jun 28, 2021
Copy link
Contributor

@LekoArts LekoArts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! In their default config it's also disabled https://github.com/svg/svgo#built-in-plugins

@LekoArts LekoArts merged commit 27c01fc into gatsbyjs:master Jun 28, 2021
@LekoArts LekoArts added this to To cherry-pick in V3 Release Hotfixes via automation Jun 28, 2021
@browniebroke browniebroke deleted the fix/issue-31878 branch June 28, 2021 08:44
@LekoArts
Copy link
Contributor

Published in gatsby@3.9.0-next.1

LekoArts pushed a commit that referenced this pull request Jun 29, 2021
@LekoArts LekoArts moved this from To cherry-pick to Backport PR opened in V3 Release Hotfixes Jun 29, 2021
sdorra added a commit to scm-manager/website that referenced this pull request Jun 29, 2021
Add a patch for gatsby 3.8 which fixes broken svg background images.
See gatsbyjs/gatsby#32123 for more details.
LekoArts pushed a commit that referenced this pull request Jun 29, 2021
)

(cherry picked from commit 27c01fc)

Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
@LekoArts LekoArts moved this from Backport PR opened to Backported in V3 Release Hotfixes Jun 29, 2021
@LekoArts
Copy link
Contributor

Published in gatsby@3.8.1

@LekoArts LekoArts moved this from Backported to Published in V3 Release Hotfixes Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: webpack/babel Webpack or babel
Projects
No open projects
2 participants