]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix accessibility of examples buttons (#37498)
authorMewen Le Hô <92363071+MewenLeHo@users.noreply.github.com>
Thu, 17 Nov 2022 03:12:28 +0000 (04:12 +0100)
committerGitHub <noreply@github.com>
Thu, 17 Nov 2022 03:12:28 +0000 (19:12 -0800)
Co-authored-by: Patrick H. Lauke <redux@splintered.co.uk>
site/layouts/shortcodes/example.html

index 122dc1a156b59bfd25e8df5d104432d92c3eb0fa..dc0e10566929ff117754dc43fed837a6526fa793 100644 (file)
         <small class="font-monospace text-muted text-uppercase">{{- $lang -}}</small>
         <div class="d-flex ms-auto">
           <button type="button" class="btn-edit text-nowrap"{{ with $stackblitz_add_js }} data-sb-js-snippet="{{ $stackblitz_add_js }}"{{ end }} title="Try it on StackBlitz">
-            <svg class="bi" role="img" aria-label="Try it"><use xlink:href="#lightning-charge-fill"/></svg>
+            <svg class="bi" aria-hidden="true"><use xlink:href="#lightning-charge-fill"/></svg>
           </button>
           <button type="button" class="btn-clipboard mt-0 me-0" title="Copy to clipboard">
-            <svg class="bi" role="img" aria-label="Copy"><use xlink:href="#clipboard"/></svg>
+            <svg class="bi" aria-hidden="true"><use xlink:href="#clipboard"/></svg>
           </button>
         </div>
       </div>