[listItem]="true" should add 'fa-li' class to the <fa-icon> component, not the inner SVG
See original GitHub issueComparing adding class=“fa-li” to <fa-icon> or using [listItem]=“true”, the icon becomes misaligned vertically:
<ul class="nav flex-column fa-ul">
<li class="nav-item">
<a class="nav-link" [routerLink]="['/welcome']" routerLinkActive="active">
<fa-icon icon="home" [listItem]="true"></fa-icon>
Welcome
</a>
</li>
<li class="nav-item">
<a class="nav-link" [routerLink]="['/devices']" routerLinkActive="active">
<fa-icon icon="desktop-alt" class="fa-li"></fa-icon>
Devices
</a>
</li>
</ul>
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
CSS not applying on SVG element under font awesome icon
I have a font awesome icon like this on my page <fa-icon class="file-excel-icon" title="Export to Excel" [icon]="['sil', ...
Read more >How to use the @fortawesome/fontawesome-svg-core.config ...
autoAddCss function in @fortawesome/fontawesome-svg-core ... as long as we are on the same page, the component will * not be unmounted and remounted....
Read more >devoto13/angular-fontawesome - npm
This package, under the hood, uses SVG with JS and the @fortawesome/fontawesome-svg-core library. This implementation differs drastically from ...
Read more >Introducing Font Awesome 5 and SVG icons - Discourse Meta
We will shortly merge into master a branch that upgrades Discourse to Font Awesome 5.5.0 (the free version) and switches to using SVG...
Read more >Falcon Sandbox v9.2.1 © Hybrid Analysis
Submit malware for free analysis with Falcon Sandbox and Hybrid Analysis technology. ... Not all malicious and suspicious indicators are displayed.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@devoto13 yeah, there is some special work that has gone into making
fa-ul
andfa-li
work together and “do what you would expect”. I remember Dave and I going back and forth for a few days as we cross-browser tested and really honed those. They are worthwhile to have but not worthwhile to support in theangular-fontawesome
component.It’s not a pattern that we want to rely on @pathurs.