]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix disabled element tooltip stackblitz (#38623)
authorIan Haggerty <ijhaggerty@sep.com>
Wed, 31 May 2023 04:40:38 +0000 (00:40 -0400)
committerGitHub <noreply@github.com>
Wed, 31 May 2023 04:40:38 +0000 (07:40 +0300)
* Load js for disabled button tooltip stackblitz

* Remove surrounding useless `<div>`

---------

Co-authored-by: Julien Déramond <juderamond@gmail.com>
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
site/content/docs/5.3/components/tooltips.md

index cf628e344f09ecf6564888e21b05229bcd224704..d41b6e2cd00491ecabc7c6f8bdcf66243900ea57 100644 (file)
@@ -177,13 +177,11 @@ The required markup for a tooltip is only a `data` attribute and `title` on the
 
 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"`.
 
-<div class="tooltip-demo">
-{{< example >}}
+{{< example class="tooltip-demo" stackblitz_add_js="true" >}}
 <span class="d-inline-block" tabindex="0" data-bs-toggle="tooltip" data-bs-title="Disabled tooltip">
   <button class="btn btn-primary" type="button" disabled>Disabled button</button>
 </span>
 {{< /example >}}
-</div>
 
 ### Options