The ui_template node will likely strip off any style attributes it sees because that's just what Angular likes to do. This is why the <font> tag is commonly used rather than <span>.
So the fixed html will be:
<font color="black"><i class="fa fa-barcode fa-2x"></i></font><font size=5 color="blue">Scan</font>