-
Notifications
You must be signed in to change notification settings - Fork 90
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
feat(NcIconSvgWrapper): allow to render raw svg paths #4643
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, less overhead ✨
I think you need to add @mdi/js
as a dependency.
Did not meant to approve, should be a comment
Signed-off-by: Raimund Schlüßler <[email protected]>
a56fd10
to
f597e50
Compare
Yeah, you were a bit to fast to review, I wasn't done yet 🙈 🙂 I also had to set the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we reduce duplication by putting the identical props in a computed property then v-bind them ?
Signed-off-by: Raimund Schlüßler <[email protected]>
Sure, why not. I adjusted it. |
☑️ Resolves
This allows to render raw SVG paths which prevents the overhead of having to sanitize the SVG icon for use in
v-html
.