Questions tagged [svg]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
24 views

What file format should I use for icons in mobile?

We have icon files in 2 formats: png and svg. We are developing lwc components which will be used in a mobile app published via Mobile Publisher. What icon file type will be preferable for this use ...
1
vote
0answers
34 views

Proper way to mock svg html template in Jest?

I want to create lwc component which selectively renders svg from html template files. I wonder how to mock that templates for the needs of JEST test. Import the same templates for component and test ...
0
votes
1answer
40 views

Not able to load svg images in LWC

I have loaded svg in static resource in salesforce and need to use the same in lwc.We were using <lightning-icon> to render it.This was working previously but now it throws the following error. ...
0
votes
2answers
20 views

Store Notes and Attachment as a Attachment

I have Added Notes & Attachment in Related List , So when I upload any svg image , It get stored as a file instead of Attachment . So How can we store that image in Attachment instead of ...
2
votes
0answers
88 views

SVG file type in Marketing Cloud

Has Marketing Cloud stopped support for SVG files? We need to migrate content from an old MC tenant to a new one, including some SVG files. On the old tenant, the SVG files come with a URL from where ...
1
vote
0answers
33 views

Importing SVG from static resources

I have tried to import a custom SVG into my aura component using an LWC helper component as described in the docs. But the final output of the component is something like <use xlink:href="#...
0
votes
1answer
176 views

LWC Display custom SVG from static resource (IE)

I have a simple component for SVG similar to the documented one. It works well using Chrome, FF, Edge, but not in the IE11. Is there any fix or workaround for this that we can display our custom SVG ...
0
votes
0answers
38 views

Replace default Lightning Table Sort Icons with Custom Icons

We have a table this is referencing the default lightning sort icons and need to replace all three(up, down, both) with different svg images from static resources. The current code references ...
0
votes
0answers
46 views

LDS Multiselect picklist

I am trying to use the following code from the Lightning Design System documentation. I am getting SVG errors. Can someone tell me how to resolve this? Can I use something other than the svg code?
1
vote
1answer
285 views

How to use Illustration from LDS in a Aura Web Component?

I am having a difficult time trying to figure out how to use an illustration inside my Aura Web Component. I copied all of the data between the svg tags for the following: https://www....
0
votes
1answer
61 views

How can I replace svg from my code?

let's say I have following code (from standart lightning table example markup) <div class="slds-icon_container"> <svg aria-hidden="true" class="slds-icon slds-icon--x-small slds-...
4
votes
2answers
1k views

Dynamic Icon loading in LWC doesn't work

I am using the progress-ring LWC component from https://github.com/texei/progress-ring and fail to make the SLDS SVG Icon displayed dynamic work: Usage: <c-progress-ring ... icon="symbols.svg#...
2
votes
1answer
1k views

lightning:icon pointing to SVG static resource has empty shadow root

An working SVG icon stored in a public static resource myicon_svg <?xml version="1.0"?><svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><g id="...
0
votes
1answer
2k views

No COMPONENT named markup://svg found [duplicate]

After downloading the SLDS I have copied a detail form from the lightning design system to the salesforce console. But when I save there is a popup saying "No COMPONENT named markup://svg found". I ...
0
votes
1answer
371 views

Access svg icon from static resource zip file

I have added zip file of lightning design system which contains fonts,icon,images,style folders. in this svg icons are in icons/utility-sprite/svg folder, i have set the path but it;s not reflecting ...
1
vote
0answers
162 views

SVG API incomplete in LWC/Locker

I want to create a custom component that wraps the yFiles for HTML graph drawing component in an LWC component, but it seems some of the SVG API is not implemented or rather hidden behind the locker ...
0
votes
2answers
2k views

Search Icon Button in Lightning [duplicate]

I need a search icon button icon in my compoonent. I have got the code as well. Below is the link from where i have referred the code. https://www.lightningdesignsystem.com/components/button-icons/ ...
4
votes
2answers
660 views

How to create an SLDS Illustration lightning component with svg

I am trying to create a lightning component that will show an SLDS illustration of missing data: when I create my component with the <svg> tag I cannot save the component markup: <...