From 6a0a34d4edaacbffed40f7784bdf0f3e7e788d25 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Wed, 26 Jul 2023 11:05:07 -0400 Subject: [PATCH 1/4] feat(action-sheet): add htmlAttributes to action sheet buttons --- .../action-sheet/action-sheet-interface.ts | 1 + core/src/components/action-sheet/action-sheet.tsx | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/core/src/components/action-sheet/action-sheet-interface.ts b/core/src/components/action-sheet/action-sheet-interface.ts index 9428b59b014..465c50e050e 100644 --- a/core/src/components/action-sheet/action-sheet-interface.ts +++ b/core/src/components/action-sheet/action-sheet-interface.ts @@ -23,6 +23,7 @@ export interface ActionSheetButton { icon?: string; cssClass?: string | string[]; id?: string; + htmlAttributes?: { [key: string]: any }; handler?: () => boolean | void | Promise; data?: T; } diff --git a/core/src/components/action-sheet/action-sheet.tsx b/core/src/components/action-sheet/action-sheet.tsx index 9a877054cfb..e6854c8fdd7 100644 --- a/core/src/components/action-sheet/action-sheet.tsx +++ b/core/src/components/action-sheet/action-sheet.tsx @@ -386,7 +386,13 @@ export class ActionSheet implements ComponentInterface, OverlayInterface { )} {buttons.map((b) => ( -