bug: ion-alert draws the browser's focus ring around the whole dialog after a tap on iOS
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- css, html, ios, typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- TypeScript
- スター
- 52.8k
- フォーク
- 13.3k
- 平均マージ
- 3日 1時間
- マージ済み PR(30日)
- 86
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ionic-team/ionic-framework のほかの issue
-
bug: input-otp, backspace in an empty box only moves focus instead of clearing the previous box対応中かも @sarankumar1325 が 23 日前に担当しました。 オープンpackage: core type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
ionic-team/ionic-framework#31639 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug: vue swipe cancellation throws when the previous page is missing対応中かも @dandoingdev が 46 日前に担当しました。 オープンpackage: vue type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ionic-team/ionic-framework#31514 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug: ion-searchbar input is always labelled "search text"; aria-label on the host is not forwarded対応中かも @HappyKnuckles が 41 日前に担当しました。 オープンa11y package: core type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
ionic-team/ionic-framework#31492 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug: IonTabs throws when a Fragment contains one IonRouterOutlet対応中かも @Benziza が 82 日前に担当しました。 オープンpackage: react type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ionic-team/ionic-framework#31410 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug: angular swipe-back gesture crashes in StackController.startBackTransition when the stack is popped before the gesture is captured対応中かも @officialasishkumar が 9 日前に担当しました。 オープンpackage: angular type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
ionic-team/ionic-framework#31291 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
ionic-team/ionic-framework の issue をすべて見る
似ている issue
-
ready-for-ai
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
umbraco/Umbraco-CMS-MCP-Dev#647 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
HelloAOLab/seed-bible#2173 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
hocinehacherouf/liberarr#77 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
LibreChat-AI/LibreChat#18225 ·
メンテナーはふだん 1 日以内に返信
-
b-ber/build/epub b-ber/themes
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
triplecanopy/b-ber#790 ·
メンテナーはふだん 1 日以内に返信