From 7fd9963b1fa70501ab572edc361611766c2a6e77 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Tue, 25 Jul 2023 16:44:31 -0400 Subject: [PATCH 1/5] feat(alert): add htmlAttributes property for buttons --- core/src/components/alert/alert-interface.ts | 1 + core/src/components/alert/alert.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/core/src/components/alert/alert-interface.ts b/core/src/components/alert/alert-interface.ts index f6e04499b13..3f9d6cda8d4 100644 --- a/core/src/components/alert/alert-interface.ts +++ b/core/src/components/alert/alert-interface.ts @@ -48,6 +48,7 @@ export interface AlertButton { role?: 'cancel' | 'destructive' | string; cssClass?: string | string[]; id?: string; + htmlAttributes?: { [key: string]: any }; // TODO(FW-2832): type handler?: (value: any) => AlertButtonOverlayHandler | Promise; } diff --git a/core/src/components/alert/alert.tsx b/core/src/components/alert/alert.tsx index 8ce50944924..4b89c605f60 100644 --- a/core/src/components/alert/alert.tsx +++ b/core/src/components/alert/alert.tsx @@ -666,6 +666,7 @@ export class Alert implements ComponentInterface, OverlayInterface {
{buttons.map((button) => (