Closed
Description
When one or more parents in the top menu are inactive the 'last' class is not being set on the last item.
Preconditions
- Magento 2.2
Steps to reproduce
- Do a clean install of Magento 2.2 with sample data
- Set a level 1 category (e.g. Gear or Gift Cards) inactive
- Inspect the menu and see there is no class 'last' on the last active topmenu item
Expected result
- The last menu item should have the class last
Actual result
- The last menu item does not have the class last
Tech hints
- class
Magento\Theme\Block\Html\Topmenu
- method
_getHtml
- this part is not always being triggered correctly:
$child->setIsLast($counter == $childrenCount);
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.3 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release