toasts: make default duration 5s (#31109)

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
Rohit Sharma 2020-07-12 18:13:26 +05:30 committed by GitHub
parent 37ef4e4b5e
commit 91c11d6465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -48,7 +48,7 @@ const DefaultType = {
const Default = { const Default = {
animation: true, animation: true,
autohide: true, autohide: true,
delay: 500 delay: 5000
} }
const SELECTOR_DATA_DISMISS = '[data-dismiss="toast"]' const SELECTOR_DATA_DISMISS = '[data-dismiss="toast"]'

View File

@ -309,7 +309,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
<td><code>delay</code></td> <td><code>delay</code></td>
<td>number</td> <td>number</td>
<td> <td>
<code>500</code> <code>5000</code>
</td> </td>
<td>Delay hiding the toast (ms)</td> <td>Delay hiding the toast (ms)</td>
</tr> </tr>

View File

@ -24,6 +24,10 @@ toc: true
- Renamed `whiteList` option to `allowList` - Renamed `whiteList` option to `allowList`
#### Toasts
- Make default toast duration 5 seconds
#### Tooltips #### Tooltips
- Renamed `whiteList` option to `allowList` - Renamed `whiteList` option to `allowList`