diff options
| author | Rohit Sharma <[email protected]> | 2020-07-12 18:13:26 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-07-12 15:43:26 +0300 |
| commit | 91c11d646538c634e24ea85c5f985b2f32f8fe96 (patch) | |
| tree | 2e228b84c190afa09e0ac84eb7bd31874baee6f4 | |
| parent | 37ef4e4b5ef7406d10009539a44ab7a340a1fb98 (diff) | |
| download | bootstrap-91c11d646538c634e24ea85c5f985b2f32f8fe96.tar.xz bootstrap-91c11d646538c634e24ea85c5f985b2f32f8fe96.zip | |
toasts: make default duration 5s (#31109)
Co-authored-by: XhmikosR <[email protected]>
| -rw-r--r-- | js/src/toast.js | 2 | ||||
| -rw-r--r-- | site/content/docs/5.0/components/toasts.md | 2 | ||||
| -rw-r--r-- | site/content/docs/5.0/migration.md | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/js/src/toast.js b/js/src/toast.js index cca6d553b..f977c7ee3 100644 --- a/js/src/toast.js +++ b/js/src/toast.js @@ -48,7 +48,7 @@ const DefaultType = { const Default = { animation: true, autohide: true, - delay: 500 + delay: 5000 } const SELECTOR_DATA_DISMISS = '[data-dismiss="toast"]' diff --git a/site/content/docs/5.0/components/toasts.md b/site/content/docs/5.0/components/toasts.md index 50d09478c..ee8eba458 100644 --- a/site/content/docs/5.0/components/toasts.md +++ b/site/content/docs/5.0/components/toasts.md @@ -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> diff --git a/site/content/docs/5.0/migration.md b/site/content/docs/5.0/migration.md index 093e99819..fc8a8dc61 100644 --- a/site/content/docs/5.0/migration.md +++ b/site/content/docs/5.0/migration.md @@ -24,6 +24,10 @@ toc: true - Renamed `whiteList` option to `allowList` +#### Toasts + +- Make default toast duration 5 seconds + #### Tooltips - Renamed `whiteList` option to `allowList` |
