You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit also refactors ion-toast, so it uses shadow-dom,
this is required since CSS variables
does not work well in non-shadow-dom components.
fixesionic-team#16099
* The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics).
4850
+
*/
4851
+
'color'?: Color;
4852
+
/**
4849
4853
* Additional classes to apply for custom CSS. If multiple classes are provided they should be separated by spaces.
* The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics).
4921
+
*/
4922
+
'color'?: Color;
4923
+
/**
4916
4924
* Additional classes to apply for custom CSS. If multiple classes are provided they should be separated by spaces.
|`animated`|`animated`| If `true`, the toast will animate. Defaults to `true`. |`boolean`|
26
-
|`closeButtonText`|`close-button-text`| Text to display in the close button. |`string \| undefined`|
27
-
|`cssClass`|`css-class`| Additional classes to apply for custom CSS. If multiple classes are provided they should be separated by spaces. |`string \| string[] \| undefined`|
28
-
|`duration`|`duration`| How many milliseconds to wait before hiding the toast. By default, it will show until `dismiss()` is called. |`number`|
29
-
|`enterAnimation`| -- | Animation to use when the toast is presented. |`AnimationBuilder \| undefined`|
30
-
|`keyboardClose`|`keyboard-close`| If `true`, the keyboard will be automatically dismissed when the overlay is presented. |`boolean`|
31
-
|`leaveAnimation`| -- | Animation to use when the toast is dismissed. |`AnimationBuilder \| undefined`|
32
-
|`message`|`message`| Message to be shown in the toast. |`string \| undefined`|
33
-
|`mode`|`mode`| The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. |`"ios" \| "md"`|
34
-
|`overlayIndex`|`overlay-index`||`number`|
35
-
|`position`|`position`| The position of the toast on the screen. Possible values: "top", "middle", "bottom". |`"bottom" \| "middle" \| "top"`|
36
-
|`showCloseButton`|`show-close-button`| If `true`, the close button will be displayed. Defaults to `false`. |`boolean`|
37
-
|`translucent`|`translucent`| If `true`, the toast will be translucent. Defaults to `false`. |`boolean`|
|`animated`|`animated`| If `true`, the toast will animate. Defaults to `true`. |`boolean`|
26
+
|`closeButtonText`|`close-button-text`| Text to display in the close button. |`string \| undefined`|
27
+
|`color`|`color`| The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics). |`string \| undefined`|
28
+
|`cssClass`|`css-class`| Additional classes to apply for custom CSS. If multiple classes are provided they should be separated by spaces. |`string \| string[] \| undefined`|
29
+
|`duration`|`duration`| How many milliseconds to wait before hiding the toast. By default, it will show until `dismiss()` is called. |`number`|
30
+
|`enterAnimation`| -- | Animation to use when the toast is presented. |`AnimationBuilder \| undefined`|
31
+
|`keyboardClose`|`keyboard-close`| If `true`, the keyboard will be automatically dismissed when the overlay is presented. |`boolean`|
32
+
|`leaveAnimation`| -- | Animation to use when the toast is dismissed. |`AnimationBuilder \| undefined`|
33
+
|`message`|`message`| Message to be shown in the toast. |`string \| undefined`|
34
+
|`mode`|`mode`| The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. |`"ios" \| "md"`|
35
+
|`overlayIndex`|`overlay-index`||`number`|
36
+
|`position`|`position`| The position of the toast on the screen. Possible values: "top", "middle", "bottom". |`"bottom" \| "middle" \| "top"`|
37
+
|`showCloseButton`|`show-close-button`| If `true`, the close button will be displayed. Defaults to `false`. |`boolean`|
38
+
|`translucent`|`translucent`| If `true`, the toast will be translucent. Defaults to `false`. |`boolean`|
Copy file name to clipboardExpand all lines: core/src/components/toast/test/basic/index.html
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@
27
27
<ion-buttonexpand="block" onclick="presentToastWithOptions({message: 'click to close', showCloseButton: true})">Show Toast with Close Button</ion-button>
28
28
<ion-buttonexpand="block" onclick="presentToastWithOptions({message: 'click to close', showCloseButton: true, closeButtonText: 'closing time'})">Show Toast with Custom Close Button Text</ion-button>
0 commit comments