diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/components/navs.md | 54 | ||||
| -rw-r--r-- | docs/components/popovers.md | 16 | ||||
| -rw-r--r-- | docs/components/tooltips.md | 20 |
3 files changed, 55 insertions, 35 deletions
diff --git a/docs/components/navs.md b/docs/components/navs.md index 932e7c383..75e41f42f 100644 --- a/docs/components/navs.md +++ b/docs/components/navs.md @@ -172,19 +172,23 @@ Use the tab JavaScript plugin—include it individually or through the compiled <div class="bd-example bd-example-tabs" role="tabpanel"> <ul id="myTab" class="nav nav-tabs" role="tablist"> - <li class="active"> - <a href="#home" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">Home</a> + <li class="nav-item active"> + <a class="nav-link" href="#home" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">Home</a> </li> - <li> - <a href="#profile" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile">Profile</a> + <li class="nav-item"> + <a class="nav-link" href="#profile" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile">Profile</a> </li> - <li class="dropdown"> - <a href="#" id="myTabDrop1" class="dropdown-toggle" data-toggle="dropdown" aria-controls="myTabDrop1-contents"> + <li class="nav-item dropdown"> + <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"> Dropdown </a> - <ul class="dropdown-menu" aria-labelledby="myTabDrop1" id="myTabDrop1-contents"> - <li><a href="#dropdown1" role="tab" id="dropdown1-tab" data-toggle="tab" aria-controls="dropdown1">@fat</a></li> - <li><a href="#dropdown2" role="tab" id="dropdown2-tab" data-toggle="tab" aria-controls="dropdown2">@mdo</a></li> + <ul class="dropdown-menu"> + <li> + <a href="#dropdown1" role="tab" id="dropdown1-tab" data-toggle="tab" aria-controls="dropdown1">@fat</a> + </li> + <li> + <a href="#dropdown2" role="tab" id="dropdown2-tab" data-toggle="tab" aria-controls="dropdown2">@mdo</a> + </li> </ul> </li> </ul> @@ -212,10 +216,18 @@ You can activate a tab or pill navigation without writing any JavaScript by simp {% highlight html %} <!-- Nav tabs --> <ul class="nav nav-tabs" role="tablist"> - <li class="active"><a href="#home" role="tab" data-toggle="tab">Home</a></li> - <li><a href="#profile" role="tab" data-toggle="tab">Profile</a></li> - <li><a href="#messages" role="tab" data-toggle="tab">Messages</a></li> - <li><a href="#settings" role="tab" data-toggle="tab">Settings</a></li> + <li class="nav-item active"> + <a class="nav-link" href="#home" role="tab" data-toggle="tab">Home</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="#profile" role="tab" data-toggle="tab">Profile</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="#messages" role="tab" data-toggle="tab">Messages</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="#settings" role="tab" data-toggle="tab">Settings</a> + </li> </ul> <!-- Tab panes --> @@ -269,17 +281,17 @@ Activates a tab element and content container. Tab should have either a `data-ta {% highlight html %} <ul class="nav nav-tabs" role="tablist" id="myTab"> - <li class="active"> - <a href="#home" role="tab" data-toggle="tab" aria-controls="home">Home</a> + <li class="nav-item active"> + <a class="nav-link" href="#home" role="tab" data-toggle="tab" aria-controls="home">Home</a> </li> - <li> - <a href="#profile" role="tab" data-toggle="tab" aria-controls="profile">Profile</a> + <li class="nav-item"> + <a class="nav-link" href="#profile" role="tab" data-toggle="tab" aria-controls="profile">Profile</a> </li> - <li> - <a href="#messages" role="tab" data-toggle="tab" aria-controls="messages">Messages</a> + <li class="nav-item"> + <a class="nav-link" href="#messages" role="tab" data-toggle="tab" aria-controls="messages">Messages</a> </li> - <li> - <a href="#settings" role="tab" data-toggle="tab" aria-controls="settings">Settings</a> + <li class="nav-item"> + <a class="nav-link" href="#settings" role="tab" data-toggle="tab" aria-controls="settings">Settings</a> </li> </ul> diff --git a/docs/components/popovers.md b/docs/components/popovers.md index 31ec2392c..8f4b71313 100644 --- a/docs/components/popovers.md +++ b/docs/components/popovers.md @@ -257,12 +257,16 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap <td>How popover is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space. `manual` cannot be combined with any other trigger.</td> </tr> <tr> - <td>viewport</td> - <td>string | object</td> - <td>{ selector: 'body', padding: 0 }</td> - <td> - <p>Keeps the popover within the bounds of this element. Example: <code>viewport: '#viewport'</code> or <code>{ "selector": "#viewport", "padding": 0 }</code></p> - </td> + <td>constraints</td> + <td>Array</td> + <td>'hover focus'</td> + <td>An array of constraints - passed through to tether. For more information refer to tether's <a href="http://github.hubspot.com/tether/#constraints">constraint docs</a>.</td> + </tr> + <tr> + <td>offsets</td> + <td>string</td> + <td>'0 0'</td> + <td>Offset of the popover relative to it's target. For more information refer to tether's <a href="http://github.hubspot.com/tether/#constraints">offset docs</a>.</td> </tr> </tbody> </table> diff --git a/docs/components/tooltips.md b/docs/components/tooltips.md index 43ed68bda..6deaa4e0f 100644 --- a/docs/components/tooltips.md +++ b/docs/components/tooltips.md @@ -13,7 +13,7 @@ Inspired by the excellent Tipsy jQuery plugin written by Jason Frame. Tooltips a ## Overview -Things to know when using the popover plugin: +Things to know when using the tooltip plugin: - Tooltips are opt-in for performance reasons, so **you must initialize them yourself**. - Tooltips with zero-length titles are never displayed. @@ -24,7 +24,7 @@ Things to know when using the popover plugin: Got all that? Great, let's see how they work with some examples. -## Example: Enable popovers everywhere +## Example: Enable tooltips everywhere One way to initialize all tooltips on a page would be to select them by their `data-toggle` attribute: @@ -216,12 +216,16 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap <td>How tooltip is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space. `manual` cannot be combined with any other trigger.</td> </tr> <tr> - <td>viewport</td> - <td>string | object</td> - <td>{ selector: 'body', padding: 0 }</td> - <td> - <p>Keeps the tooltip within the bounds of this element. Example: <code>viewport: '#viewport'</code> or <code>{ "selector": "#viewport", "padding": 0 }</code></p> - </td> + <td>constraints</td> + <td>Array</td> + <td>'hover focus'</td> + <td>An array of constraints - passed through to tether. For more information refer to tether's <a href="http://github.hubspot.com/tether/#constraints">constraint docs</a>.</td> + </tr> + <tr> + <td>offsets</td> + <td>string</td> + <td>'0 0'</td> + <td>Offset of the popover relative to it's target. For more information refer to tether's <a href="http://github.hubspot.com/tether/#constraints">offset docs</a>.</td> </tr> </tbody> </table> |
