Sir meri mammy ki tabiyat kharab hai me hospital jarha ho me

We recently migrated a bunch of our manually created SLDS code to the new lightning component variants and all was good until we checked back in this morning. All of a sudden none of the svg icons are showing in our community when using '. We are using the standard utility icons likeutility:close` for our modal close buttons.

Is anyone aware of a known issue with these that was introduced recently or of a workaround? We could always revert back to our old setup but I am hoping to keep our code moving forward.

Here is an example of a modal close button using this new component:

The above fails to render the svg icon all of a sudden (the button is still there with no icon).


Answered by Gareth Beacham

 If you inspect your browser ,you will notice error like below


This means the salesforce lightning icons are not found for the community builder domain .What I observed is the community builder adds a /s/sfsites to the URL and this is not where the SVG icons are stored.

Hence you are out of luck unless you reach salesforce and they fix it .I did not see anywhere its documented that base components are available for community builder as well .So i would test all these before replacing any working code .

Note the same thing with below components

1.lightning:icon

2.lightning:buttonMenu

So test any base components before adopting and replacing with previous code



Your Answer

Interviews

Parent Categories