-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Make sure 'last' class is set on top menu #22071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure 'last' class is set on top menu #22071
Conversation
Previously the 'last' class was not set on the last visible top menu item when one of the top level categories was disabled. Also improved: + Split up the _getHtml() method to removed the @SuppressWarnings + Removed unneeded variables (moved the content of the variables to the place where they are actually are being used). + Removed unused $itemPosition variable in _getHtml method + Optimized imports
Hi @arnoudhgz. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@magento-engcom-team give me test instance |
Hi @rogyar. Thank you for your request. I'm working on Magento instance for you |
Hi @rogyar, here is your new Magento instance. |
Hi @rogyar, thank you for the review. |
d0b277d
to
6a986b9
Compare
6a986b9
to
cbedc60
Compare
cbedc60
to
32caa04
Compare
32caa04
to
2a7f5b5
Compare
Hi @arnoudhgz, thank you for your contribution! |
Original PR: #13323 (was accidentally closed)
Description
The counter in the foreach loop was not being calculated correctly. This resolved in the 'last' css class not being set on the output when one or more parent items are not active.
With this PR the items will be filtered first before they are being processed for the html output.
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist