Storybook - LitHtml svg rendering doesn't seem to work with symbol files
I am currently setting up a storybook project. One aspect of it, is showing the various icons we have as a part of the style guide. I am using svg-sprite to create a JSON file of all the svg's we have (along with the svg symbols sprite) so that I can show all the svg's. For the life of me, I can't figure out why I can't render the svg's without a terrible hack. This is the code: <div class="c-styleguide-icons o-grid-template o-grid-template--small-cells o-grid-gap"> ${ Object.entries(IconSvgs.allSvgs).map(([key, value]) => value.id === "empty" ? html``: html ` <div class="c-card-icon" title="$
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.