Provide Create LWC SVG context action
Issue #2133
resolved
Hi Scott, pls would you be able to add ‘Lightning Web Components SVG’ context action? We have this thing for aura context, but it is missing for lwc. Right now, I have to create a blank file and properly name it.
Comments (6)
-
repo owner -
reporter We are probably talking about different things.
This svg will be used in the Builder as icon in the component list.
-
repo owner Perfect! Thank you. I'll take care of it shortly.
-
repo owner Committed for inclusion in this week's build, likely for release tomorrow morning.
-
repo owner - changed status to resolved
Delivered in 2.2.2.6.
-
repo owner - removed version
Removing version: Unassigned (automated comment)
- Log in to comment
Hi, Adam. The reason I haven't done this so far--and this is perhaps my own ignorance--is that I thought there wasn't a first-class SVG file type for LWC like there is for Aura. My understanding was that you either created another HTML template or you referenced SVG in a static resource, e.g.:
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/use_svg_in_component
If that's an incorrect assumption, though, can you please provide a pointer to the docs for how SVG files are included in LWC bundles in a more first-class manner? Thanks!