patternfly / patternfly/patternfly-react
Tooltips for disabled radio and checkbox
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 862
- フォーク
- 392
- 平均マージ
- 4日 8時間
- マージ済み PR(30日)
- 9
説明
For a tooltip to be accessible for keyboard-only users, the element with the tooltip needs to be able to receive keyboard focus. Elements like <button> that support the disabled attribute cannot receive keyboard focus.
To continue to render these elements as disabled but enable keyboard focus, the following changes are needed:
-
Remove
disabled -
Add
aria-disabled="true" -
Make sure the
pf-m-disabledclass or similar is included on the element to apply the disabled styling. -
If the element is a link, remove
tabindex="-1"
We should update all interactive elements to include a prop that allows the consumer to make the element disabled but focusable so the element can be used with the Tooltip component. This prop should apply the appropriate attributes and classes for the given element.
Unless someone has a better suggestion, the prop could be named isDisabledFocusable (totally open to suggestions on this one)
Jira Issue: PF-208
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
無効化されたコントロールをレンダリングするインタラクティブ要素と Tooltip コンポーネントの確認から始めます。影響を受けるボタン、リンク、ラジオボタン、チェックボックスを洗い出し、それぞれが視覚的には無効のままキーボードフォーカスを受け取れることを確認します。影響を受ける要素が、無効化されたスタイルを失わずに、要求された focusable-disabled 動作を一貫して公開できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript
- 領域
- accessibility, frontend
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100