feat: Inline Action Sheets should have inline buttons as well

Abierto
#30,748 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
typescript
Área
frontend, web-dev

Línea de trabajo

Empieza leyendo la implementación inline de action-sheet y su propiedad de botón actual basada en el controlador. Compara cómo otros componentes inline exponen botones secundarios y, después, verifica el uso solicitado con contenido de botón traducido y gestión de clics. Se considera terminado cuando los componentes de botón inline de action-sheet sustituyan la configuración de botones actual, conservando los roles cancel y delete.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

type: feature request
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

Lenguaje dominante
TypeScript
Estrellas
52.8k
Forks
13.3k
Merge medio
3 d 1 h
PR fusionados (30 d)
86

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ionic-team/ionic-framework

Todos los issues de ionic-team/ionic-framework

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.