mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-25 12:59:05 +02:00
update buttons in docs to include type
This commit is contained in:
@@ -1136,13 +1136,13 @@ For example, <code>section</code> 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">
|
||||
<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>
|
||||
</pre>
|
||||
|
||||
@@ -1263,37 +1263,37 @@ For example, <code>section</code> 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, <code>section</code> 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, <code>section</code> should be wrapped as inline.
|
||||
<h3>Button element</h3>
|
||||
<p>Add the <code>disabled</code> attribute to <code><button></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">
|
||||
<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>
|
||||
</pre>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user