Unverified Commit 91c11d64 authored by Rohit Sharma's avatar Rohit Sharma Committed by GitHub
Browse files

toasts: make default duration 5s (#31109)


Co-authored-by: default avatarXhmikosR <xhmikosr@gmail.com>
parent 37ef4e4b
Showing with 6 additions and 2 deletions
+6 -2
...@@ -48,7 +48,7 @@ const DefaultType = { ...@@ -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"]'
......
...@@ -309,7 +309,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap ...@@ -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>
......
...@@ -24,6 +24,10 @@ toc: true ...@@ -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`
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment