I thought we chewed SVG to death and even showed how to create SVG images for a Minecraft Dynamics deployment but Tom-Richard “Another CRM Viking” Follegg proved me wrong. (Would you like to earn a “George is wrong” sticker? Send your tip to firstname.lastname@example.org!)
By default, when we create modern .SVG files for Dynamics, these should have black fill color to work properly. Dynamics then replaces the fill color if you use it in the menu or entity.
This is not the case if you want to use the same files as a Ribbon button. If the fill color is set to black, the default CSS in the Ribbon in Unified Interface will not change the color of the image. You will end up with a black image in the App Ribbon because the fill value in the .SVG file overwrites the CSS value in Dynamics.
Here is a simple trick for using .SVG files in the Unified Interface App Ribbon that also works in all Apps including that for a phone.
Open the .SVG file in Notepad, and find the fill value of the .SVG
Remove the color value so that you are left with only fill=””
Now the standard CSS in Dynamics will fill the image with correct color in the UI App.
It also renders fine in the Phone App.
(Facebook and Twitter cover photo by Holly Stratton on Unsplash)