From aa7ecd05f96d57e5bd3f283bbd326a19fa5048de Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Tue, 25 Jul 2023 15:21:04 -0400 Subject: [PATCH 1/7] feat(toast): add htmlAttributes property to buttons in a toast --- core/src/components/toast/toast-interface.ts | 1 + core/src/components/toast/toast.tsx | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/core/src/components/toast/toast-interface.ts b/core/src/components/toast/toast-interface.ts index 02108e06476..c2b3aca5d7f 100644 --- a/core/src/components/toast/toast-interface.ts +++ b/core/src/components/toast/toast-interface.ts @@ -31,6 +31,7 @@ export interface ToastButton { side?: 'start' | 'end'; role?: 'cancel' | string; cssClass?: string | string[]; + htmlAttributes?: { [key: string]: any }; handler?: () => boolean | void | Promise; } diff --git a/core/src/components/toast/toast.tsx b/core/src/components/toast/toast.tsx index 4f397d94a7c..98d7597eb88 100644 --- a/core/src/components/toast/toast.tsx +++ b/core/src/components/toast/toast.tsx @@ -405,7 +405,14 @@ export class Toast implements ComponentInterface, OverlayInterface { return (
{buttons.map((b) => ( -