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

Add svelte options tag to fix rendering in Svelte 5 #1060

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

TristanBrotherton
Copy link
Contributor

@TristanBrotherton TristanBrotherton commented Jan 4, 2024

Svelte 5 appears to require the addition of <svelte:options namespace='svg'/> in Icon.svelte in order to render the SVG.

Related issue: #1059


This pull request can be reviewed on GitContext.com

@RobBrazier
Copy link
Owner

RobBrazier commented Jan 4, 2024

thanks for the issue and the PR! much appreciated 😄

Would you be able to run prettier on your changes? linting is failing currently

@TristanBrotherton
Copy link
Contributor Author

Sorry about that, have just pushed it.

@RobBrazier
Copy link
Owner

RobBrazier commented Jan 4, 2024

no worries!
thanks - I'll merge this now but if it's okay I'll create the release in the morning (in 9 hours or so)

did a quick check on the repl as well and thankfully the order of svelte: options doesn't matter (didn't think it would) so hopefully should work in svelte 5 even though I haven't quite managed to get svelte 5 in this project yet

I'll close the issue when it's released too 👍

@RobBrazier RobBrazier merged commit d545e11 into RobBrazier:master Jan 4, 2024
4 checks passed
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.

None yet

2 participants