]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add docs about active menu items (#24993)
authorysds <ysds.code@gmail.com>
Wed, 13 Dec 2017 04:08:31 +0000 (13:08 +0900)
committerMark Otto <markd.otto@gmail.com>
Thu, 28 Dec 2017 18:21:14 +0000 (10:21 -0800)
docs/4.0/components/dropdowns.md

index 6afbeed2102de81465637e18b669f4dead4bd663..f2c2de873f0ecd4b554928060ac3d161422867b9 100644 (file)
@@ -648,6 +648,19 @@ Put a form within a dropdown menu, or make it into a dropdown menu, and use [mar
 </form>
 {% endexample %}
 
+## Active menu items
+
+Add `.active` to items in the dropdown to **style them as active**.
+
+{% example html %}
+
+<div class="dropdown-menu">
+  <a class="dropdown-item" href="#">Regular link</a>
+  <a class="dropdown-item active" href="#">Active link</a>
+  <a class="dropdown-item" href="#">Another link</a>
+</div>
+{% endexample %}
+
 ## Disabled menu items
 
 Add `.disabled` to items in the dropdown to **style them as disabled**.