diff options
author | GeoSot <geo.sotis@gmail.com> | 2021-07-22 18:13:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-22 18:13:13 +0300 |
commit | 41292a52570610dc312a775ae0491dc46f93a4fe (patch) | |
tree | ce8185d87fd969dac7d7cf39b1f03c43452c5e4e /site/content/docs | |
parent | e85a6ed77c92ee43cf23b5c6ce479dbd0100be66 (diff) |
Toasts: Change showing timings and classes to keep toast `display:none` by default (#33610)
Diffstat (limited to 'site/content/docs')
-rw-r--r-- | site/content/docs/5.0/components/toasts.md | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/site/content/docs/5.0/components/toasts.md b/site/content/docs/5.0/components/toasts.md index 8017ecdcd4..609a887496 100644 --- a/site/content/docs/5.0/components/toasts.md +++ b/site/content/docs/5.0/components/toasts.md @@ -41,12 +41,16 @@ Toasts are as flexible as you need and have very little required markup. At a mi </div> {{< /example >}} +{{< callout warning >}} +Previously, our scripts dynamically added the `.hide` class to completely hide a toast (with `display:none`, rather than just with `opacity:0`). This is now not necessary anymore. However, for backwards compatibility, our script will continue to toggle the class (even though there is no practical need for it) until the next major version. +{{< /callout >}} + ### Live example -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`. +Click the button below to show a toast (positioned with our utilities in the lower right corner) that has been hidden by default. <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 id="liveToast" class="toast" 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" >}} <strong class="me-auto">Bootstrap</strong> @@ -67,7 +71,7 @@ Click the button below to show a toast (positioned with our utilities in the low <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: 11"> - <div id="liveToast" class="toast hide" role="alert" aria-live="assertive" aria-atomic="true"> + <div id="liveToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true"> <div class="toast-header"> <img src="..." class="rounded me-2" alt="..."> <strong class="me-auto">Bootstrap</strong> |