]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add doc example with badge links (#21674)
authorPierre-Denis Vanduynslager <pierre.denis.vanduynslager@gmail.com>
Mon, 16 Jan 2017 05:45:04 +0000 (00:45 -0500)
committerMark Otto <markd.otto@gmail.com>
Mon, 16 Jan 2017 05:45:04 +0000 (21:45 -0800)
docs/components/badge.md

index 4e4bafcde06ed2f553721e19935ef2b2ab171e0f..896c917f3c905cfcb36b3a33a01d3db456a6838c 100644 (file)
@@ -53,3 +53,16 @@ Use the `.badge-pill` modifier class to make badges more rounded (with a larger
 <span class="badge badge-pill badge-warning">Warning</span>
 <span class="badge badge-pill badge-danger">Danger</span>
 {% endexample %}
+
+## Links
+
+Using the `.badge` classes with the `<a>` element quickly provide _actionable_ badges with hover and focus states.
+
+{% example html %}
+<a href="#" class="badge badge-default">Default</a>
+<a href="#" class="badge badge-primary">Primary</a>
+<a href="#" class="badge badge-success">Success</a>
+<a href="#" class="badge badge-info">Info</a>
+<a href="#" class="badge badge-warning">Warning</a>
+<a href="#" class="badge badge-danger">Danger</a>
+{% endexample %}