Commit 67829c65 authored by Mark Otto's avatar Mark Otto
Browse files

Merge pull request #11094 from twbs/address-10049

Recommend only <div> (not <span>) for putting tooltips on disabled elements
parents a44bd016 27e2c567
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
...@@ -843,7 +843,7 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { ...@@ -843,7 +843,7 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
</div> </div>
<div class="bs-callout bs-callout-info"> <div class="bs-callout bs-callout-info">
<h4>Tooltips on disabled elements require wrapper elements</h4> <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> </div>
<h2 id="tooltips-usage">Usage</h2> <h2 id="tooltips-usage">Usage</h2>
...@@ -1025,7 +1025,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () { ...@@ -1025,7 +1025,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
</div> </div>
<div class="bs-callout bs-callout-info"> <div class="bs-callout bs-callout-info">
<h4>Popovers on disabled elements require wrapper elements</h4> <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> </div>
<h3>Static popover</h3> <h3>Static popover</h3>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment