There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-6a63ca14-7ddb-48a0-bf7a-d15e980b7fe9 XWIKI-24715 Open

Font Awesome icons are broken when the icon class is set on .btn or a.button elements

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-10f9a71f-234a-441d-b20e-6dd93fb90c96 Thiago Krieck on 19/Aug/26 18:19
 

In all example pages by Font-awesome and Bootstrap the icon is always defined by a child element:

The Font Awesome documentation states:

Don't mix with other components

Icon classes cannot be directly combined with other components. They should not be used along with other classes on the same element. Instead, add a nested <span> and apply the icon classes to the <span>.

and also:

Only for use on empty elements

Icon classes should only be used on elements that contain no text content and have no child elements.

IMO the past behavior was actually a bug.