On a report, I needed to display a delete icon, that changes colors on hover. Here is how I went about it:
In the report, I set the the Customer ID column to type Plain Text. And added the following code to the HTML Expression:
<span class=”delIcon fa-stack”>
<i class=”fa fa-square-o fa-stack-2x”></i>
<i class=”fa fa-remove fa-stack-1x” style=”line-height: 20px;”></i>
I got the code snippet from the FontAwesome website. It simply stacks two fontawesome icons on top of each other. I added the class dellIcon to the span, so I could control the color and the hover behavior.
The following CSS adds the color and the hover color to the icon: