Skip to content

Commit

Permalink
Merge forwardport of #12862 to 2.3-develop branch
Browse files Browse the repository at this point in the history
Applied pull request patch https://github.com/magento/magento2/pull/12862.patch (created by @jonshipman) based on commit(s):
  1. 862e74a
  2. 7c02acb
  • Loading branch information
magento-engcom-team authored Jan 24, 2018
2 parents 4537e78 + c80b5ca commit 0bad56f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/code/Magento/Theme/Block/Html/Topmenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,13 @@ protected function _getHtml(

if ($childLevel == 0 && $outermostClass) {
$outermostClassCode = ' class="' . $outermostClass . '" ';
$child->setClass($outermostClass);
$currentClass = $child->getClass();

if (empty($currentClass)) {
$child->setClass($outermostClass);
} else {
$child->setClass($currentClass . ' ' . $outermostClass);
}
}

if (count($colBrakes) && $colBrakes[$counter]['colbrake']) {
Expand Down

0 comments on commit 0bad56f

Please sign in to comment.