Active menu item not styled correctly if first or last
I don't know if this is a bug or if I don't know what I am doing here. I have a valid CSS menu class which styles my selected item differently than my non-selected one, my active style class is named "selected". So, I tried the following code. This code works fine as long as the menu item is not the first or the last one.
<div id="nav">
<?php echo fuel_nav(array('active_class'=>'selected', 'first_class'=>'', 'last_class'=>'', 'container_tag_id' => 'topmenu', 'item_id_prefix' => 'topmenu_')); ?>
</div>
Although the first_class and last_class style tags are no longer rendered in the HTML, the 'class="selected"' directive is not rendered if its the first or last menu item.
Am I missing something obvious here?
Thanks in advance.
Comments