---
+## Active State
+
+Add the class `.is-active` to any `<li>` to create an active state. You could apply this server-side to mark the active page, or dynamically with JavaScript.
+
+```html_example
+<ul class="menu">
+ <li class="is-active"><a>Home</a></li>
+ <li><a>About</a></li>
+ <li><a>Nachos</a></li>
+</ul>
+```
+
+---
+
## Icons
Menu items can have icons. Wrap the text of the item in a `<span>`, and then add an `<img>` element before the `<span>`. If you're using the Foundation icon font, the `<img>` will be an `<i>` instead.
/// @type Number
$menu-item-padding: 0.7rem 1rem !default;
+/// Text color of an active menu item.
+/// @type Color
+$menu-item-color-active: $white !default;
+
+/// Background color of an active menu item.
+/// @type Color
+$menu-item-background-active: map-get($foundation-palette, primary) !default;
+
/// Spacing between an icon and text in a menu item.
/// @type Number
$menu-icon-spacing: 0.25rem !default;
&.nested {
@include menu-nested;
}
+
+ // Active state
+ .is-active > a {
+ color: $menu-item-color-active;
+ background: $menu-item-background-active;
+ }
}
.menu-text {