]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
docs: make tooltip anchor properly wrap the svg (#33901)
authoralpadev <2838324+alpadev@users.noreply.github.com>
Tue, 11 May 2021 08:38:48 +0000 (10:38 +0200)
committerGitHub <noreply@github.com>
Tue, 11 May 2021 08:38:48 +0000 (11:38 +0300)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
site/content/docs/5.0/components/tooltips.md

index 80a679fd6e632f744f61950d75f4fb18e193533c..6af594ee34e1fd7d7e2ce6c33bfe017f07223889 100644 (file)
@@ -88,7 +88,7 @@ And with custom HTML added:
 With an SVG:
 
 <div class="bd-example tooltip-demo">
-  <a href="#" data-bs-toggle="tooltip" title="Default tooltip">
+  <a href="#" class="d-inline-block" data-bs-toggle="tooltip" title="Default tooltip">
     <svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 100 100">
       <rect width="100%" height="100%" fill="#563d7c"/>
       <circle cx="50" cy="50" r="30" fill="#007bff"/>