bug: ion-alert draws the browser's focus ring around the whole dialog after a tap on iOS
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- css, html, ios, typescript
Línea de trabajo
The focus call is in present() in alert.tsx, where .alert-wrapper (tabindex 0) is focused, and the styling is in alert.scss, which zeroes outline on the host, buttons and inputs but not the wrapper. Reproduce with the linked gist on iOS Safari and check :focus-visible and outline-style on the wrapper after present(). Done when the wrapper draws no focus ring after a tap, while keyboard focus still works. A pull request (#31684) is already open against this, so check it before starting.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Ionic version
@ionic/core 9.0.9. The same code is on main (alert.tsx, alert.scss).
Current behavior
On iOS, tapping a button that presents an ion-alert with inputs or more than one button draws a blue ring around the whole dialog.
present() calls wrapperEl.focus() on .alert-wrapper, which has tabindex="0". alert.scss sets outline: none on the host, the buttons and the inputs, but not on the wrapper. After the tap the wrapper matches :focus-visible, so the browser's default focus ring is drawn on it.
Measured on the wrapper in Safari on an iOS 26.5 simulator (iPhone 17 Pro), right after present():
{ "focused": true, "focusVisible": true, "outlineStyle": "auto" }
We first saw it on a physical iPhone in a Capacitor app. With a mouse click in desktop WebKit (Playwright) the wrapper does not match :focus-visible and no ring is drawn.
Expected behavior
Tapping a button that presents an alert does not draw a focus ring around the whole dialog.
Steps to reproduce
- Open the reproduction in Safari on iOS (a simulator is enough).
- Tap Open alert.
The blue ring appears around the dialog, and the page prints the values above.
Code reproduction
A single HTML file on stock Ionic 9.0.9 from the CDN: https://gist.github.com/tzdevelopteam/16bfbe6ea1e933886b3c596461fa94a8
- Lenguaje dominante
- TypeScript
- Estrellas
- 52.8k
- Forks
- 13.3k
- Merge medio
- 3 d 1 h
- PR fusionados (30 d)
- 86
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ionic-team/ionic-framework
-
bug: input-otp, backspace in an empty box only moves focus instead of clearing the previous boxPosiblemente ocupada @sarankumar1325 la tomó hace 23 días. Abiertopackage: core type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
ionic-team/ionic-framework#31639 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug: vue swipe cancellation throws when the previous page is missingPosiblemente ocupada @dandoingdev la tomó hace 46 días. Abiertopackage: vue type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ionic-team/ionic-framework#31514 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug: ion-searchbar input is always labelled "search text"; aria-label on the host is not forwardedPosiblemente ocupada @HappyKnuckles la tomó hace 41 días. Abiertoa11y package: core type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
ionic-team/ionic-framework#31492 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug: IonTabs throws when a Fragment contains one IonRouterOutletPosiblemente ocupada @Benziza la tomó hace 82 días. Abiertopackage: react type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ionic-team/ionic-framework#31410 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug: angular swipe-back gesture crashes in StackController.startBackTransition when the stack is popped before the gesture is capturedPosiblemente ocupada @officialasishkumar la tomó hace 9 días. Abiertopackage: angular type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
ionic-team/ionic-framework#31291 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de ionic-team/ionic-framework
Issues similares
-
ready-for-ai
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
umbraco/Umbraco-CMS-MCP-Dev#647 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
HelloAOLab/seed-bible#2173 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
hocinehacherouf/liberarr#77 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
LibreChat-AI/LibreChat#18225 ·
Los mantenedores suelen responder en 1 día
-
b-ber/build/epub b-ber/themes
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
triplecanopy/b-ber#790 ·
Los mantenedores suelen responder en 1 día