angular / angular/components

bug(material/chips): Chips should have larger touch targets

Aperta
#29,511 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Accessibility area: material/chips P3
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

### 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.

Screenshot 2024-07-29 at 2 34 16 PM
Screenshot 2024-07-29 at 2 35 10 PM

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
Screenshot 2024-07-29 at 2 33 29 PM

### Environment

- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con gli esempi di chip all’indirizzo material.angular.io/components/chips/examples e confronta le dimensioni dei relativi chip interattivi e pulsanti icona con l’obiettivo di 48px. Leggi quindi gli stili referenziati in src/material/button/_button-base.scss, poi individua l’implementazione corrispondente dei chip e i test; il lavoro è completato quando i chip interattivi e le relative icone forniscono target tattili di almeno 48x48px.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, sass, typescript
Ambito
accessibility, frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.