aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-03-31 01:24:54 -0700
committerChris Rebert <[email protected]>2014-03-31 20:23:14 -0700
commit11ffc7346b9a26735fe857e9b0794a5c609c1b7b (patch)
treef8714c746f5964052933524ad6e8ee7b0c12d264 /docs/_includes
parenta419e41c325c20a024ad0abea3d7cc8b537d2b26 (diff)
downloadbootstrap-11ffc7346b9a26735fe857e9b0794a5c609c1b7b.tar.xz
bootstrap-11ffc7346b9a26735fe857e9b0794a5c609c1b7b.zip
explicitly doc that icon classes should only be used on empty elements; closes #13240
Diffstat (limited to 'docs/_includes')
-rw-r--r--docs/_includes/components/glyphicons.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/_includes/components/glyphicons.html b/docs/_includes/components/glyphicons.html
index 6900e0dfa..0f932f45c 100644
--- a/docs/_includes/components/glyphicons.html
+++ b/docs/_includes/components/glyphicons.html
@@ -21,6 +21,10 @@
<h4>Don't mix with other components</h4>
<p>Icon classes cannot be directly combined with other components. They should not be used along with other classes on the same element. Instead, add a nested <code>&lt;span&gt;</code> and apply the icon classes to the <code>&lt;span&gt;</code>.</p>
</div>
+ <div class="bs-callout bs-callout-danger">
+ <h4>Only for use on empty elements</h4>
+ <p>Icon classes should only be used on elements that contain no text content and have no child elements.</p>
+ </div>
{% highlight html %}
<span class="glyphicon glyphicon-search"></span>
{% endhighlight %}