I just wanted to raise the issue of whether it would be a good idea to add a feature where we could be able to add gradients to SVG icons. I have been looking for so many different solutions online and have not been able to find a possible solution and am still searching. I’m talking about the SVG icons with teh tags.
If you want to add your icons from the components panel,
you can traverse the DOM and find all SVG elements with the specified data attributes
on the icon component add this attributes data-gradient , data-stop1color="#d23939" and data-stop2color="hsl(60, 100%, 50%)"
Here are examples of valid color inputs for the stop1Color and stop2Color attributes
I created a new JS file and copied the JS code above into that file, then I copied the attributes above and added them to the icon component but still there are no changes to the icon color. I was hoping that there could be a more simpler solution. But thanks for your input @kuligaposten. I appreciate it.