refactor(toast): remove cssClass from ToastButton (#28977)

BREAKING CHANGE:
The `cssClass` property has been removed from `ToastButton`
This commit is contained in:
Maria Hutt
2024-02-06 09:09:03 -08:00
committed by GitHub
parent 7fd7e1d9b8
commit 9856295915
3 changed files with 6 additions and 7 deletions

View File

@ -27,18 +27,12 @@ export interface ToastOptions {
export type ToastLayout = 'baseline' | 'stacked';
// TODO FW-4923 remove cssClass property
export interface ToastButton {
text?: string;
icon?: string;
side?: 'start' | 'end';
role?: 'cancel' | string;
/**
* @deprecated Use the toast button's CSS Shadow Parts instead.
*/
cssClass?: string | string[];
htmlAttributes?: { [key: string]: any };
handler?: () => boolean | void | Promise<boolean | void>;
}

View File

@ -778,7 +778,6 @@ const buttonClass = (button: ToastButton): CssClassMap => {
[`toast-button-${button.role}`]: button.role !== undefined,
'ion-focusable': true,
'ion-activatable': true,
...getClassMap(button.cssClass),
};
};