bug: focus not trapped in modal with collapsible title
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- typescript
- Domínio
- accessibility, frontend
Direção de pesquisa
Execute a reprodução vinculada do StackBlitz em um navegador baseado em Chromium e compare os fluxos do modal com título fixo e com título recolhível. Rastreie o comportamento de contenção de foco do ion-modal junto com o comportamento do cabeçalho collapse="condense"; considera-se concluído quando Tab permanece confinado ao modal aberto em ambos os casos, inclusive após abrir um modal com título recolhível.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
When using collapse="condense" on an ion-header inside a modal, the focus trapping functionality of the modal stops working, and tabbing results in focus being placed on elements outside the modal.
Once a modal with a collapsible title is opened, it seems like the focus trapping then stops working all together, even for other instances of modal that do not use collapse title.
The bug only happens in Chromium-based browsers.
Expected Behavior
Focus trapping functionality should be maintained even with collapsible titles.
Steps to Reproduce
- In a Chromium browser, go to https://stackblitz.com/edit/n35ryw68
- Press 'Fixed Title Modal' button to open modal, and press Tab three times to verify that focus cycles between 'Cancel' and 'Confirm' inside the modal.
- Close the modal and press 'Collapsible Title Modal' button, then press Tab three times
- See that focus is now outside the modal, most likely on the first browser tab
Code Reproduction URL
https://stackblitz.com/edit/n35ryw68
Ionic Info
Stackblitz info:
Ionic:
Ionic CLI : 5.4.16
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v20.19.1
npm : 10.8.2
OS : Linux 5.0
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
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ionic-team/ionic-framework
-
bug: input-otp, backspace in an empty box only moves focus instead of clearing the previous boxTalvez já em andamento @sarankumar1325 assumiu há 23 dias. Abertapackage: core type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 90/100
ionic-team/ionic-framework#31639 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug: vue swipe cancellation throws when the previous page is missingTalvez já em andamento @dandoingdev assumiu há 46 dias. Abertapackage: vue type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
ionic-team/ionic-framework#31514 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug: ion-searchbar input is always labelled "search text"; aria-label on the host is not forwardedTalvez já em andamento @HappyKnuckles assumiu há 41 dias. Abertaa11y package: core type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
ionic-team/ionic-framework#31492 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug: IonTabs throws when a Fragment contains one IonRouterOutletTalvez já em andamento @Benziza assumiu há 82 dias. Abertapackage: react type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
ionic-team/ionic-framework#31410 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
bug: angular swipe-back gesture crashes in StackController.startBackTransition when the stack is popped before the gesture is capturedTalvez já em andamento @officialasishkumar assumiu há 9 dias. Abertapackage: angular type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
ionic-team/ionic-framework#31291 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de ionic-team/ionic-framework
Issues semelhantes
-
area-templates triage:bot-seen triage:needs-human
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
microsoft/aspire#22356 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Archiving an agent that is not loaded keeps its old updatedAtTalvez já em andamento @luoph assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
content triage
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
contributor: external needs review severity: low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
expo/expo#53642 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
JSPrismarine/JSPrismarine#3214 ·
Mantenedores costumam responder em até 1 dia