mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
refactor(toast): remove cssClass from ToastButton (#28977)
BREAKING CHANGE: The `cssClass` property has been removed from `ToastButton`
This commit is contained in:
@ -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>;
|
||||
}
|
||||
|
||||
@ -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),
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user