ember-fontawesome
ember-fontawesome copied to clipboard
Feature request: searchPseudoElements
I spend some time trying to use pseudo-element syntax for FA5, something like this from the official FA5 documentation. I did not find any solution, except for adding manually fontawesome/all.js script to my app/public folder and calling it from index.html:
<script data-search-pseudo-elements defer src="{{rootURL}}all.js"></script>
Are there any plans for enabling the feature, e.g. by conifg option searchPseudoElements?
@huberts can you expand on why this would be needed? What it unlocks compared to the existing <FaIcon>
syntax?
I have the component that allows me to dynamically render HTML table. I can customize table row <tr>
with a specific CSS class, individually per row. In this way, I can change background or font for the whole row, just by defining the class. And, using the old FA4, I could even attach icons to specific <td>
s, using pseudo-elements in CSS.
I read your comment 5 days ago and was trying to do it another way, with existing API. Now, I managed to overcome the problem by customizing component rendering the <td>
element and putting the <FaIcon>
in there.
So, maybe my request for the feature was too premature :-)