I have created a Forge app using the Jira project page module. In the manifest I can define an icon.
modules:
jira:projectPage:
- key: ...
icon: resource:main;sidebar_icon.svg
But depending on the light or dark theme the user is using, the color of this SVG icon should be changed.
I use currentColor
in the SVG. But the color is set to black independent of light or dark theme, while the Jira icons are switching their color. See screenshots below with icon from Jira (“Project”) and my own icon (“Manage”)
<path ... style="stroke:currentColor;..."/>
What do I need to do in order to have support for themes in the icon? Is there a CSS class to apply to the SVG maybe? Or use a defined color in the SVG?