modulz / prototype-feedback

A place for feedback on the new Modulz prototype
7 stars 0 forks source link

SVG vectors appear in canvas but not in preview #29

Closed cdes closed 3 years ago

cdes commented 3 years ago

Describe the bug image SVG vectors appear in canvas but not in preview

To Reproduce Steps to reproduce the behavior:

  1. Copy any SVG vector
  2. Paste in Modulz
  3. Click Preview
  4. See error

Expected behavior The vector should appear.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context

<svg
  xmlns="http://www.w3.org/2000/svg"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  preserveAspectRatio="none"
  color="#1B254A"
  style="boxSizing: border-box;height: 24px;verticalAlign: top;width: 24px;bottom: auto;left: auto;position: absolute;right: 20px;top: 48px;transform: none;"
>
  <path
    d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"
    fill="currentColor"
  />
</svg>
StephenHaney commented 3 years ago

Investigating. Thanks for the thorough repro!

hadihallak commented 3 years ago

Salaam @cdes 👋

This is now fixed and will be part of the next release. Please keep the feedback coming and don't hesitate to reach out if you have any questions or suggestions.

hadihallak commented 3 years ago

The fix for this bug is live. thanks for reporting the issue 🙏

cdes commented 3 years ago

It works, awesome!

image