refactor(toast): deprecate cssClass on ToastButton (#27959)

This commit is contained in:
Liam DeBeasi
2023-08-23 08:21:20 -05:00
committed by GitHub
parent 901679882c
commit ae9f1ab43e

View File

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