Skip to content

Commit

Permalink
CSS: Add class no-icon to menu items w/o an icon
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Oct 1, 2015
1 parent 591ccd0 commit 968754e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/Icinga/Web/Navigation/Renderer/NavigationRenderer.php
Expand Up @@ -318,6 +318,11 @@ public function beginItemMarkup(NavigationItem $item)
$cssClasses[] = static::CSS_CLASS_ACTIVE;
}

if ($item->getIcon() === null) {
// @TODO(el): Add constant
$cssClasses[] = 'no-icon';
}

if ($cssClass = $item->getCssClass()) {
$cssClasses[] = $cssClass;
}
Expand Down

0 comments on commit 968754e

Please sign in to comment.