Skip to content

Commit

Permalink
fix(core/toast): set default icon to info
Browse files Browse the repository at this point in the history
  • Loading branch information
nuke-ellington committed Oct 10, 2022
1 parent 7f0d6e4 commit de4a2a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/core/component-doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7400,6 +7400,7 @@
"reflectToAttr": false,
"docs": "Toast type",
"docsTags": [],
"default": "'info'",
"values": [
{
"value": "error",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/toast/toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class Toast {
/**
* Toast type
*/
@Prop() type: ToastType;
@Prop() type: ToastType = 'info';

/**
* Toast title
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
|icon| Icon of toast | `icon` | `string` | `undefined` |
|iconColor| Icon color of toast | `icon-color` | `string` | `undefined` |
|toastTitle| Toast title | `toast-title` | `string` | `undefined` |
|type| Toast type | `type` | `"error" | "info" | "success" | "warning"` | `undefined` |
|type| Toast type | `type` | `"error" | "info" | "success" | "warning"` | `'info'` |

0 comments on commit de4a2a1

Please sign in to comment.