Skip to content
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

fix $childrenWrapClass never used #8766

Merged
merged 1 commit into from
Mar 17, 2017

Conversation

slackerzz
Copy link
Member

@slackerzz slackerzz commented Mar 2, 2017

in topmenu.phtml there is a call to

$block->getHtml('level-top', 'submenu', $columnsLimit)

from Topmenu.php.
Then after some step we arrive at _addSubMenu() where $childrenWrapClass is supposed to be added to the submenu ul but instead we have an hardcoded class:

$html .= '<ul class="level' . $childLevel . ' submenu">';

So:

$block->getHtml('level-top', 'myCustomClass', $columnsLimit)

will return a menu where submenus have a submenu class instead of myCustomClass

@okorshenko okorshenko self-assigned this Mar 16, 2017
@okorshenko okorshenko added this to the March 2017 milestone Mar 16, 2017
@magento-team magento-team merged commit 72434b1 into magento:develop Mar 17, 2017
@okorshenko
Copy link
Contributor

@slackerzz thank you for your contribution!

@slackerzz slackerzz deleted the fix_topmenu branch March 18, 2017 07:24
magento-devops-reposync-svc pushed a commit that referenced this pull request Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants