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-plugin-sharp): fix Traced SVG scaling issue in Internet Explorer #22358

Merged
merged 3 commits into from
Mar 23, 2020
Merged

fix(gatsby-plugin-sharp): fix Traced SVG scaling issue in Internet Explorer #22358

merged 3 commits into from
Mar 23, 2020

Conversation

flogy
Copy link
Contributor

@flogy flogy commented Mar 17, 2020

Description

Fixes the scaling issue of Traced SVG placeholdes as described in issue #22169.

Documentation

No documentation existing. Not worth documenting in my opinion, as it is just a bugfix.

Related Issues

Fixes #22169

@KyleAMathews
Copy link
Contributor

Hi! Great debugging on this! The tests aren't passing on CI (ran them locally and they weren't passing here either).

@KyleAMathews
Copy link
Contributor

Not clear what's wrong—perhaps one of the options.

@pieh pieh self-assigned this Mar 19, 2020
@pieh pieh changed the title Fixed Traced SVG scaling issue in Internet Explorer fix(gatsby-plugin-sharp): fix Traced SVG scaling issue in Internet Explorer Mar 19, 2020
@pieh
Copy link
Contributor

pieh commented Mar 19, 2020

Couple of tests are failing because snapshots were not updated.

The tests that fail for different reason with:

TypeError: Cannot read property 'isElem' of undefined

are all in https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-sharp/src/__tests__/trace-svg.js and they fail because mocked potrace returns empty string, which apparently svgo doesn't handle with proposed configuration (but it handles with default config for some reason).

2 options here:

@pieh
Copy link
Contributor

pieh commented Mar 19, 2020

@floggy let me know if you got this, need a hand or would prefer for me to apply needed changes ;)

@pieh pieh removed their assignment Mar 20, 2020
@flogy
Copy link
Contributor Author

flogy commented Mar 23, 2020

Hi @pieh
Thank you for your analysis! I am currently trying to solve it on gitpod but struggling a bit. Could we maybe have a quick chat on discord? I saw we are in the same time zone ;-)

@pieh
Copy link
Contributor

pieh commented Mar 23, 2020

Could we maybe have a quick chat on discord? I saw we are in the same time zone ;-)

For sure! I'm @pieh at https://gatsby.dev/discord discord server

Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

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

Thanks for research and the fix!

@pieh pieh merged commit 6d4fa76 into gatsbyjs:master Mar 23, 2020
@gatsbot
Copy link

gatsbot bot commented Mar 23, 2020

Holy buckets, @flogy — we just merged your PR to Gatsby! 💪💜

Gatsby is built by awesome people like you. Let us say “thanks” in two ways:

  1. We’d like to send you some Gatsby swag. As a token of our appreciation, you can go to the Gatsby Swag Store and log in with your GitHub account to get a coupon code good for one free piece of swag. We’ve got Gatsby t-shirts, stickers, hats, scrunchies, and much more. (You can also unlock even more free swag with 5 contributions — wink wink nudge nudge.) See gatsby.dev/swag for details.
  2. We just invited you to join the Gatsby organization on GitHub. This will add you to our team of maintainers. Accept the invite by visiting https://github.com/orgs/gatsbyjs/invitation. By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests.

If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’.

Thanks again!

@flogy flogy deleted the flogy/gatsby-plugin-sharp-traced-22169 branch March 23, 2020 15:09
@flogy
Copy link
Contributor Author

flogy commented Mar 23, 2020

Thank you @pieh for your help 🙂

@pieh
Copy link
Contributor

pieh commented Mar 23, 2020

Published in gatsby-plugin-sharp@2.5.2

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

Successfully merging this pull request may close these issues.

[gatsby-plugin-sharp] Traced SVG scaling issue in Internet Explorer
3 participants