Here's what I have:
<a class="button">
<i class="fa fa-times" />Some button label
</a>
where the <i class="fa fa-times" /> is a Font Awesome icon.
This renders with the icon right next to the text, without any space between them.
I was just adding a margin-right to the i.fa elements, but now I'm in a position where I need to add a button without any text, and the icon is off-center.
I considered i.fa + span to apply a margin-left to the text, but that would require me wrapping the text in a span (and there are a fair number of them sprinkled throughout my code).
I'm doing this in React components and I'd prefer to just update my stylesheets to handle this. If there's no CSS solution, then I'm going to write a Button component to handle it.
Is there a selector which would allow me to select only those i.fa which have text adjacent to them, so I can apply a margin-right and space them out a bit?