Skip to content

Commit

Permalink
Change css classes of mod_menu
Browse files Browse the repository at this point in the history
Remove flex-column from `ul` element, add BEM HTML class names.
  • Loading branch information
richard67 committed Jun 9, 2018
1 parent 1b0a811 commit 42f040f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/mod_menu/tmpl/default.php
Expand Up @@ -18,12 +18,12 @@
$id = ' id="' . $tagId . '"';
}

// The menu class is deprecated. Use nav instead
// The menu class is deprecated. Use mod-menu instead
?>
<ul<?php echo $id; ?> class="nav flex-column <?php echo $class_sfx; ?>">
<ul<?php echo $id; ?> class="mod-menu nav<?php echo $class_sfx; ?>">
<?php foreach ($list as $i => &$item)
{
$class = 'nav-item';
$class = 'mod-menu__item nav-item';

if ($item->id == $default_id)
{
Expand Down Expand Up @@ -86,7 +86,7 @@
// The next item is deeper.
if ($item->deeper)
{
echo '<ul class="list-unstyled small">';
echo '<ul class="mod-menu__list list-unstyled small">';
}
// The next item is shallower.
elseif ($item->shallower)
Expand Down

0 comments on commit 42f040f

Please sign in to comment.