Skip to content
Snippets Groups Projects
Commit 51036227 authored by Ievgen Shakhsuvarov's avatar Ievgen Shakhsuvarov Committed by GitHub
Browse files

MAGETWO-86310: Change _getHtml to append class rather than overwrite for children #12862

parents 816ec39b 9ff216de
No related merge requests found
......@@ -235,7 +235,13 @@ class Topmenu extends Template implements IdentityInterface
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']) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment