diff --git a/core/api.txt b/core/api.txt index 9783b904b80..1a4206dde77 100644 --- a/core/api.txt +++ b/core/api.txt @@ -1419,6 +1419,7 @@ ion-toast,css-prop,--start ion-toast,css-prop,--white-space ion-toast,css-prop,--width ion-toast,part,button +ion-toast,part,button-cancel ion-toast,part,container ion-toast,part,header ion-toast,part,icon diff --git a/core/src/components/toast/toast.tsx b/core/src/components/toast/toast.tsx index 6ee79775f63..28721342926 100644 --- a/core/src/components/toast/toast.tsx +++ b/core/src/components/toast/toast.tsx @@ -30,6 +30,7 @@ import type { ToastAttributes, ToastPosition, ToastLayout } from './toast-interf * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. * * @part button - Any button element that is displayed inside of the toast. + * @part button-cancel - Any button element with role "cancel" that is displayed inside of the toast. * @part container - The element that wraps all child elements. * @part header - The header text of the toast. * @part message - The body text of the toast. @@ -283,7 +284,13 @@ export class Toast implements ComponentInterface, OverlayInterface { return (