]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Docs: add missing `aria-label` to SVG with tooltip (#40808)
authorHannah Issermann <hannah.issermann@orange.com>
Thu, 26 Sep 2024 13:03:48 +0000 (15:03 +0200)
committerGitHub <noreply@github.com>
Thu, 26 Sep 2024 13:03:48 +0000 (15:03 +0200)
Co-authored-by: Julien Déramond <juderamond@gmail.com>
site/content/docs/5.3/components/tooltips.md

index 57bd73f20972e9ce310096ac2f38c38c4de9fff7..64ded72a44c9197ddcd0749aacc1b5635ad233e1 100644 (file)
@@ -111,7 +111,7 @@ And with custom HTML added:
 With an SVG:
 
 <div class="bd-example tooltip-demo">
-  <a href="#" class="d-inline-block" data-bs-toggle="tooltip" data-bs-title="Default tooltip">
+  <a href="#" class="d-inline-block" data-bs-toggle="tooltip" data-bs-title="Default tooltip" aria-label="Hover or focus to see 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"/>