aboutsummaryrefslogtreecommitdiff
path: root/javascript.html
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2013-10-14 20:10:35 -0700
committerChris Rebert <[email protected]>2013-10-14 20:18:12 -0700
commit27e2c56792bcf7df2c0cb9247d373c90cab7c198 (patch)
tree0feea222bbb9e976a1da26ac3ec0ece57c77ed3b /javascript.html
parenta44bd01628d66b92bee3eaef7e4b4f21b5525de6 (diff)
downloadbootstrap-27e2c56792bcf7df2c0cb9247d373c90cab7c198.tar.xz
bootstrap-27e2c56792bcf7df2c0cb9247d373c90cab7c198.zip
In docs, recommend only <div> (not <span>) for putting tooltips on disabled elements
Per issue comments, `display: inline` elements like <span> don't work for this. Resolves #10049
Diffstat (limited to 'javascript.html')
-rw-r--r--javascript.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript.html b/javascript.html
index 81f3d1e1c..95dcc3acc 100644
--- a/javascript.html
+++ b/javascript.html
@@ -843,7 +843,7 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
</div>
<div class="bs-callout bs-callout-info">
<h4>Tooltips on disabled elements require wrapper elements</h4>
- <p>To add a tooltip to a <code>disabled</code> or <code>.disabled</code> element, put the element inside of a <code>&lt;div&gt;</code> or <code>&lt;span&gt;</code>, and apply the tooltip to that element instead.</p>
+ <p>To add a tooltip to a <code>disabled</code> or <code>.disabled</code> element, put the element inside of a <code>&lt;div&gt;</code> and apply the tooltip to that <code>&lt;div&gt;</code> instead.</p>
</div>
<h2 id="tooltips-usage">Usage</h2>
@@ -1025,7 +1025,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
</div>
<div class="bs-callout bs-callout-info">
<h4>Popovers on disabled elements require wrapper elements</h4>
- <p>To add a popover to a <code>disabled</code> or <code>.disabled</code> element, put the element inside of a <code>&lt;div&gt;</code> or <code>&lt;span&gt;</code>, and apply the popover to that element instead.</p>
+ <p>To add a popover to a <code>disabled</code> or <code>.disabled</code> element, put the element inside of a <code>&lt;div&gt;</code> and apply the popover to that <code>&lt;div&gt;</code> instead.</p>
</div>
<h3>Static popover</h3>