angular / angular/components

Explore replacing cdk focus trap with native HTML inert

オープン
#24,868 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
Accessibility area: cdk/a11y P3 refactoring
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。