feat: Inline Action Sheets should have inline buttons as well

Aberta
#30,748 2 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
48/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Pouca atividade
Stack de tecnologia
typescript
Domínio
frontend, web-dev

Direção de pesquisa

Comece lendo a implementação inline de action-sheet e sua propriedade atual de botão baseada em controller. Compare como outros componentes inline expõem botões filhos e, em seguida, verifique o uso solicitado com conteúdo de botão traduzido e tratamento de cliques. Está concluído quando os componentes de botão inline de action-sheet substituírem a configuração atual de botões, preservando as funções cancel e delete.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
TypeScript
Estrelas
52.8k
Forks
13.3k
Merge médio
3d 1h
PRs com merge (30d)
86

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de ionic-team/ionic-framework

Todas as issues de ionic-team/ionic-framework

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.