Skip to content

Commit c80b5ca

Browse files
⏫ Forwardport of #12862 to 2.3-develop branch
Applied pull request patch https://github.com/magento/magento2/pull/12862.patch (created by @jonshipman) based on commit(s): 1. 862e74a 2. 7c02acb
1 parent 8e77e2f commit c80b5ca

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/code/Magento/Theme/Block/Html/Topmenu.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,13 @@ protected function _getHtml(
235235

236236
if ($childLevel == 0 && $outermostClass) {
237237
$outermostClassCode = ' class="' . $outermostClass . '" ';
238-
$child->setClass($outermostClass);
238+
$currentClass = $child->getClass();
239+
240+
if (empty($currentClass)) {
241+
$child->setClass($outermostClass);
242+
} else {
243+
$child->setClass($currentClass . ' ' . $outermostClass);
244+
}
239245
}
240246

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

0 commit comments

Comments
 (0)