]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
toasts: make default duration 5s (#31109)
authorRohit Sharma <rohit2sharma95@gmail.com>
Sun, 12 Jul 2020 12:43:26 +0000 (18:13 +0530)
committerGitHub <noreply@github.com>
Sun, 12 Jul 2020 12:43:26 +0000 (15:43 +0300)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
js/src/toast.js
site/content/docs/5.0/components/toasts.md
site/content/docs/5.0/migration.md

index cca6d553b07e87865e51696556c1383353a6069e..f977c7ee3da26deca4280d6193656d16b3b75ade 100644 (file)
@@ -48,7 +48,7 @@ const DefaultType = {
 const Default = {
   animation: true,
   autohide: true,
-  delay: 500
+  delay: 5000
 }
 
 const SELECTOR_DATA_DISMISS = '[data-dismiss="toast"]'
index 50d09478c824ae2f25e53faa81be2da051153dfc..ee8eba45853098df89fe9cb4d8094e9bc7cb4958 100644 (file)
@@ -309,7 +309,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
       <td><code>delay</code></td>
       <td>number</td>
       <td>
-        <code>500</code>
+        <code>5000</code>
       </td>
       <td>Delay hiding the toast (ms)</td>
     </tr>
index 093e998195ed0940aef55438c05f0d6713a4dbcd..fc8a8dc61f1e9b0009f15ca705f04bc8eaaa1f40 100644 (file)
@@ -24,6 +24,10 @@ toc: true
 
 - Renamed `whiteList` option to `allowList`
 
+#### Toasts
+
+- Make default toast duration 5 seconds
+
 #### Tooltips
 
 - Renamed `whiteList` option to `allowList`