ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

feat: Inline Action Sheets should have inline buttons as well

Open Spinnenzunge opened this issue 1 month ago • 0 comments

Prerequisites

Describe the Feature Request

Current inline action sheet design is a mix between inline and controller style as buttons are still done via a property instead of inline components. This forces consumers to still have to inject things like translation services for button description translation, etc.

Describe the Use Case

When moving to inline components for dialogs etc. it would be great if the important part of the action sheet, namely its buttons were inline as well. This would allow us to use translation pipes, click directives for tracking etc. the same as we are doing it for all other buttons in an app.

Describe Preferred Solution

Introduce action sheet button components for inline action sheet instead of using controller variable

<ion-action-sheet trigger="open-action-sheet" header="Actions">
  <ion-action-sheet-button role="delete">{{'action.delete' | translate}}</ion-action-sheet-button>
  <ion-action-sheet-button role="cancel">{{'action.cancel' | translate}}</ion-action-sheet-button>
</ion-action-sheet>

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

Spinnenzunge avatar Oct 23 '25 06:10 Spinnenzunge