Explore replacing cdk focus trap with native HTML inert
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
The new HTML `inert` attribute is a native solution to the very manual focus trapping we employ today. We should explore whether we can drop the entire focus trap subpackage in favor of people directly using `inert`. It will be some time until browsers fully support this, but it's on track for all of Chromium/Firefox/Safari.
See
https://developer.chrome.com/blog/inert/
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert
https://caniuse.com/mdn-api_htmlelement_inert
コントリビューションガイド
調査の方向性
CDK focus trap サブパッケージから始め、現在の手動トラップ動作を、リンク先のブラウザー ドキュメントで説明されているネイティブ HTML inert API と比較してください。記載されている Chromium、Firefox、Safari のサポート状況を確認し、そのうえで、既存のコンポーネント利用を壊さずにサブパッケージを置き換えられるか判断してください。完了条件は、実現可能性の判断と移行範囲が文書化されていることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, html, typescript
- 領域
- accessibility, frontend
- issue の種類
- リファクタリング
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100