Answer the question
In order to leave comments, you need to log in
How to properly place and interact with fontawesome icons?
How to correctly place fontawesome icons (so as not to double in the code)?
For example:
<div class="item inline-content gradebook-icon">
<i class="fal fa-award" data-content-url="<%= gradebook_sidebar_path %>" title="Submissions and Grading"></i>
<i class="fas fa-award" data-content-url="<%= gradebook_sidebar_path %>" title="Submissions and Grading"></i>
</div>
<div class="item inline-content conversations-icon">
<i class="fal fa-comments-alt" data-content-url="<%= conversations_path %>" title="Chat"></i>
<i class="fas fa-comments-alt" data-content-url="<%= conversations_path %>" title="Chat"></i>
</div>
<div class="item inline-content comments-icon">
<i class="fal fa-comment-dots" data-content-url="<%= side_bar_comments_path %>" title="Comments"></i>
<i class="fas fa-comment-dots" data-content-url="<%= side_bar_comments_path %>" title="Comments"></i>
</div>
Answer the question
In order to leave comments, you need to log in
I would change the class fal to fas when changing the class of the parent via toggleClass
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question