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 SVGs #53

Merged
merged 4 commits into from
Apr 7, 2021
Merged

Fix SVGs #53

merged 4 commits into from
Apr 7, 2021

Conversation

Chef-Cheems
Copy link
Contributor

This PR fixes:

  1. Cropped SVGs in Safari. The issue was that some SVGs use the same id for clip-path, Safari can't figure out which one is used for which SVG and starts cutting wrong SVGs (cause id is matching).
    Before
    Screenshot 2021-04-06 at 12 43 44
    After
    Screenshot 2021-04-06 at 14 06 02
    Before
    Screenshot 2021-04-06 at 14 03 50
    After
    Screenshot 2021-04-06 at 14 05 56
  2. Linear gradients in SVGs were also broken in a same way - some svgs used same id, which caused the colors to either be completely wrong permanently or flicker on loading.(not only in Safari btw, Chrome also had troubles with it, vids below are from Chrome)
    Before
SVGfuckup.mp4

After

SvgGradientFixed.mp4

Copy link
Contributor

@ChefHutch ChefHutch left a comment

Choose a reason for hiding this comment

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

ty 🥳

Copy link
Contributor

@hachiojidev hachiojidev left a comment

Choose a reason for hiding this comment

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

Good catch. @RabbitDoge @ChefHutch @Chef-Cheems We need to keep this in mind when exporting from Figma.

@hachiojidev hachiojidev merged commit 6eeb5a7 into pancakeswap:master Apr 7, 2021
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.

3 participants