From 8101c7e86538610fac490620cbdfdd7f9110b164 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 9 Aug 2023 09:46:44 -0500 Subject: [PATCH 1/2] chore: deprecate cssClass on ToastButton --- core/src/components/toast/toast-interface.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/components/toast/toast-interface.ts b/core/src/components/toast/toast-interface.ts index c2b3aca5d7f..a78b4546e00 100644 --- a/core/src/components/toast/toast-interface.ts +++ b/core/src/components/toast/toast-interface.ts @@ -30,6 +30,10 @@ export interface ToastButton { 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; From ea74059bd3e894aa3a823e8d0f6839cc893a23db Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 9 Aug 2023 09:50:17 -0500 Subject: [PATCH 2/2] add TODO --- core/src/components/toast/toast-interface.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/components/toast/toast-interface.ts b/core/src/components/toast/toast-interface.ts index a78b4546e00..3bd76eba965 100644 --- a/core/src/components/toast/toast-interface.ts +++ b/core/src/components/toast/toast-interface.ts @@ -25,6 +25,8 @@ export interface ToastOptions { export type ToastLayout = 'baseline' | 'stacked'; +// TODO FW-4923 remove cssClass property + export interface ToastButton { text?: string; icon?: string;