ember-fontawesome icon indicating copy to clipboard operation
ember-fontawesome copied to clipboard

Feature request: searchPseudoElements

Open huberts opened this issue 5 years ago • 2 comments

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 avatar Jan 23 '20 09:01 huberts

@huberts can you expand on why this would be needed? What it unlocks compared to the existing <FaIcon> syntax?

jrjohnson avatar Jan 23 '20 18:01 jrjohnson

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 :-)

huberts avatar Jan 28 '20 14:01 huberts