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

Support non base64 data:image/svg+xml icons. #534

Merged
merged 5 commits into from
Oct 17, 2023

Conversation

raplemie
Copy link
Contributor

@raplemie raplemie commented Oct 13, 2023

Changes

Update IconWebComponent to also support svg data uri that are not base64 encoded, this is what the default esbuild dataurl is exporting. We are still doing the same sanitization we used to do for base64 data.

Testing

  • Updated base64 test to validate that the SVG is actually rendered
  • Added a similar test for a "raw" svg

Issue

resolves #421
helps for #521

@raplemie raplemie requested a review from a team as a code owner October 13, 2023 18:17
@raplemie raplemie enabled auto-merge (squash) October 13, 2023 18:17
@raplemie raplemie added the patch Changes in this PR requires a patch release label Oct 13, 2023
@raplemie raplemie merged commit 07d13e9 into master Oct 17, 2023
18 checks passed
@raplemie raplemie deleted the raplemie/nonBase64dataIcon branch October 17, 2023 13:48
@raplemie
Copy link
Contributor Author

@Mergifyio backport release/4.6.x

@mergify
Copy link
Contributor

mergify bot commented Oct 17, 2023

backport release/4.6.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Oct 17, 2023
raplemie added a commit that referenced this pull request Oct 17, 2023
(cherry picked from commit 07d13e9)

Co-authored-by: Raphaël LEMIEUX <1904889+raplemie@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Changes in this PR requires a patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to load SVG file if IconSpec created using IconSpecUtilities.createWebComponentIconSpec
2 participants