2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-24 14:04:09 +03:00

#3465 part 1: add type="button" to all dismiss buttons in docs

This commit is contained in:
Mark Otto
2012-05-13 14:01:57 -07:00
parent 6f61c96f02
commit d09db29039
4 changed files with 18 additions and 18 deletions
+5 -5
View File
@@ -1688,7 +1688,7 @@
<h3>Example alerts</h3>
<p>Wrap your message and an optional close icon in a div with simple class.</p>
<div class="alert">
<button class="close" data-dismiss="alert">&times;</button>
<button type="button" class="close" data-dismiss="alert">&times;</button>
<strong>Warning!</strong> Best check yo self, you're not looking too good.
</div>
<pre class="prettyprint linenums">
@@ -1700,7 +1700,7 @@
<p><span class="label label-info">Heads up!</span> iOS devices require an <code>href="#"</code> for the dismissal of alerts. Be sure to include it and the data attribute for anchor close icons. Alternatively, you may use a <code>button</code> element with the data attribute, which we have opted to do for our docs.</p>
<p>Easily extend the standard alert message with two optional classes: <code>.alert-block</code> for more padding and text controls and <code>.alert-heading</code> for a matching heading.</p>
<div class="alert alert-block">
<button class="close" data-dismiss="alert">&times;</button>
<button type="button" class="close" data-dismiss="alert">&times;</button>
<h4 class="alert-heading">Warning!</h4>
<p>Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p>
</div>
@@ -1719,7 +1719,7 @@
<div class="span4">
<h3>Error or danger</h3>
<div class="alert alert-error">
<button class="close" data-dismiss="alert">&times;</button>
<button type="button" class="close" data-dismiss="alert">&times;</button>
<strong>Oh snap!</strong> Change a few things up and try submitting again.
</div>
<pre class="prettyprint linenums">
@@ -1731,7 +1731,7 @@
<div class="span4">
<h3>Success</h3>
<div class="alert alert-success">
<button class="close" data-dismiss="alert">&times;</button>
<button type="button" class="close" data-dismiss="alert">&times;</button>
<strong>Well done!</strong> You successfully read this important alert message.
</div>
<pre class="prettyprint linenums">
@@ -1743,7 +1743,7 @@
<div class="span4">
<h3>Information</h3>
<div class="alert alert-info">
<button class="close" data-dismiss="alert">&times;</button>
<button type="button" class="close" data-dismiss="alert">&times;</button>
<strong>Heads up!</strong> This alert needs your attention, but it's not super important.
</div>
<pre class="prettyprint linenums">