angular / angular/components

Click targets are too small for some controls

未关闭
#8,000 6 条评论 0 个 reaction 已指派 1 人 已被 @zarend 认领 在 GitHub 查看
Accessibility area: many P3 target: major
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

Material Design spec says that all touch targets much be at least 48x48.

mat-checkbox, mat-radio-button, and mat-slide-toggle are only 20x20 (with no label). The slider thumb is also too small.

Adding a padding to the `` element within the template would resolve this (while keeping the visuals unchanged), but would be a major breaking change for people's layouts. We need to explore a non-breaking migration path for this.

This issue is not open for PRs until we have a clear migration strategy. Other components may be too small as well and will need to be audited.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。