Skip to content

Commit ae9f1ab

Browse files
authored
refactor(toast): deprecate cssClass on ToastButton (#27959)
1 parent 9016798 commit ae9f1ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/src/components/toast/toast-interface.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,17 @@ export interface ToastOptions {
2525

2626
export type ToastLayout = 'baseline' | 'stacked';
2727

28+
// TODO FW-4923 remove cssClass property
29+
2830
export interface ToastButton {
2931
text?: string;
3032
icon?: string;
3133
side?: 'start' | 'end';
3234
role?: 'cancel' | string;
35+
36+
/**
37+
* @deprecated Use the toast button's CSS Shadow Parts instead.
38+
*/
3339
cssClass?: string | string[];
3440
htmlAttributes?: { [key: string]: any };
3541
handler?: () => boolean | void | Promise<boolean | void>;

0 commit comments

Comments
 (0)