]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Document .alert-dismissible .close restrictions; fixes #14802 14858/head
authorChris Rebert <code@rebertia.com>
Thu, 23 Oct 2014 01:03:31 +0000 (18:03 -0700)
committerChris Rebert <code@rebertia.com>
Thu, 23 Oct 2014 01:05:42 +0000 (18:05 -0700)
[skip sauce]

docs/_includes/js/alerts.html

index e9a3120dea473c114d7efb533328a36c22d8d62d..7f539092f6b05bda8012bf3be4c1503e50e175d4 100644 (file)
@@ -3,6 +3,7 @@
 
   <h2 id="alerts-examples">Example alerts</h2>
   <p>Add dismiss functionality to all alert messages with this plugin.</p>
+  <p>When using a <code>.close</code> button, it must be the first child of the <code>.alert-dismissible</code> and no text content may come before it in the markup.</p>
   <div class="bs-example bs-example-standalone">
     <div class="alert alert-warning alert-dismissible fade in" role="alert">
       <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>