Closed vincepunkrock closed 5 years ago
You're doing nothing wrong. This is a bug currently reported : #1909 and #1834.
@vincepunkrock Pls use png image , it works for me.
@harshdamaniahd You are right it works with a png. However, it would be nice if it would also work with an svg, as stated here: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/basics/configure-extension-icon
Either add the support for svg or correct the documentation. This is currently misleading.
Same issue with svg ... and please vote for UI Fabric icon support for commandSet button on User Voice : https://sharepoint.uservoice.com/forums/329220-sharepoint-dev-platform/suggestions/31781332-allow-to-use-office-ui-fabric-icons-and-other-font
Done ..voted from my end. This will help in maintaining consistency across site.
Yes and we will finally have icons compatible with the color themes but as it is on users voice, it will not be before ~3 years :smiling_imp:
@vincepunkrock - I tested an icon as a base 64 encoded image and it works without a prepended internal base url. Please let me know if you are still experiencing this issue, and if so can you send me your solution (grahamc at my microsoft.com account). Thanks!
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within next 7 days of this comment. Thank you for your contributions to SharePoint Developer activities.
@mcmynn83 I ended up using a png instead of an svg. But others are still having problems with svg as I can read up here.
Last time I checked, this worked:
"iconImageUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEU...
and this didn't:
"iconImageUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj...
A clear answer and or solution would be appreciated :)
I can confirm that png works, i have no idea about svg.
Sorry, not sure how I missed that. I just validated a icon that happened to be a png. You are correct, SVG does not work. I will look into a fix. Thanks for your patience.
A fix will rollout near the start of June for this (we don't roll updates during SharePoint conference). Thanks!
Closing this as it is tracked by #1834.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues
When I use a base64-encoded image, a url is somehow always added before the base64 string. For example "https://publiccdn.sharepointonline.com/XXXXXX/sites/app/ClientSideAssets/10171f51-d1aa-4860-a59c-6f47b47d14f1/data:image/svg+xml;base64,..." I put the base64 string in "iconImageUrl" just as explained above. Why does it add the url in front of it? When I go in the browser and remove the added url, it shows correctly. Is there something I still do wrong? Any help would be appreciated!
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.