aboutsummaryrefslogtreecommitdiff
path: root/docs/base-css.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-07-06 15:18:56 -0700
committerMark Otto <[email protected]>2012-07-06 15:18:56 -0700
commit6d447079a41f8441c061a9d6f572e28c627ccd6e (patch)
tree83c2970be2607403b785a9cd6a7d42e6ebba4d63 /docs/base-css.html
parentdc6eaafb00426315a3720324d7fc3a4a33a04ddf (diff)
downloadbootstrap-6d447079a41f8441c061a9d6f572e28c627ccd6e.tar.xz
bootstrap-6d447079a41f8441c061a9d6f572e28c627ccd6e.zip
update buttons in docs to include type
Diffstat (limited to 'docs/base-css.html')
-rw-r--r--docs/base-css.html38
1 files changed, 19 insertions, 19 deletions
diff --git a/docs/base-css.html b/docs/base-css.html
index 2b7c1ec71..3df5a114b 100644
--- a/docs/base-css.html
+++ b/docs/base-css.html
@@ -1136,13 +1136,13 @@ For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.
<form class="bs-docs-example">
<div class="form-actions">
<button type="submit" class="btn btn-primary">Save changes</button>
- <button class="btn">Cancel</button>
+ <button type="button" class="btn">Cancel</button>
</div>
</form>
<pre class="prettyprint linenums">
&lt;div class="form-actions"&gt;
&lt;button type="submit" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
- &lt;button class="btn"&gt;Cancel&lt;/button&gt;
+ &lt;button type="button" class="btn"&gt;Cancel&lt;/button&gt;
&lt;/div&gt;
</pre>
@@ -1263,37 +1263,37 @@ For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.
</thead>
<tbody>
<tr>
- <td><button class="btn" href="#">Default</button></td>
+ <td><button type="button" class="btn">Default</button></td>
<td><code>btn</code></td>
<td>Standard gray button with gradient</td>
</tr>
<tr>
- <td><button class="btn btn-primary" href="#">Primary</button></td>
+ <td><button type="button" class="btn btn-primary">Primary</button></td>
<td><code>btn btn-primary</code></td>
<td>Provides extra visual weight and identifies the primary action in a set of buttons</td>
</tr>
<tr>
- <td><button class="btn btn-info" href="#">Info</button></td>
+ <td><button type="button" class="btn btn-info">Info</button></td>
<td><code>btn btn-info</code></td>
<td>Used as an alternative to the default styles</td>
</tr>
<tr>
- <td><button class="btn btn-success" href="#">Success</button></td>
+ <td><button type="button" class="btn btn-success">Success</button></td>
<td><code>btn btn-success</code></td>
<td>Indicates a successful or positive action</td>
</tr>
<tr>
- <td><button class="btn btn-warning" href="#">Warning</button></td>
+ <td><button type="button" class="btn btn-warning">Warning</button></td>
<td><code>btn btn-warning</code></td>
<td>Indicates caution should be taken with this action</td>
</tr>
<tr>
- <td><button class="btn btn-danger" href="#">Danger</button></td>
+ <td><button type="button" class="btn btn-danger">Danger</button></td>
<td><code>btn btn-danger</code></td>
<td>Indicates a dangerous or potentially negative action</td>
</tr>
<tr>
- <td><button class="btn btn-inverse" href="#">Inverse</button></td>
+ <td><button type="button" class="btn btn-inverse">Inverse</button></td>
<td><code>btn btn-inverse</code></td>
<td>Alternate dark gray button, not tied to a semantic action or use</td>
</tr>
@@ -1310,16 +1310,16 @@ For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.
<h2>Button sizes</h2>
<p>Fancy larger or smaller buttons? Add <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code> for two additional sizes.</p>
<p>
- <button class="btn btn-large btn-primary">Primary action</button>
- <button class="btn btn-large">Action</button>
+ <button type="button" class="btn btn-large btn-primary">Primary action</button>
+ <button type="button" class="btn btn-large">Action</button>
</p>
<p>
- <button class="btn btn-small btn-primary">Primary action</button>
- <button class="btn btn-small">Action</button>
+ <button type="button" class="btn btn-small btn-primary">Primary action</button>
+ <button type="button" class="btn btn-small">Action</button>
</p>
<p>
- <button class="btn btn-mini btn-primary">Primary action</button>
- <button class="btn btn-mini">Action</button>
+ <button type="button" class="btn btn-mini btn-primary">Primary action</button>
+ <button type="button" class="btn btn-mini">Action</button>
</p>
@@ -1347,12 +1347,12 @@ For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.
<h3>Button element</h3>
<p>Add the <code>disabled</code> attribute to <code>&lt;button&gt;</code> buttons.</p>
<p class="bs-docs-example">
- <button class="btn btn-large btn-primary disabled" disabled="disabled">Primary button</button>
- <button class="btn btn-large" disabled>Button</button>
+ <button type="button" class="btn btn-large btn-primary disabled" disabled="disabled">Primary button</button>
+ <button type="button" class="btn btn-large" disabled>Button</button>
</p>
<pre class="prettyprint linenums">
-&lt;button class="btn btn-large btn-primary disabled" disabled="disabled"&gt;Primary button&lt;/button&gt;
-&lt;button class="btn btn-large" disabled&gt;Button&lt;/button&gt;
+&lt;button type="button" class="btn btn-large btn-primary disabled" disabled="disabled"&gt;Primary button&lt;/button&gt;
+&lt;button type="button" class="btn btn-large" disabled&gt;Button&lt;/button&gt;
</pre>