- Affected version
- 2.3.0 Beta 2
Prerequisites
Development mode must be disabled
Steps to reproduce
Create an ad for position
Expected result
The ambulance icon is shown when viewing a public page just like it is in XF 2.2
Actual result
The HTML source code for the page contains
but no icon is shown.
Suggested Fix
Document the limitation that only icons that are part of the sprite can be used with
or
Fallback to inline if the requested icon is not part of the sprite (Preferred as this retains XF 2.2 behaviour of always displaying the requested icon)
Development mode must be disabled
Steps to reproduce
Create an ad for position
Container Content: Above
with the following content
Code:
<xf:set var="$icon" value="fa-ambulance" />
<xf:fa icon="{$icon|raw}" />
Expected result
The ambulance icon is shown when viewing a public page just like it is in XF 2.2
Actual result
The HTML source code for the page contains
Code:
<i class="fa--xf far fa-ambulance ">
<svg xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true">
<use href="<data-path>/local/icons/regular.svg?v=<ts>#ambulance"></use>
</svg>
</i>
Suggested Fix
Document the limitation that only icons that are part of the sprite can be used with
<xf:fa>
without explicitly setting option inline
or
Fallback to inline if the requested icon is not part of the sprite (Preferred as this retains XF 2.2 behaviour of always displaying the requested icon)
Last edited: