Skip to content

Commit

Permalink
Merge pull request #11054 from omarabuhussein/CRM-21195-improve-menu-…
Browse files Browse the repository at this point in the history
…item-icons-markup

CRM-21195: Improving menu item icon markup
  • Loading branch information
colemanw authored Oct 31, 2017
2 parents b5956dc + e5dd49b commit 45ebc19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/BAO/Navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ public static function getMenuName(&$value, &$skipMenuItems) {
}

if (!empty($value['attributes']['icon'])) {
$menuIcon = sprintf('<span class="%s"></span>&nbsp;', $value['attributes']['icon']);
$menuIcon = sprintf('<i class="%s"></i>', $value['attributes']['icon']);
$name = $menuIcon . $name;
}

Expand Down
3 changes: 3 additions & 0 deletions css/civicrmNavigation.css
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ img.menu-item-arrow{
right: 4px;
top: 8px;
}
#civicrm-menu i {
margin-right: 5px;
}
li.menu-separator{
border-bottom: 1px solid #000;
font-size: 0; /* for ie */
Expand Down

0 comments on commit 45ebc19

Please sign in to comment.