bug(material/chips): Chips should have larger touch targets
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
### Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
_No response_
### Description
Even though icon button defaults to 40px, the touch target is still 48px from here: https://gith
ub.com/angular/components/blob/main/src/material/button/_button-base.scss#L126.
Chips has interactive icons buttons or the chip itself is interactive, it should also have a touch target of at least 48x48px to be more accessible
### Reproduction
https://material.angular.io/components/chips/examples
### Expected Behavior
Touch targets of at least 48x48px
### Actual Behavior
Smaller touch targets than 48x48px
### Environment
- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):
コントリビューションガイド
調査の方向性
material.angular.io/components/chips/examples のチップの例から始め、インタラクティブなチップとアイコンボタンの寸法を 48px の目標値と比較します。次に、参照されている src/material/button/_button-base.scss のスタイルを読み、その後、対応するチップの実装とテストを見つけます。インタラクティブなチップとそのアイコンが少なくとも 48x48px のタッチターゲットを提供すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, sass, typescript
- 領域
- accessibility, frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100