]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
explicitly doc that icon classes should only be used on empty elements; closes #13240 13241/head
authorChris Rebert <code@rebertia.com>
Mon, 31 Mar 2014 08:24:54 +0000 (01:24 -0700)
committerChris Rebert <code@rebertia.com>
Tue, 1 Apr 2014 03:23:14 +0000 (20:23 -0700)
docs/_includes/components/glyphicons.html

index 6900e0dfa4298cf3bfd657bc65bd068f8d0136e5..0f932f45c7c2bd366da0deb9aae06e639db202e5 100644 (file)
     <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 %}