]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Adjusted z-index to cover "copy" buttons (#34018)
authorJason Sperske <jason@sperske.com>
Wed, 19 May 2021 04:54:21 +0000 (21:54 -0700)
committerGitHub <noreply@github.com>
Wed, 19 May 2021 04:54:21 +0000 (07:54 +0300)
The copy to clipboard buttons have a `z-index:10` while the toasts were styled to have a `z-index:5" causing them to appear under the button.

site/content/docs/5.0/components/toasts.md

index 29254b267b9e0ebcc66500e6eb08974aba8a18bd..75713050c8974731b8ef87759ac6fcfdd4e62b4f 100644 (file)
@@ -45,7 +45,7 @@ Toasts are as flexible as you need and have very little required markup. At a mi
 
 Click the button below to show a toast (positioned with our utilities in the lower right corner) that has been hidden by default with `.hide`.
 
-<div class="position-fixed bottom-0 end-0 p-3" style="z-index: 5">
+<div class="position-fixed bottom-0 end-0 p-3" style="z-index: 11">
   <div id="liveToast" class="toast hide" role="alert" aria-live="assertive" aria-atomic="true">
     <div class="toast-header">
       {{< placeholder width="20" height="20" background="#007aff" class="rounded me-2" text="false" title="false" >}}
@@ -66,7 +66,7 @@ Click the button below to show a toast (positioned with our utilities in the low
 ```html
 <button type="button" class="btn btn-primary" id="liveToastBtn">Show live toast</button>
 
-<div class="position-fixed bottom-0 end-0 p-3" style="z-index: 5">
+<div class="position-fixed bottom-0 end-0 p-3" style="z-index: 11">
   <div id="liveToast" class="toast hide" role="alert" aria-live="assertive" aria-atomic="true">
     <div class="toast-header">
       <img src="..." class="rounded me-2" alt="...">