patternfly / patternfly/patternfly-react
Modal default focus prioritizes close button over content elements
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 862
- フォーク
- 392
- 平均マージ
- 4日 8時間
- マージ済み PR(30日)
- 9
説明
When a Modal opens, focus currently defaults to the close (X) button in the header, regardless of what interactive elements exist within the modal content. This behavior is a bit counterintuitive. The default focus should prioritize the first meaningful, focusable element within the modal body (e.g., a primary action button) rather than header controls.
This request originates from a Red Hat product team. There is no hard deadline.
Jira Issue: PF-2526
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず Modal の実装と既存の focus-management テストを特定し、次に Modal 本文のインタラクティブなコンテンツでデフォルトのフォーカス動作を再現します。完了条件は、期待される Modal のフォーカス動作を維持しながら、ヘッダーの閉じるボタンよりも本文内の最初の意味のあるフォーカス可能な要素をフォーカスが優先することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript
- 領域
- accessibility, frontend
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100