aboutsummaryrefslogtreecommitdiff
path: root/docs/4.0/components/tooltips.md
diff options
context:
space:
mode:
authorm5o <[email protected]>2018-03-14 16:44:38 +0100
committerXhmikosR <[email protected]>2018-03-14 17:44:38 +0200
commitd01b4eb02560ba67b61b1b2c0496e9f8281c154d (patch)
tree9c32c81f44be15d729fc8351360921aa1b42e572 /docs/4.0/components/tooltips.md
parent03b7f52e820c80e244479c59c0920c541ee1277b (diff)
downloadbootstrap-d01b4eb02560ba67b61b1b2c0496e9f8281c154d.tar.xz
bootstrap-d01b4eb02560ba67b61b1b2c0496e9f8281c154d.zip
Remove custom example plugin. (#25784)
Diffstat (limited to 'docs/4.0/components/tooltips.md')
-rw-r--r--docs/4.0/components/tooltips.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/4.0/components/tooltips.md b/docs/4.0/components/tooltips.md
index e30dff3b7..90bcc15ce 100644
--- a/docs/4.0/components/tooltips.md
+++ b/docs/4.0/components/tooltips.md
@@ -117,11 +117,12 @@ Additionally, do not rely solely on `hover` as the trigger for your tooltip, as
Elements with the `disabled` attribute aren't interactive, meaning users cannot focus, hover, or click them to trigger a tooltip (or popover). As a workaround, you'll want to trigger the tooltip from a wrapper `<div>` or `<span>`, ideally made keyboard-focusable using `tabindex="0"`, and override the `pointer-events` on the disabled element.
<div class="tooltip-demo">
-{% example html %}
+{% capture example %}
<span class="d-inline-block" tabindex="0" data-toggle="tooltip" title="Disabled tooltip">
<button class="btn btn-primary" style="pointer-events: none;" type="button" disabled>Disabled button</button>
</span>
-{% endexample %}
+{% endcapture %}
+{% include example.html content=example %}
</div>
### Options