Fixed Second style variation causes icon to be removed

Russ

Well-known member
Affected version
2.3.5
You guys made some fixes to having a second variation menu:

While those issues are fixed, it appers with the updated version the icon is completely removed from the source code when switching.

1738702559943.webp

1738702597415.webp


I think I could probably work up a CSS solution but this seems like a bug.

You can test using this code:

Code:
                        <xf:if is="$xf.visitor.canChangeStyleVariation($xf.style)">
                            <a href="{{ link('misc/style-variation') }}" rel="nofollow"
                               class="p-navgroup-link js-styleVariationsLink"
                               data-xf-init="tooltip" title="{{ phrase('style_variation') }}"
                               data-xf-click="menu" data-z-index-ref=".u-bottomFixer" role="button" aria-expanded="false" aria-haspopup="true">

                                <xf:fa icon="{{ $xf.style.getVariationIcon($xf.visitor.style_variation) }}" title="{{ phrase('style_variation') }}" />
                            </a>
                            <div class="menu" data-menu="menu" aria-hidden="true">
                                <div class="menu-content js-styleVariationsMenu">
                                    <xf:macro name="style_variation_macros::variation_menu"
                                              arg-style="{$xf.style}"
                                              arg-live="{{ true }}" />
                                </div>
                            </div>
                        </xf:if>
Add right below:

Code:
<div class="p-navgroup p-discovery{{ !$xf.visitor.canSearch() ? ' p-discovery--noSearch' : '' }}">
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.6).

Change log:
Fix an issue with updating multiple variation menu icons
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom